spawn FrameHold to extract still frames
holdFrames
Updated: 1 September 2010
Author: frank
Compatible Nuke versions: 6.0 or later
Compatibility: Linux, Mac, Windows
just removed the last line which was a debug left over
some updates as per Chris' comments:
- using an increment in the frame range is now supported (example: 1-100x5)
- adde "import nuke" statement
- fixed example in description
holdFrames will extract still frames from a selected node based on it's inherent frame range.
example entry for menu.py:
1 2 3 4 |
import holdFrames toolbar = nuke.toolbar('Nodes') toolbar.addCommand('Time/Hold Frames', 'holdFrames.holdFrames( nuke.selectedNode(), holdRange="all" )') |

when run with holdRange="all" (like in the above example), each frame in the node's frame range will be extracted by a FrameHold node (you can run this on any node, not just Reads).
You can also customise the behaviour by using a custom frame range like this:
1 |
holdFrames.holdFrames( nuke.selectedNode(), holdRange='2-5' )
|
or invoke a frame range dialog like this:
1 |
holdFrames.holdFrames( nuke.selectedNode(), holdRange='ask' )
|
(actually, any given range that can't be interpreted will invoke the frame range dialog)