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
14 May 2013
189

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.
marcieSnapshot

Please login in order to download these files.

Comments   

 
# Richard Courtman 2013-05-14 07:10
Hi, I've got this set up however I'm not sure what else to put in my menu.py. Currently put this in

# snapShot
import nodeSnapshot

but I imagine I'll need to set a shotcut somewhere? Not sure how to run it otherwise. Thanks.
 
 
# Richard Courtman 2013-05-14 07:20
A bit of tinkering and I got it to work. Here's what I've done to help those wondering (I think author should do this by default)

# snapShot
import nodeSnapshot
nuke.menu( 'Nodes' ).addCommand( 'snapShot', "nodeSnapshot.n odeSnapshot()", "F4")
 
 
# Richard Courtman 2013-05-14 07:53
Thanks for sharing this Pete, I've been looking all over for this! I've got a couple of questions if you don't mind answering. This comes in to my node graph very large! Nothing like the size of the screenshot above (consequently slows machine to a halt). Any idea why? The other question I have is whether this can take snapshots at the current zoom level? Thanks
 
 
# Pete O'Connell 2013-05-14 19:54
Hi I just uploaded a new version with a few fixes mostly to do with the variable called "theSnapshotFormat"
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.
 
 
# Richard Courtman 2013-05-15 03:08
That works better! I've looked into the zoom.level and apparently nuke.zoom() is only for the nodegraph.
 
 
# Michael Clemens 2018-05-30 01:46
Getting an error

"Integer argument expected, got float"
 
 
# Scott Mackay 2019-03-05 21:39
in line 55 of the nodeSnapshot script change it so it reads
theBackdropNode.setXYpos(int(theSelectedNodeXpos+200),int(theSelectedNodeYpos+100))

I guess changing it to an integer in Mac or Linux doesn't apply.
 

You have no rights to post comments

We have 3172 guests and 69 members online