I havn't seem your script, I'm at the beach, but if input1 is the one you 
connect the plate through I think it should work. Same principle for the B pipe 
in the merge node basically.

/Elias

13 jul 2013 kl. 12:29 skrev "Alex Wolf" <[email protected]>:

> That was a simpler solution than what I imagined. Great trick! Exactly what I 
> was out for. 
> 
> Thanks Howard 
> 
> On 13 jul 2013 11:29 "Howard Jones" <[email protected]> wrote:
> 
>> Hi
>> 
>> I just swapped the inputs round and renamed them - does this work for
>> you?
>> 
>> set cut_paste_input [stack 0]
>> version 7.0 v8
>> push 0
>> push $cut_paste_input
>> Group {
>> inputs 2
>> name transparency_reducer
>> tile_color 0xffff
>> selected true
>> xpos -3657
>> ypos 1005
>> disable true
>> addUserKnob {20 process l Process}
>> addUserKnob {26 versionnumber l "Version: " T "1.0 l 11/07-2013 l by
>> Alex Wolf"}
>> addUserKnob {26 ""}
>> addUserKnob {26 step1 l "Step 1" T ": Pull a Solid Key"}
>> addUserKnob {26 ""}
>> addUserKnob {41 range T Keyer2.range}
>> addUserKnob {26 ""}
>> addUserKnob {26 step2 l "Step 2" T ": Erode in "}
>> addUserKnob {26 ""}
>> addUserKnob {6 viewmatte l "View Matte" +STARTLINE}
>> addUserKnob {6 viewplate l "View Plate" +STARTLINE}
>> addUserKnob {41 size l Blur T Blur2.size}
>> addUserKnob {41 value l Gamma T Gamma1.value}
>> addUserKnob {26 ""}
>> addUserKnob {26 step3 l "Step 3" T ": Amount of Transparency Reduction"}
>> addUserKnob {26 ""}
>> addUserKnob {41 size_1 l Reduction T Blur1.size}
>> addUserKnob {26 ""}
>> }
>> Input {
>> inputs 0
>> name Fg
>> xpos 127
>> ypos -294
>> number 1
>> }
>> Dot {
>> name Dot4
>> xpos 161
>> ypos -225
>> }
>> set Na623e620 [stack 0]
>> Dot {
>> name Dot1
>> xpos 161
>> ypos 209
>> }
>> push $Na623e620
>> Dot {
>> name Dot2
>> xpos 64
>> ypos -225
>> }
>> Keyer {
>> range {0.8318539936 0.95 1 1}
>> name Keyer2
>> xpos 30
>> ypos -161
>> }
>> set Na6249680 [stack 0]
>> Blur {
>> channels alpha
>> size 10
>> quality 3
>> name Blur2
>> xpos 30
>> ypos -72
>> }
>> Gamma {
>> channels alpha
>> value 0.09
>> name Gamma1
>> xpos 30
>> ypos 19
>> }
>> set Na625a640 [stack 0]
>> Shuffle {
>> red alpha
>> green alpha
>> blue alpha
>> name Shuffle1
>> xpos 30
>> ypos 119
>> }
>> Input {
>> inputs 0
>> name Mask
>> xpos -145
>> ypos -61
>> number 2
>> }
>> push $Na625a640
>> Merge2 {
>> inputs 2
>> operation stencil
>> name Merge1
>> xpos -145
>> ypos 25
>> }
>> Input {
>> inputs 0
>> name Bg
>> selected true
>> xpos -296
>> ypos -183
>> }
>> Blur {
>> inputs 1+1
>> channels rgb
>> size 22.5
>> quality 2
>> name Blur1
>> xpos -296
>> ypos 25
>> }
>> Switch {
>> inputs 2
>> which {{viewmatte}}
>> name Switch1
>> xpos -296
>> ypos 119
>> }
>> Switch {
>> inputs 2
>> which {{viewplate i}}
>> name Switch2
>> xpos -296
>> ypos 206
>> }
>> Output {
>> name Output1
>> xpos -296
>> ypos 468
>> }
>> push $Na6249680
>> Viewer {
>> input_process false
>> name Viewer1
>> xpos -61
>> ypos -131
>> }
>> end_group
>> 
>> 
>> 
>> 
>> 
>> 
>> Howard
>> 
>> 
>> 
>> > From: Alex Wolf <[email protected]>
>> > To: [email protected]
>> > Sent: Saturday, 13 July 2013, 10:17
>> > Subject: [Nuke-users] Controll input to pass through when disabling
>> > group/gizmo
>> > 
>> > 
>> > 
>> > Hi all!
>> > 
>> > 
>> > 
>> > I´m creating a gizmo which has a background and plate input. When the
>> > gizmo is disabled it automatically passes through the plate input.
>> > What I want is the background input to go through and gets viewed when
>> > the gizmo is disabled.
>> > 
>> > 
>> > 
>> > 
>> > Is there someone who can point me in the right direction? Can I
>> > controll this, by maybe putting in expression in the disable knob or
>> > is python the way to go?
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > set cut_paste_input [stack 0]
>> > 
>> > version 6.3 v1
>> > 
>> > ColorWheel {
>> > 
>> > inputs 0
>> > 
>> > gamma 0.45
>> > 
>> > name ColorWheel1
>> > 
>> > selected true
>> > 
>> > xpos 829
>> > 
>> > ypos -407
>> > 
>> > }
>> > 
>> > set N218a3990 [stack 0]
>> > 
>> > Dot {
>> > 
>> > name Dot1
>> > 
>> > selected true
>> > 
>> > xpos 863
>> > 
>> > ypos -137
>> > 
>> > }
>> > 
>> > CheckerBoard2 {
>> > 
>> > inputs 0
>> > 
>> > name CheckerBoard1
>> > 
>> > selected true
>> > 
>> > xpos 514
>> > 
>> > ypos -402
>> > 
>> > }
>> > 
>> > push $N218a3990
>> > 
>> > Group {
>> > 
>> > inputs 2
>> > 
>> > name transparency_reducer
>> > 
>> > tile_color 0xffff
>> > 
>> > selected true
>> > 
>> > xpos 514
>> > 
>> > ypos -253
>> > 
>> > addUserKnob {20 process l Process}
>> > 
>> > addUserKnob {26 versionnumber l "Version: " T "1.0 l 11/07-2013 l by
>> > Alex Wolf"}
>> > 
>> > addUserKnob {26 ""}
>> > 
>> > addUserKnob {26 step1 l "Step 1" T ": Pull a Solid Key"}
>> > 
>> > addUserKnob {26 ""}
>> > 
>> > addUserKnob {41 range T Keyer2.range}
>> > 
>> > addUserKnob {26 ""}
>> > 
>> > addUserKnob {26 step2 l "Step 2" T ": Erode in "}
>> > 
>> > addUserKnob {26 ""}
>> > 
>> > addUserKnob {6 viewmatte l "View Matte" +STARTLINE}
>> > 
>> > addUserKnob {6 viewplate l "View Plate" +STARTLINE}
>> > 
>> > addUserKnob {41 size l Blur T Blur2.size}
>> > 
>> > addUserKnob {41 value l Gamma T Gamma1.value}
>> > 
>> > addUserKnob {26 ""}
>> > 
>> > addUserKnob {26 step3 l "Step 3" T ": Amount of Transparency
>> > Reduction"}
>> > 
>> > addUserKnob {26 ""}
>> > 
>> > addUserKnob {41 size_1 l Reduction T Blur1.size}
>> > 
>> > addUserKnob {26 ""}
>> > 
>> > }
>> > 
>> > Input {
>> > 
>> > inputs 0
>> > 
>> > name Plate
>> > 
>> > xpos 271
>> > 
>> > ypos -228
>> > 
>> > }
>> > 
>> > Dot {
>> > 
>> > name Dot4
>> > 
>> > xpos 161
>> > 
>> > ypos -225
>> > 
>> > }
>> > 
>> > set N92fbb70 [stack 0]
>> > 
>> > Dot {
>> > 
>> > name Dot1
>> > 
>> > xpos 161
>> > 
>> > ypos 209
>> > 
>> > }
>> > 
>> > push $N92fbb70
>> > 
>> > Dot {
>> > 
>> > name Dot2
>> > 
>> > xpos 64
>> > 
>> > ypos -225
>> > 
>> > }
>> > 
>> > Keyer {
>> > 
>> > range {0.8318539936 0.95 1 1}
>> > 
>> > name Keyer2
>> > 
>> > xpos 30
>> > 
>> > ypos -161
>> > 
>> > }
>> > 
>> > set N92fc500 [stack 0]
>> > 
>> > Blur {
>> > 
>> > channels alpha
>> > 
>> > size 10
>> > 
>> > quality 3
>> > 
>> > name Blur2
>> > 
>> > xpos 30
>> > 
>> > ypos -72
>> > 
>> > }
>> > 
>> > Gamma {
>> > 
>> > channels alpha
>> > 
>> > value 0.09
>> > 
>> > name Gamma1
>> > 
>> > xpos 30
>> > 
>> > ypos 19
>> > 
>> > }
>> > 
>> > set N92fcb60 [stack 0]
>> > 
>> > Shuffle {
>> > 
>> > red alpha
>> > 
>> > green alpha
>> > 
>> > blue alpha
>> > 
>> > name Shuffle1
>> > 
>> > xpos 30
>> > 
>> > ypos 119
>> > 
>> > }
>> > 
>> > Input {
>> > 
>> > inputs 0
>> > 
>> > name Mask
>> > 
>> > xpos -145
>> > 
>> > ypos -61
>> > 
>> > number 2
>> > 
>> > }
>> > 
>> > push $N92fcb60
>> > 
>> > Merge2 {
>> > 
>> > inputs 2
>> > 
>> > operation stencil
>> > 
>> > name Merge1
>> > 
>> > xpos -145
>> > 
>> > ypos 25
>> > 
>> > }
>> > 
>> > Input {
>> > 
>> > inputs 0
>> > 
>> > name Bg
>> > 
>> > xpos -296
>> > 
>> > ypos -232
>> > 
>> > number 1
>> > 
>> > }
>> > 
>> > Blur {
>> > 
>> > inputs 1+1
>> > 
>> > channels rgb
>> > 
>> > size 22.5
>> > 
>> > quality 2
>> > 
>> > name Blur1
>> > 
>> > xpos -296
>> > 
>> > ypos 25
>> > 
>> > }
>> > 
>> > Switch {
>> > 
>> > inputs 2
>> > 
>> > which {{viewmatte i}}
>> > 
>> > name Switch1
>> > 
>> > xpos -296
>> > 
>> > ypos 119
>> > 
>> > }
>> > 
>> > Switch {
>> > 
>> > inputs 2
>> > 
>> > which {{viewplate i}}
>> > 
>> > name Switch2
>> > 
>> > xpos -296
>> > 
>> > ypos 206
>> > 
>> > }
>> > 
>> > Output {
>> > 
>> > name Output1
>> > 
>> > xpos -296
>> > 
>> > ypos 468
>> > 
>> > }
>> > 
>> > push $N92fc500
>> > 
>> > Viewer {
>> > 
>> > input_process false
>> > 
>> > name Viewer1
>> > 
>> > selected true
>> > 
>> > xpos -61
>> > 
>> > ypos -131
>> > 
>> > }
>> > 
>> > end_group
>> > 
>> > Merge2 {
>> > 
>> > inputs 2
>> > 
>> > name Merge1
>> > 
>> > selected true
>> > 
>> > xpos 514
>> > 
>> > ypos -140
>> > 
>> > }
>> > 
>> > 
>> > 
>> > _______________________________________________
>> > Nuke-users mailing list
>> > <[email protected]>,
>> > http://forums.thefoundry.co.uk/
>> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>> > 
>> >
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to