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], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users