i used to do the "batch edit in a texteditor" a lot, specially with shake, but these days i'm usually trying to solve it through python. takes me a bit longer (since i'm still not very savvy at this) but i learn something new every time and it's much more powerful.

one thing that helped me (regardless which approach) is to define a user knob and expression link that to the value knob on the important nodes when you set up your batch scripts. like:

set cut_paste_input [stack 0]
push $cut_paste_input
Blur {
 size {{batchBlur01}}
 name Blur1
 selected true
 xpos -131
 ypos -268
 addUserKnob {20 User}
 addUserKnob {7 batchBlur01}
 batchBlur01 1
}

that way, instead of searching for "size 1" and hoping that it it only affects the right nodes (or doing multi line searches and hope the layout is the same in all scripts) you can just look for the user knob name (ie "batchBlur01 1" here) which should be unique.

++ chris


_______________________________________________
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

Reply via email to