Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
FORUMS: listlist (w/ descriptions)archivetagssearchhall of famerecent posts

Re: Switch 3D Geometry on/off in Nuke

Cow Forums : Nuke
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: Switch 3D Geometry on/off in Nuke
by Peter O'Connell on May 10, 2009 at 8:52:44 pm

Hi Dan, in the previous expression enabled = 1, disabled = 0. If you want to reverse that, subtract 1 from both values so that enabled = 0 and disabled = -1 then take the absolute value of these so enabled becomes 0 and disabled becomes 1.





set cut_paste_input [stack 0]
version 5.1400
push $cut_paste_input
ReadGeo2 {
name ReadGeo1
selected true
xpos -568
ypos -142
disable {{abs(1-parent.enableReadGeo.enableReadGeo1)}}
}
NoOp {
inputs 0
name enableReadGeo
selected true
xpos -386
ypos -87
addUserKnob {20 User}
addUserKnob {6 enableReadGeo1 t enableReadGeo1 +STARTLINE}
enableReadGeo1 true
}





Pete

roguekeyframe.com



Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]