Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set cut_paste_input [stack 0]
- version 11.3 v4
- push 0
- push $cut_paste_input
- Group {
- inputs 2
- name DropShadow2
- help "<b>DropShadow Gizmo</b>\n\nThis gizmo will create a drop shadow for any input image that has an alpha channel <br> with values greater than 0.\n\ninput - the input image to cast the shadow from\n\nbg - the background image the 'input' image and drop shadow will be merged over\n\nOptions include:\n\nenable drop shadow - enable, or disable the drop shadow effect\ninherit input color - shadow color will be the same color as the input image\ncolor - color of the shadow (ignored if 'inherit input color' is active)\nopacity - opacity of the shadow (relative to the 'input' alpha value)\nangle - direction of the shadow (0/360 = left direction)\ndistance - distance of shadow from the 'input' content position \nsoftness - amount the shadow is blurred by \nshrink/expand - erode(-)/dilate(+) the shadow\ninput \[merge operation] bg - operation to combine the 'input' and 'bg' inputs:\n\n 'input' => the A input\n 'bg' => the B input"
- note_font Verdana
- selected true
- xpos 1435
- ypos -7327
- addUserKnob {20 User}
- addUserKnob {6 enable_dropshadow_effect l "enable drop shadow" t "enable/disable drop shadow effect" +STARTLINE}
- enable_dropshadow_effect true
- addUserKnob {6 removeInput l "remove input rgba (only output shadow without merging)" +STARTLINE}
- removeInput true
- addUserKnob {6 inherit_input_color l "inherit input color" t "use the input images colour for drop shadow" +STARTLINE}
- addUserKnob {18 color t "sets the color of the drop shadow (ignored if 'inherit input color' is active)"}
- color {0 0 0}
- addUserKnob {6 color_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
- addUserKnob {6 color_panelDropped_1 l "panel dropped state" -STARTLINE +HIDDEN}
- addUserKnob {7 opacity t "sets the opacity of the drop shadow"}
- opacity 0.585
- addUserKnob {7 dropshadow_angle l angle t "the angle at which the shadow falls\n\n0/360 = left\n90 = top\n180 = right\n270 = bottom " R 0 360}
- dropshadow_angle 226
- addUserKnob {7 dropshadow_distance l distance t "distance of shadow from the 'input' content position" R 0 50}
- dropshadow_distance 30
- addUserKnob {7 softness t "the softness of the shadow (i.e. Blur)" R 0 20}
- softness 5.6
- addUserKnob {7 size l shrink/expand t "erode (-) or dilate (+) the shadow" R -5 5}
- size 1.5
- addUserKnob {26 divider l "" +STARTLINE}
- addUserKnob {41 operation l input t "merge operation used to combine 'input' and 'bg' " T Merge1.operation}
- addUserKnob {26 bg_input_text l "" -STARTLINE T " bg"}
- }
- Grade {
- inputs 0
- channels alpha
- multiply {0 0 0 {parent.opacity}}
- name Grade2
- note_font Verdana
- xpos 334
- ypos -281
- hide_input true
- }
- Input {
- inputs 0
- name input
- note_font Verdana
- xpos 39
- ypos -509
- number 1
- }
- Dot {
- name Dot6
- note_font Verdana
- xpos 73
- ypos -457
- }
- set N5a158f30 [stack 0]
- Dot {
- name Dot7
- note_font Verdana
- xpos 188
- ypos -457
- }
- set N5a15b3f0 [stack 0]
- Dot {
- name Dot8
- note_font Monaco
- xpos 298
- ypos -457
- }
- set N5a15d8b0 [stack 0]
- Grade {
- channels alpha
- multiply {1 1 1 {parent.Grade2.multiply.a}}
- name Grade1
- note_font Monaco
- xpos 264
- ypos -223
- }
- push $N5a15d8b0
- Dot {
- name Dot10
- xpos 439
- ypos -457
- }
- set N5a4f8d70 [stack 0]
- Shuffle {
- red alpha
- green alpha
- blue alpha
- name Shuffle1
- note_font Verdana
- xpos 408
- ypos -372
- }
- Clamp {
- name Clamp1
- xpos 408
- ypos -329
- }
- Grade {
- channels rgba
- multiply {{parent.color} {parent.color} {parent.color} {parent.Grade2.multiply.a}}
- name Grade3
- note_font Verdana
- xpos 408
- ypos -221
- }
- Switch {
- inputs 2
- which {{parent.inherit_input_color}}
- name Switch2
- note_font Monaco
- xpos 337
- ypos -150
- }
- Dilate {
- channels rgba
- size {{parent.size}}
- name Dilate3
- note_font Verdana
- xpos 337
- ypos -100
- }
- Blur {
- channels rgba
- size {{parent.softness}}
- filter quadratic
- name Blur3
- note_font Verdana
- xpos 337
- ypos -74
- }
- Transform {
- translate {{"-1*cos(\[value angle]*3.14159265/180)*\[value distance]"} {"sin(\[value angle]*3.14159265/180)*\[value distance]"}}
- center {1024 778}
- name Transform4
- note_font Verdana
- xpos 337
- ypos -48
- addUserKnob {20 User}
- addUserKnob {7 angle R 0 360}
- angle {{parent.dropshadow_angle}}
- addUserKnob {7 distance R 0 50}
- distance {{parent.dropshadow_distance}}
- }
- Dot {
- name Dot2
- note_font Verdana
- xpos 371
- ypos -12
- }
- set N5a191f70 [stack 0]
- Dot {
- name Dot4
- note_font Verdana
- xpos 481
- ypos -12
- }
- Dot {
- name Dot5
- note_font Verdana
- xpos 481
- ypos 138
- }
- set N5a1967b0 [stack 0]
- Dot {
- name Dot3
- note_font Verdana
- xpos 481
- ypos 216
- }
- push $N5a1967b0
- push $N5a191f70
- Premult {
- name Premult1
- note_font Verdana
- xpos 337
- ypos 15
- }
- EdgeDetectWrapper {
- channels alpha
- erodesize -0.1
- name EdgeDetect1
- xpos 337
- ypos 41
- }
- Dilate {
- channels rgba
- size 1.4
- maskChannelInput rgba.alpha
- name Dilate1
- note_font Verdana
- xpos 337
- ypos 73
- }
- Copy {
- inputs 2
- from0 rgba.alpha
- to0 rgba.alpha
- name Copy1
- note_font Verdana
- xpos 337
- ypos 128
- }
- Premult {
- name Premult2
- note_font Verdana
- xpos 337
- ypos 166
- }
- Copy {
- inputs 2
- from0 rgba.alpha
- to0 rgba.alpha
- name Copy2
- note_font Verdana
- xpos 337
- ypos 206
- }
- set N5a1b5350 [stack 0]
- push $N5a4f8d70
- Dot {
- name Dot9
- xpos 630
- ypos -457
- }
- Shuffle {
- name Shuffle2
- label "\[value this.in] > \[value this.out]"
- xpos 599
- ypos -355
- }
- Merge2 {
- inputs 2
- operation copy
- bbox A
- name Merge2
- xpos 585
- ypos 323
- }
- push $N5a15b3f0
- push $N5a1b5350
- Merge2 {
- inputs 2
- name Merge8
- note_font Verdana
- xpos 154
- ypos 212
- }
- Switch {
- inputs 2
- which {{parent.removeInput}}
- name Switch3
- xpos 154
- ypos 323
- }
- set N5a09ee20 [stack 0]
- Dot {
- name Dot11
- xpos 289
- ypos 379
- }
- set N54d8baa0 [stack 0]
- push $N5a09ee20
- push $N5a158f30
- Dot {
- name Dot1
- note_font Verdana
- xpos 73
- ypos 412
- }
- Switch {
- inputs 2
- which {{parent.enable_dropshadow_effect}}
- name Switch1
- note_font Verdana
- xpos 154
- ypos 411
- }
- Input {
- inputs 0
- name bg
- note_font Verdana
- xpos -188
- ypos 509
- }
- Merge2 {
- inputs 2
- operation multiply
- name Merge1
- note_font Verdana
- xpos 88
- ypos 509
- }
- Switch {
- inputs 2
- which {{parent.removeInput}}
- name Switch4
- xpos 249
- ypos 585
- }
- Output {
- name Output1
- note_font Verdana
- xpos 249
- ypos 641
- }
- push $N54d8baa0
- push 0
- Viewer {
- inputs 2
- frame_range 1-304
- input_number 1
- name Viewer1
- xpos 695
- ypos 673
- }
- end_group
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement