Import script and replace all I/O paths – script help

Hi, I’m trying to figure out how to create a button that does this:

Opens up a window asking what shot number you are working on.

Once that’s done, import a script from path X or even if it’s a nuke script inside the python script that just gets created, doesn’t matter.

Replaces all write node paths according to what shot number you mentioned earlier, so if the script by default loads in X:\projectA\shot01\projectA_shot01.%04d.tga it should replace all those shot01’s with whatever you put into the window.

And that’s it. If anyone has tips or can put me in the right direction it’d be great. Thanks!

No Responses to “Import script and replace all I/O paths – script help”

Post a Comment