Python Button, and path
Posted in: NUKE from The FoundrySo, I try to create a python button to save comps into a specific location.
This location is a value created into a NoOp.
Example:
NoOp1 contain 1 input text field, and 1 Filename… field.
Filename field name 01: projectpath
Input text field name 02: shotname
Value into projectpath: C:/Test/
Value into shotname: Sh0010
NoOp2 contain a python button with this script:
nuke.scriptSaveAs(nuke.knob("NoOp1.projectpath"))
My problem is:
I would like to add the projectpath value and the shotname value, to have this:
C:/Test/Sh0010/test.nk
I can’t find a way to add this two values into the button.
That’s what I have now:
nuke.scriptSaveAs(nuke.knob("NoOp1.projectpath")+("NoOp1.shotname")+("test.nk"))
But of course the result is a .nk file named: NoOp1.ShotName.nk, into C:/Test/
Someone can help me?
Thx in advance,
Have a nice we 🙂
Post a Comment