Way 3 might be trickier to do if you have multiple nodes in the scripts. You have to search for "value 10" but other node class could also have that. I dunno how complex is your script so I can't tell.
With way 3, you can at least target a specific node class and then also search for the specific value. If you really only have one Blur, its not a problem. But if you have multiple, you have to be carefull. Is the node you are searching for always named the same ex("Blur1") ? If not, and if you have multiple Blur node in your script, I think you'll need to be really carefull pn that 1000+ script operation But I am sure someone will come with a clever solution On Thu, Nov 8, 2012, at 2:07, chrissowa wrote: I just wanted to ask what is the best way to batch edit nodes in many nuke-scripts. Just a simplified theoretical example.: You got a project (1000 Shots) and every shot has a final nuke script. This nuke script consists of: read -> blur -> write The Blur-size is set to 10. Now i want to increase the blur for all shots on 20. Possible ways i see to achieve this by scripting: * open every nuke script in "terminal mode" with python parameters that change the value * run a function in GUI nuke that opens the first script, changes the value, saves it and goes on with the next script. all in one nuke window * edit the *.nk-files like with an texteditor programmatically and change the values in the nuke file itself So my questions are: * Are there any other (better) ways to do batch editing? * What speaks against or for my different possibilities? What way would you prefer? * I ve never used way 1 or 3 but the idea of way 3 seems to be the coolest (fastest) way to me? * Would HIERO change the way to do this? Actually im still new to NUKE and Python and it s difficult to get help on practical application of all these possibilities. So i really would be glad on any hint. Thanks in advance. _______________________________________________ Nuke-python mailing list [1]Nuke-python@support.thefoundry.co.uk, [2]http://forums.thefoundry.co.uk/ [3]http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python References 1. mailto:Nuke-python@support.thefoundry.co.uk 2. http://forums.thefoundry.co.uk/ 3. http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python -- Hugo Léveillé TD Compositing, Vision Globale hu...@fastmail.net
_______________________________________________ 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