Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Our_RangeSelector.gimmick 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. set cut_paste_input [stack 0]
  2. version 11.3 v5
  3. push $cut_paste_input
  4. Group {
  5. name Our_RangeSelector
  6. selected true
  7. xpos -81
  8. ypos -153
  9. addUserKnob {20 RGB l rgb}
  10. addUserKnob {19 value}
  11. value {1 0.5 0.25 1}
  12. addUserKnob {6 value_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
  13. addUserKnob {6 value_panelDropped_1 l "panel dropped state" -STARTLINE +HIDDEN}
  14. addUserKnob {6 value_panelDropped_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  15. addUserKnob {26 info l average T "output in alpha cahannel uses red value"}
  16. addUserKnob {19 range}
  17. range {0.5 0.5 0.5 0.5}
  18. addUserKnob {6 range_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
  19. addUserKnob {6 range_panelDropped_1 l "panel dropped state" -STARTLINE +HIDDEN}
  20. addUserKnob {6 range_panelDropped_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  21. addUserKnob {19 gamma}
  22. gamma {1 1 1 1}
  23. addUserKnob {6 gamma_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
  24. addUserKnob {6 gamma_panelDropped_1 l "panel dropped state" -STARTLINE +HIDDEN}
  25. addUserKnob {6 gamma_panelDropped_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  26. addUserKnob {6 clamp t "\n" +STARTLINE}
  27. clamp true
  28. addUserKnob {20 lumaPage l luma}
  29. addUserKnob {6 luma l "use luma" +STARTLINE}
  30. addUserKnob {7 valueLuma l value R -1 5}
  31. valueLuma 1
  32. addUserKnob {19 rangeLuma l range}
  33. rangeLuma {0.5 0.25 0.125 0.06125}
  34. addUserKnob {6 rangeLuma_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
  35. addUserKnob {6 rangeLuma_panelDropped_1 l "panel dropped state" -STARTLINE +HIDDEN}
  36. addUserKnob {6 rangeLuma_panelDropped_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  37. addUserKnob {19 gammaLuma l gamma}
  38. gammaLuma {1 0.5 0.25 0.125}
  39. addUserKnob {6 gammaLuma_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
  40. addUserKnob {6 gammaLuma_panelDropped_1 l "panel dropped state" -STARTLINE +HIDDEN}
  41. addUserKnob {6 gammaLuma_panelDropped_1_1 l "panel dropped state" -STARTLINE +HIDDEN}
  42. addUserKnob {6 clampLuma l clamp +STARTLINE}
  43. clampLuma true
  44. }
  45. BackdropNode {
  46. inputs 0
  47. name BackdropNode1
  48. label A
  49. note_font_size 42
  50. xpos 1773
  51. ypos -409
  52. bdwidth 268
  53. bdheight 572
  54. }
  55. BackdropNode {
  56. inputs 0
  57. name BackdropNode2
  58. tile_color 0x8e7273ff
  59. label R
  60. note_font_size 42
  61. xpos 733
  62. ypos -421
  63. bdwidth 251
  64. bdheight 575
  65. }
  66. BackdropNode {
  67. inputs 0
  68. name BackdropNode3
  69. tile_color 0x728e6eff
  70. label G
  71. note_font_size 42
  72. xpos 1054
  73. ypos -422
  74. bdwidth 257
  75. bdheight 582
  76. }
  77. BackdropNode {
  78. inputs 0
  79. name BackdropNode4
  80. tile_color 0x6a818eff
  81. label B
  82. note_font_size 42
  83. xpos 1405
  84. ypos -418
  85. bdwidth 254
  86. bdheight 580
  87. }
  88. BackdropNode {
  89. inputs 0
  90. name BackdropNode5
  91. tile_color 0xddddddff
  92. label "L R"
  93. note_font_size 42
  94. xpos -1058
  95. ypos -418
  96. bdwidth 270
  97. bdheight 580
  98. }
  99. BackdropNode {
  100. inputs 0
  101. name BackdropNode6
  102. tile_color 0xddddddff
  103. label "L G"
  104. note_font_size 42
  105. xpos -721
  106. ypos -413
  107. bdwidth 270
  108. bdheight 580
  109. }
  110. BackdropNode {
  111. inputs 0
  112. name BackdropNode7
  113. tile_color 0xddddddff
  114. label "L B"
  115. note_font_size 42
  116. xpos -404
  117. ypos -416
  118. bdwidth 270
  119. bdheight 580
  120. }
  121. BackdropNode {
  122. inputs 0
  123. name BackdropNode8
  124. tile_color 0xddddddff
  125. label "L A\n"
  126. note_font_size 42
  127. xpos -80
  128. ypos -416
  129. bdwidth 270
  130. bdheight 580
  131. }
  132. Input {
  133. inputs 0
  134. name Input1
  135. xpos 431
  136. ypos -926
  137. }
  138. set Nf5d3400 [stack 0]
  139. Colorspace {
  140. colorspace_out HSL
  141. name Colorspace1
  142. xpos -323
  143. ypos -593
  144. }
  145. set Nf5d3000 [stack 0]
  146. Expression {
  147. temp_name0 low
  148. temp_expr0 parent.valueLuma-parent.rangeLuma.a
  149. temp_name1 high
  150. temp_expr1 parent.valueLuma+parent.rangeLuma.a
  151. temp_name2 highRamp
  152. temp_expr2 1-((b-parent.valueLuma)*(1/parent.rangeLuma.a))
  153. temp_name3 lowRamp
  154. temp_expr3 1-((b-parent.valueLuma)*(1/parent.rangeLuma.a))*-1
  155. expr0 (b>parent.valueLuma?highRamp:0)
  156. expr1 (b<parent.valueLuma?lowRamp:0)
  157. expr2 0
  158. expr3 0
  159. name GenerateRangeRamps8
  160. xpos 1
  161. ypos -250
  162. }
  163. Expression {
  164. expr0 r+g
  165. expr1 r+g
  166. expr2 r+g
  167. expr3 r+g
  168. name ReorderRangeRamps7
  169. xpos 1
  170. ypos -199
  171. }
  172. set Nf5d2800 [stack 0]
  173. Clamp {
  174. name Clamp8
  175. xpos 77
  176. ypos -127
  177. }
  178. push $Nf5d2800
  179. Switch {
  180. inputs 2
  181. which {{parent.clampLuma}}
  182. name Switch9
  183. xpos 1
  184. ypos -55
  185. }
  186. Expression {
  187. expr0 0
  188. expr1 0
  189. expr2 0
  190. expr3 a
  191. name Expression8
  192. xpos 1
  193. ypos 48
  194. }
  195. Dot {
  196. name Dot10
  197. xpos 35
  198. ypos 207
  199. }
  200. push $Nf5d3000
  201. Expression {
  202. temp_name0 low
  203. temp_expr0 parent.valueLuma-parent.rangeLuma.r
  204. temp_name1 high
  205. temp_expr1 parent.valueLuma+parent.rangeLuma.r
  206. temp_name2 highRamp
  207. temp_expr2 1-((b-parent.valueLuma)*(1/parent.rangeLuma.r))
  208. temp_name3 lowRamp
  209. temp_expr3 1-((b-parent.valueLuma)*(1/parent.rangeLuma.r))*-1
  210. expr0 (b>parent.valueLuma?highRamp:0)
  211. expr1 (b<parent.valueLuma?lowRamp:0)
  212. expr2 0
  213. expr3 0
  214. name GenerateRangeRamps4
  215. xpos -977
  216. ypos -256
  217. }
  218. Expression {
  219. expr0 r+g
  220. expr1 r+g
  221. expr2 r+g
  222. expr3 r+g
  223. name ReorderRangeRamps4
  224. xpos -977
  225. ypos -198
  226. }
  227. set Nebda5000 [stack 0]
  228. Clamp {
  229. name Clamp5
  230. xpos -902
  231. ypos -131
  232. }
  233. push $Nebda5000
  234. Switch {
  235. inputs 2
  236. which {{parent.clampLuma}}
  237. name Switch5
  238. xpos -977
  239. ypos -58
  240. }
  241. Expression {
  242. expr0 r
  243. expr1 0
  244. expr2 0
  245. expr3 0
  246. name Expression1
  247. xpos -977
  248. ypos 25
  249. }
  250. Dot {
  251. name Dot11
  252. xpos -943
  253. ypos 223
  254. }
  255. push 0
  256. push $Nf5d3000
  257. Expression {
  258. temp_name0 low
  259. temp_expr0 parent.valueLuma-parent.rangeLuma.g
  260. temp_name1 high
  261. temp_expr1 parent.valueLuma+parent.rangeLuma.g
  262. temp_name2 highRamp
  263. temp_expr2 1-((b-parent.valueLuma)*(1/parent.rangeLuma.g))
  264. temp_name3 lowRamp
  265. temp_expr3 1-((b-parent.valueLuma)*(1/parent.rangeLuma.g))*-1
  266. expr0 (b>parent.valueLuma?highRamp:0)
  267. expr1 (b<parent.valueLuma?lowRamp:0)
  268. expr2 0
  269. expr3 0
  270. name GenerateRangeRamps6
  271. xpos -640
  272. ypos -251
  273. }
  274. Expression {
  275. expr0 r+g
  276. expr1 r+g
  277. expr2 r+g
  278. expr3 r+g
  279. name ReorderRangeRamps5
  280. xpos -640
  281. ypos -193
  282. }
  283. set Na0beb000 [stack 0]
  284. Clamp {
  285. name Clamp6
  286. xpos -564
  287. ypos -124
  288. }
  289. push $Na0beb000
  290. Switch {
  291. inputs 2
  292. which {{parent.clampLuma}}
  293. name Switch7
  294. xpos -640
  295. ypos -53
  296. }
  297. Expression {
  298. expr0 0
  299. expr1 g
  300. expr2 0
  301. expr3 0
  302. name Expression6
  303. xpos -640
  304. ypos 21
  305. }
  306. Dot {
  307. name Dot12
  308. xpos -606
  309. ypos 186
  310. }
  311. push $Nf5d3000
  312. Expression {
  313. temp_name0 low
  314. temp_expr0 parent.valueLuma-parent.rangeLuma.b
  315. temp_name1 high
  316. temp_expr1 parent.valueLuma+parent.rangeLuma.b
  317. temp_name2 highRamp
  318. temp_expr2 1-((b-parent.valueLuma)*(1/parent.rangeLuma.b))
  319. temp_name3 lowRamp
  320. temp_expr3 1-((b-parent.valueLuma)*(1/parent.rangeLuma.b))*-1
  321. expr0 (b>parent.valueLuma?highRamp:0)
  322. expr1 (b<parent.valueLuma?lowRamp:0)
  323. expr2 0
  324. expr3 0
  325. name GenerateRangeRamps7
  326. xpos -323
  327. ypos -251
  328. }
  329. Expression {
  330. expr0 r+g
  331. expr1 r+g
  332. expr2 r+g
  333. expr3 r+g
  334. name ReorderRangeRamps6
  335. xpos -323
  336. ypos -196
  337. }
  338. set Na0be8800 [stack 0]
  339. Clamp {
  340. name Clamp7
  341. xpos -247
  342. ypos -127
  343. }
  344. push $Na0be8800
  345. Switch {
  346. inputs 2
  347. which {{parent.clampLuma}}
  348. name Switch8
  349. xpos -323
  350. ypos -55
  351. }
  352. Expression {
  353. expr0 0
  354. expr1 0
  355. expr2 b
  356. expr3 0
  357. name Expression7
  358. xpos -323
  359. ypos 21
  360. }
  361. Merge2 {
  362. inputs 4+1
  363. operation plus
  364. name Plus2
  365. xpos -323
  366. ypos 257
  367. }
  368. Gamma {
  369. value {{parent.gammaLuma.r} {parent.gammaLuma.g} {parent.gammaLuma.b} {parent.gammaLuma.a}}
  370. name Gamma4
  371. selected true
  372. xpos -323
  373. ypos 306
  374. }
  375. Dot {
  376. name Dot8
  377. xpos -289
  378. ypos 508
  379. }
  380. push $Nf5d3400
  381. NoOp {
  382. name NoOp1
  383. xpos 1106
  384. ypos -650
  385. }
  386. set Na0be6400 [stack 0]
  387. Dot {
  388. name Dot2
  389. xpos 1841
  390. ypos -453
  391. }
  392. Expression {
  393. expr0 a
  394. expr1 a
  395. expr2 a
  396. name Red1
  397. xpos 1807
  398. ypos -304
  399. disable true
  400. }
  401. Expression {
  402. temp_name0 low
  403. temp_expr0 parent.value.a-parent.range.a
  404. temp_name1 high
  405. temp_expr1 parent.value.a+parent.range.a
  406. temp_name2 highRamp
  407. temp_expr2 1-((r-parent.value.a)*(1/parent.range.a))
  408. temp_name3 lowRamp
  409. temp_expr3 1-((r-parent.value.a)*(1/parent.range.a))*-1
  410. expr0 (r>parent.value.r?highRamp:0)
  411. expr1 (r<parent.value.r?lowRamp:0)
  412. expr2 0
  413. expr3 (r>parent.value.a?highRamp:0)
  414. name GenerateRangeRamps5
  415. xpos 1807
  416. ypos -251
  417. }
  418. Expression {
  419. temp_name0 low
  420. temp_expr0 parent.value-range
  421. temp_name1 high
  422. temp_expr1 parent.value+range
  423. temp_name2 highRamp
  424. temp_expr2 1-((r-parent.value)*(1/range))
  425. temp_name3 lowRamp
  426. temp_expr3 1-((r-parent.value)*(1/range))*-1
  427. expr0 (r>parent.value?highRamp:0)
  428. expr1 (r<parent.value?lowRamp:0)
  429. expr2 0
  430. expr3 (r>parent.value?highRamp:0)
  431. name GenerateRangeRamps
  432. xpos 1807
  433. ypos -202
  434. disable true
  435. }
  436. Expression {
  437. expr0 r+g
  438. expr1 r+g
  439. expr2 r+g
  440. expr3 r+g
  441. name ReorderRangeRamps
  442. xpos 1807
  443. ypos -161
  444. }
  445. set Na0be7800 [stack 0]
  446. Clamp {
  447. name Clamp1
  448. xpos 1883
  449. ypos -98
  450. }
  451. push $Na0be7800
  452. Switch {
  453. inputs 2
  454. which {{parent.clamp}}
  455. name Switch1
  456. xpos 1807
  457. ypos -20
  458. }
  459. Expression {
  460. expr0 0
  461. expr1 0
  462. expr2 0
  463. expr3 r
  464. name Expression5
  465. xpos 1807
  466. ypos 86
  467. }
  468. Dot {
  469. name Dot6
  470. xpos 1841
  471. ypos 208
  472. }
  473. push $Na0be6400
  474. Dot {
  475. name Dot1
  476. xpos 1140
  477. ypos -509
  478. }
  479. set Na0be4c00 [stack 0]
  480. Dot {
  481. name Dot3
  482. xpos 1492
  483. ypos -446
  484. }
  485. Expression {
  486. expr0 b
  487. expr1 b
  488. expr2 b
  489. name Blue
  490. xpos 1458
  491. ypos -325
  492. }
  493. Expression {
  494. temp_name0 low
  495. temp_expr0 parent.value.b-parent.range.b
  496. temp_name1 high
  497. temp_expr1 parent.value.b+parent.range.b
  498. temp_name2 highRamp
  499. temp_expr2 1-((r-parent.value.b)*(1/parent.range.b))
  500. temp_name3 lowRamp
  501. temp_expr3 1-((r-parent.value.b)*(1/parent.range.b))*-1
  502. expr0 (r>parent.value.b?highRamp:0)
  503. expr1 (r<parent.value.b?lowRamp:0)
  504. expr2 0
  505. expr3 0
  506. name GenerateRangeRamps3
  507. xpos 1458
  508. ypos -268
  509. }
  510. Expression {
  511. expr0 r+g
  512. expr1 r+g
  513. expr2 r+g
  514. expr3 r+g
  515. name ReorderRangeRamps3
  516. xpos 1458
  517. ypos -213
  518. }
  519. set Na0be5c00 [stack 0]
  520. Clamp {
  521. name Clamp4
  522. xpos 1550
  523. ypos -157
  524. }
  525. push $Na0be5c00
  526. Switch {
  527. inputs 2
  528. which {{parent.clamp}}
  529. name Switch4
  530. xpos 1458
  531. ypos -96
  532. }
  533. Expression {
  534. expr0 0
  535. expr1 0
  536. expr2 b
  537. expr3 0
  538. name Expression4
  539. xpos 1458
  540. ypos 69
  541. }
  542. Dot {
  543. name Dot5
  544. xpos 1492
  545. ypos 185
  546. }
  547. push 0
  548. push $Na0be4c00
  549. Dot {
  550. name Dot4
  551. xpos 816
  552. ypos -452
  553. }
  554. Expression {
  555. expr0 r
  556. expr1 r
  557. expr2 r
  558. name Red
  559. xpos 782
  560. ypos -311
  561. }
  562. Expression {
  563. temp_name0 low
  564. temp_expr0 parent.value.r-parent.range.r
  565. temp_name1 high
  566. temp_expr1 parent.value.r+parent.range.r
  567. temp_name2 highRamp
  568. temp_expr2 1-((r-parent.value.r)*(1/parent.range.r))
  569. temp_name3 lowRamp
  570. temp_expr3 1-((r-parent.value)*(1/parent.range.r))*-1
  571. expr0 (r>parent.value.r?highRamp:0)
  572. expr1 (r<parent.value.r?lowRamp:0)
  573. expr2 0
  574. expr3 0
  575. name GenerateRangeRamps1
  576. xpos 782
  577. ypos -222
  578. }
  579. Expression {
  580. expr0 r+g
  581. expr1 r+g
  582. expr2 r+g
  583. expr3 r+g
  584. name ReorderRangeRamps1
  585. xpos 782
  586. ypos -153
  587. }
  588. set Na0a45800 [stack 0]
  589. Clamp {
  590. name Clamp2
  591. xpos 874
  592. ypos -95
  593. }
  594. push $Na0a45800
  595. Switch {
  596. inputs 2
  597. which {{parent.clamp}}
  598. name Switch2
  599. xpos 782
  600. ypos -34
  601. }
  602. Expression {
  603. expr0 r
  604. expr1 0
  605. expr2 0
  606. expr3 0
  607. name Expression2
  608. xpos 782
  609. ypos 70
  610. }
  611. Dot {
  612. name Dot7
  613. xpos 816
  614. ypos 166
  615. }
  616. push $Na0be4c00
  617. Expression {
  618. expr0 g
  619. expr1 g
  620. expr2 g
  621. name Green
  622. xpos 1106
  623. ypos -308
  624. }
  625. Expression {
  626. temp_name0 low
  627. temp_expr0 parent.value.g-parent.range.g
  628. temp_name1 high
  629. temp_expr1 parent.value.g+parent.range.g
  630. temp_name2 highRamp
  631. temp_expr2 1-((r-parent.value.g)*(1/parent.range.g))
  632. temp_name3 lowRamp
  633. temp_expr3 1-((r-parent.value.g)*(1/parent.range.g))*-1
  634. expr0 (r>parent.value.g?highRamp:0)
  635. expr1 (r<parent.value.g?lowRamp:0)
  636. expr2 0
  637. expr3 0
  638. name GenerateRangeRamps2
  639. xpos 1106
  640. ypos -224
  641. }
  642. Expression {
  643. expr0 r+g
  644. expr1 r+g
  645. expr2 r+g
  646. expr3 r+g
  647. name ReorderRangeRamps2
  648. xpos 1106
  649. ypos -180
  650. }
  651. set Na0a43400 [stack 0]
  652. Clamp {
  653. name Clamp3
  654. xpos 1198
  655. ypos -135
  656. }
  657. push $Na0a43400
  658. Switch {
  659. inputs 2
  660. which {{parent.clamp}}
  661. name Switch3
  662. xpos 1106
  663. ypos -71
  664. }
  665. Expression {
  666. expr0 0
  667. expr1 g
  668. expr2 0
  669. expr3 0
  670. name Expression3
  671. xpos 1106
  672. ypos 68
  673. }
  674. Merge2 {
  675. inputs 4+1
  676. operation plus
  677. name Plus
  678. xpos 1106
  679. ypos 268
  680. }
  681. Gamma {
  682. value {{parent.gamma.r} {parent.gamma.g} {parent.gamma.b} {parent.gamma.a}}
  683. name Gamma2
  684. xpos 1106
  685. ypos 337
  686. }
  687. Dot {
  688. name Dot9
  689. xpos 1140
  690. ypos 508
  691. }
  692. Switch {
  693. inputs 2
  694. which {{parent.luma}}
  695. name Switch6
  696. xpos 491
  697. ypos 504
  698. }
  699. Output {
  700. name Output2
  701. xpos 491
  702. ypos 701
  703. }
  704. end_group
  705. # Creation Time=Fri Jul 17 15:15:38 2020
  706. # Creator=ne