import nuke print nuke.frame() ### will get the current frame print nuke.frame(12) ### will set the current frame
alternatively, you can just use TCL inside a text node: [frame] If you create a text node by default the string is: frame: [frame] You can mix and match too: frame: [python nuke.frame()] On Thu 21 Feb 2013 09:42:06 PM PST, Day Dreamer wrote:
Hi, i am creating a tool in which user will select the shots , and from the rendered image sequence, the mov will be generated. I made an external Ui to choose the shots, then i am launching nuke in command mode and creating a Read node having image sequence then attaching a Write node to it and rendering it. My tool having a progress bar which displays the progress of the render. how can i get the which frame number is rendered? even if i use afterFrameRender callback, how it will return the frame number. Thanks in advance _______________________________________________ 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
_______________________________________________ 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