Hi
You can try something like this:

1. Create a simple tcl script:

******setFormat.tcl*******
proc setFormat {} {
        set aa [value this.which]
        if {$aa == 0} {
                knob root.format HD
                return 0
                } else {
                knob root.format PAL
                return 1
                }
        }
*****************
 and place it in your .nuke folder.

2. Add some user knob to one of your switches and just use [setFormat] as 
expression.


Best
Adrian


W dniu 2012-04-16 12:34:38 użytkownik jaden 
<nuke-python-re...@thefoundry.co.uk> napisał:


--
yep that's whats happening but for all roto nodes,ramps, constants and other 
stuff i need to reformat the root format or built a tree around it, which i did 
and which works but it would have been easier to just link the rootFormat via 
expression to the switch which seems impossible and that's why i asked if 
someone knows how to do it?!
 
 jaden


_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to