snapShot v1.1
This location is for Registered Users Only.
Perhaps you need to login or register.
Contributor: satheesh R
snapShot render your current frames result (which ever your seeing your viewer) as a .jpg file and re-load it automatically. Its using your scripts name, version and your current nodes ( means selected node) name.
Updated with new icon and custom input gizmo. Place the image gizmo, icon and snapShot.py on your custom nuke DIR. Replace menu.py line to make it work.
Requirements:
6.2, 6.3 or later
6.2, 6.3 or later



Please login in order to download these files.
Comments
import snapShot
n = nuke.toolbar('Nodes')
menu.addCommand('Edit/snapShot', 'snapShot.snapS hot()', "F3")
Traceback (most recent call last):
File "", line 1, in
File "C:/Users/123/. nukesnapShot.py ", line 22, in snapShot
w['_jpeg_sub_sampl ing'].setValue(2)
NameError: knob _jpeg_sub_sampl ing does not exist
Which version Nuke your using. I think earlier versions of Nuke6.3 doesn't have "jpg sub sampling" option. If it is just remove that line.
Traceback (most recent call last):
File "", line 1, in
RuntimeError: C:/Users/gmk/.n uke/gizmos/snap Shot.py: plugin did not define snapShot
Thanks
Trying to set it up in a central location for a small studio and failing so far, would love to get it working
import snapShot
m = nuke.menu('Nodes')
m.addCommand('snapShot', 'snapShot.snapS hot()', "F3", icon="camera.png")
Thanks for sharing this great tool Satheesh
Placed all 3 files into my Nuke 9 Dir (plugins folder)
Then added the path in the Menu.py file to point to the files.
The icon shows up on the toolbar however, I keep getting
"Invalid syntax line 1"
Any suggestions would be appreciated,
Lou
This is the gizmo file
#! /usr/local/Nuke 6.3v4/Nuke6.3 -nx
version 6.3 v4
Gizmo {
inputs 0
postage_stamp true
addUserKnob {20 snapShot}
addUserKnob {41 input T Read1.file}
addUserKnob {41 first l "frame range" T Read1.first}
addUserKnob {41 last l "" -STARTLINE T Read1.last}
}
Read {
inputs 0
file "\[python \{nuke.script_d irectory()\}]/s napShots/\[stri ng trim \[file tail \[value root.name]] .nk]_CheckerBoa rd1_%04d.jpg"
format "2048 1556 0 0 2048 1556 1 2K_Super_35(ful l-ap)"
first 20
last 20
origset true
name Read1
xpos 245
ypos -141
}
Output {
name Output1
xpos 245
ypos -41
}
end_group
when are you seeing the error exactly?
BTW, here's my entire menu py
import nukescripts.alignNodes
import nuke
from mocha import send_to_mocha
nuke.pluginAddPath('./icons')
menuBar = nuke.menu("Nuke")
menuBar.addCommand('Edit/Node/Align/horizontally', 'nukescripts.al ignNodes.alignN odes( nuke.selectedNo des(), direction="x" )', 'alt+x')
menuBar.addCommand('Edit/Node/Align/vertically', 'nukescripts.al ignNodes.alignN odes( nuke.selectedNo des(), direction="y" )', 'alt+y')
import snapShot
m = nuke.menu('Nodes')
m.addCommand('snapShot', 'snapShot.snapS hot()', "F3", icon="camera.png")
toolbar.addCommand("Snapshot", "snapShot.snapS hot()", icon="/C:\Progr am Files\Nuke9.0v6 \plugins/camera .png")
When I copied the script from the first post( satheesh ) it came in with spaces on some lines giving me the error. I never thought that a simple "copy & paste" can not be Identical when you paste it back to notepad.
Thanks Frank, you actually fixed it without knowing it :)
RSS feed for comments to this post