Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ourOptimizedAnaglyph.gizmo 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #! C:/Program Files/Nuke6.1v1/Nuke6.1.exe -nx
  2. version 6.1 v1
  3. Gizmo {
  4. help "ourOptimizedAnaglyph 0.3\n\nreplaces r by a weighted portion of g and b.\nr=pow(((g*weight)+(b*(1-weight)), gamma)*multiplier\n\n\ndocumentation\n\ngamma r\ngamma control for red channel\n\nf stops r\nexposure control for red channel\n\ngamma gb \ngamma control for green and blue channel\n\nf stops gb\nexposure control for green and blue channel\n\nf stops all\nglobal exposure control for all channels\n\nsaturation\nadjusts saturation\n\nhorizontal offset\ncontrols the screen plane according to the horizontal image offset\n\nblack outside\nsets the undefined pixels on left/right side to black\n\nsRGB\napplies a lin to sRGB curve to the rendered output\n\nalpha (mix-max)\nblends between a 50 percent mix or a max of inputs' left/right alphas"
  5. addUserKnob {20 ourOptimizedAnaglyph}
  6. addUserKnob {7 gamma_r l "gamma r" R 0 5}
  7. gamma_r 1.5
  8. addUserKnob {7 fstops_r l "f stops r" R -3 3}
  9. addUserKnob {7 WeightGreen l "weight gb"}
  10. WeightGreen 0.7
  11. addUserKnob {7 fstops_gb l "f stops gb" R -3 3}
  12. addUserKnob {7 multiplier l "f stops all" R -3 3}
  13. addUserKnob {26 ""}
  14. addUserKnob {7 saturation}
  15. saturation 1
  16. addUserKnob {7 h_off l "horizontal offset" R -100 100}
  17. addUserKnob {6 blackOutside l "black outside" +STARTLINE}
  18. addUserKnob {6 sRGB +STARTLINE}
  19. sRGB true
  20. addUserKnob {7 alpha l "alpha (mix-max)"}
  21. addUserKnob {20 info}
  22. addUserKnob {26 history T "0.3 added 'alpha (mix-max)'\n0.2 initial release"}
  23. }
  24. Input {
  25. inputs 0
  26. name Input1
  27. xpos -242
  28. ypos -195
  29. }
  30. Saturation {
  31. saturation {{parent.saturation i}}
  32. name Saturation1
  33. xpos -242
  34. ypos -162
  35. }
  36. set N5ce3730 [stack 0]
  37. OneView {
  38. name OneView1
  39. label left
  40. xpos -287
  41. ypos -96
  42. }
  43. Transform {
  44. translate {{-parent.h_off.left*0.5 i} 0}
  45. center {1024 778}
  46. black_outside {{parent.blackOutside i}}
  47. name Transform1
  48. xpos -287
  49. ypos -58
  50. }
  51. push $N5ce3730
  52. OneView {
  53. view right
  54. name OneView2
  55. label right
  56. xpos -196
  57. ypos -97
  58. }
  59. Transform {
  60. translate {{parent.h_off.left*0.5 i} 0}
  61. center {1024 778}
  62. black_outside {{parent.blackOutside i}}
  63. name Transform2
  64. xpos -196
  65. ypos -59
  66. }
  67. MergeExpression {
  68. inputs 2
  69. expr0 "pow((Ag*parent.WeightGreen+Ab*(1-parent.WeightGreen)), 1/parent.gamma_r)*pow(2, parent.multiplier)*pow(2, fstops_r)"
  70. expr1 "Bg*pow(2, parent.fstops_gb)*pow(2, parent.multiplier)"
  71. expr2 "Bb*pow(2, parent.fstops_gb)*pow(2, parent.multiplier)"
  72. channel3 rgba
  73. expr3 "(max(Aa,Ba)*parent.alpha) + (((Aa+Ba)/2)*(1-parent.alpha))"
  74. name MergeExpression1
  75. xpos -241
  76. ypos 3
  77. }
  78. Expression {
  79. expr0 parent.sRGB>0?toSRGB(r):r
  80. expr1 parent.sRGB>0?toSRGB(g):g
  81. expr2 parent.sRGB>0?toSRGB(b):b
  82. name Expression1
  83. xpos -241
  84. ypos 29
  85. }
  86. Output {
  87. name Output1
  88. xpos -241
  89. ypos 80
  90. }
  91. end_group