Python script to change node settings in Nuke for rendering final shots. Created for the visual effects team on the Syfy series Incorporated.
Working as a VFX Coordinator on Incorporated, I noticed that our artist team had to take time away from working on shots to render approved shots for final post-production. This meant opening the Nuke files for individual shots, changing the colorspace of the read nodes, turning off the vectorfield, and changing the colorspace, file type, and codec of the write nodes. On a show that had about 1000 VFX shots over ten episodes, this took lots of time away from the artist's day.
My script would select nodes and make the necessary changes automatically (see below excerpt for the read nodes). The user would be given a message to confirm which nodes were affected. This greatly reduced the time spent changing the export settings from the review file to the final version.
#Select footage read nodes, turn off raw data and change colorspace
for i in nuke.selectedNodes("Read"):
path = i.knob("file").getValue()
if path[0:10] == "H:/DAILIES" or path[0:13] == "I:/FROM_DRIVE":
i.knob("raw").setValue(False)
i.knob("colorspace").setValue("AlexaV3LogC")
message += str(i.name()) + "\n"
I created this script outside of work hours as a temporary fix until the team had time to re-evaluate their workflow.