State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:306818|
Problem summary
Adding code to the 'before render' field inside a Write Node -> Python, executes after the render is completed.
(The Echo callback for the command will happen before the render)
If the user attempts to change the Project's 'Proxy_Scale' settings, they aren't initiated until the render is complete.
Through investigating the issues I have found out users cannot edit the scale for specific write nodes, example below:
'before render' : nuke.root()['proxy_scale'].setValue(0.5)
'after render' : nuke.root()['proxy_scale'].setValue(0.2)
Another issue is if the user attempts to turn off the proxy using Python, it executes an Echo callback, but does not change the proxy settings:
'before render : nuke.root()['proxy'].setValue(False)
Other Python commands such as print statements, or creating a Node, will execute before the render, but project settings actions wait for the render to complete.
Customer reported version
nuke.11.0v1
Customer reported platform
windows10
Steps to reproduce
1) Open Nuke, Read in a file.
2) Go to Nuke Project Settings (hotkey s) and change 'proxy_type' to 'Scale' and 'proxy_scale' to '0.1'
3) Enable the proxy by clicking the 'proxy' checkbox.
4) Attach a write node to the read Node.
5) In Write Node -> Python, Add the following code to the 'before render'
nuke.root()['proxy_scale'].setValue(1)
nuke.root()['proxy'].setValue(False)
We're sorry to hear that
Please tell us why