hey this should get you started. For this exemple, I just created a Blur and added a slider to it so that the "User" tabs knob is created. Then I seected the node and run this script in the script editor
s = nuke.selectedNode() s['knobChanged'].setValue(''' n = nuke.thisNode() k = nuke.thisKnob() if k.name() == "inputChange": if n.input(0): n['User'].clearFlag(nuke.INVISIBLE) else: n['User'].setFlag(nuke.INVISIBLE) ''') This will add a code to be run everytime the input of your node is changed. So in this case, if the blur is connected to another node, the tab will be shown. For a 2 input node, just change the input number to match the one you need to track. Hope this get you started On Thu, Mar 8, 2012, at 11:12, barba wrote: Hi all, i'm a newbie about Gizmo and Python ..i'm happy to be here...i hope to learn a lot of things with your help, for become a big master ninja compositor! Wink i'm trying to create a Gizmo for manage my multiEXR render... and i would like to know if is possibile Hide a Tab if his node is not plugged. i try to explain...for example i have a group with 2 input...A and B...in the Properties Tab i have two tab...one for the attributes of input A and one for the attributes of input B.. is possibile hide the second tab when the B input is not plugged??.. i know...it's not a big problem...but i think that would be cool have a dynamic properties tab for my gizmo! thanks regards R. _______________________________________________ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users -- Hugo Léveillé TD Compositing, Vision Globale hu...@fastmail.net
_______________________________________________ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users