nodeSnapshot v1.3
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: Pete O'Connell
nodeSnapshot takes a picture of the selected node and displays it in the dag.
Requirements:
6.0, 6.1, 6.2, 6.3, 7.0 or later
Linux, Mac
6.0, 6.1, 6.2, 6.3, 7.0 or later
Linux, Mac


This script first creates a write node next to the selected node. It then executes the write node on the current frame and creates a backdrop node with the write node's file path assigned to the icon knob of the backdrop node. In this version of the script, the image repository's base folder is hard coded into the script ("/private/var/tmp/nukeSnapshots"), and as such only work out of the box on a Mac. Change this path in the script to any exising folder.
Please login in order to download these files.
Comments
# snapShot
import nodeSnapshot
but I imagine I'll need to set a shotcut somewhere? Not sure how to run it otherwise. Thanks.
# snapShot
import nodeSnapshot
nuke.menu( 'Nodes' ).addCommand( 'snapShot', "nodeSnapshot.n odeSnapshot()", "F4")
whose value is now correctly set in the reformat node that gets created.
Rather than assigning the image to the backdrop node using html, in this update it has been assigned to the icon knob of the backdrop node.
As far as making the screenshot size dependent on the current zoom level I think it is possible. If you make a version of the script which queries nuke.zoom() and uses that value as a multiplier for the theSnapshotForm at's x and y values before the format is defined in the script. You might end up with a lot of format's if you do that though...
Pete
Think outside the bbox.
"Integer argument expected, got float"
theBackdropNode.setXYpos(int(theSelectedNodeXpos+200),int(theSelectedNodeYpos+100))
I guess changing it to an integer in Mac or Linux doesn't apply.
RSS feed for comments to this post