Any help would be greatly appreciated.
I need to have a variable put into the label of the knob and set the flag to Disable.
So if my variable is this:
myVaraiable = /cr2
Then make it where you cannot type into that field, in other words, grayed out.
As of right now, I get an error when it is run:
# Result:
File "<string>", line 9
SetFlags(CR2, Knob::DISABLED)
^
SyntaxError: invalid syntax
Here is the script:
import nuke, os, nuke, nukescripts
class ModalFramePanel( nukescripts.PythonPanel ):
def __init__( self ):
nukescripts.PythonPanel.__init__( self, "Convet RAW Stills")
self.CR2 = nuke.String_Knob( 'has_cr2', "there are images in directory", 'myVaraiable')
self.addKnob( self.CR2 )
SetFlags(CR2, Knob::DISABLED)
testModalPanel()
Thank you for your time,
d
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
