I'm trying to render both a full-res and a proxy-res file in one go by
flipping from full res mode to proxy mode during a render. However, I'm
having two problems: 1) it seems like Nuke doesn't want to stay in proxy
mode if it's switched on while a render is taking place. And 2) I'm
getting a RuntimeError when trying to execute the write node from the
afterFrameRender callback.
It's this code:
def toggleProxyAndRender(node):
proxy = nuke.root().knob('proxy').value()
print proxy
nuke.root().knob('proxy').setValue(not proxy)
proxy = nuke.root().knob('proxy').value()
print proxy
nuke.execute(node, 1, 1)
With this setup:
set cut_paste_input [stack 0]
version 7.0 v2
CheckerBoard2 {
inputs 0
name CheckerBoard1
selected true
xpos -260
ypos -249
}
Write {
file /tmp/imageFull.jpg
proxy /tmp/imageProxy.jpg
file_type jpeg
checkHashOnRead false
version 30
afterFrameRender toggleProxyAndRender(nuke.thisNode())
name Write1
selected true
xpos -260
ypos -136
}
I get this behavior in 6.3v6 and 7.0v2.
Am I going about this the wrong way?
This e-mail and any attachments are intended only for use by the addressee(s)
named herein and may contain confidential information. If you are not the
intended recipient of this e-mail, you are hereby notified any dissemination,
distribution or copying of this email and any attachments is strictly
prohibited. If you receive this email in error, please immediately notify the
sender by return email and permanently delete the original, any copy and any
printout thereof. The integrity and security of e-mail cannot be guaranteed.
_______________________________________________
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