Hello Dennis,
On 11/07/2012 01:21, Dennis Davis wrote:
Was just trying to figure out how to put my frame range into the custom
field.
It is possible using some functions in renderdialog that set up default
states for the various knobs:
nukescripts.setRenderDialogDefaultOption("frame_range_string", "1,2,3,4")
nukescripts.setRenderDialogDefaultOption("input", "custom")
What's important to understand is that the renderdialog really is just
something nice for the user to use and it's just a wrapper for the
nuke.executeMultiple() and nuke.executeBackgroundNuke() functions.
Chances are, you really want to create your own dialog (not difficult)
to drive nuke.executeMultiple() in the way you want.
HTH,
Wouter
Thank you for the help
Dennis
Sent from my iPhone
On Jul 10, 2012, at 6:36 PM, Frank Rueter <[email protected]
<mailto:[email protected]>> wrote:
I'm not understanding. If you already have a frame range why open the
render dialog at all?
On 11/07/12 10:34 AM, dennis wrote:
In this document:
http://docs.thefoundry.co.uk/nuke/63/pythonreference/nukescripts.renderdialog-pysrc.html
under def __init__ I found a reference for what I need.
I just don't know how to access it.
I would like to add data to these by changing "input" to "custom" and
put in a frame range string.
# Frame range knobs
self._rangeEnum = nuke.Enumeration_Knob( "frame_range", "Frame
range", self._specialRanges self._viewers.keys() )
self._state.setKnob(self._rangeEnum, "input") CHANGE THIS TO "custom"
self.addKnob( self._rangeEnum )
self._frameRange = nuke.String_Knob( "frame_range_string", "") ADD A
FRAME RANGE STRING HERE
self._frameRange.clearFlag(nuke.STARTLINE)
if self._rangeEnum.value() == "custom":
self._state.setKnob(self._frameRange, str(nuke.root().frameRange()))
else:
self._setFrameRangeFromSource(self._rangeEnum.value())
Can anyone please help me with this?
Thank you in advance for any help.
dennis
_______________________________________________
Nuke-users mailing list
[email protected],http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected]
<mailto:[email protected]>,
http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--
Wouter Klouwen, Software Engineer
The Foundry, 6th Floor, Comms Building, 48 Leicester Sq, London WC2H LT
Tel: +442079686828 • Fax: +4420 79308906 • thefoundry.co.uk
The Foundry Visionmongers Ltd • Reg.d in England and Wales No: 4642027
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users