1.-Autoset its name sequentially: TAKE_000, TAKE_001 (3 or variable digits padding)
2.-Autoset the knob ‘file’ setValue to a constant and variables folders, for example:
Z:/PROJECT/Material/SCENE_002/TAKE_014/CHARACTERS/char/%vCam/Sce02_Take14_%03d.exr’)
The red characters should be taken from the node name, and increase with this. So, it shol look like this:
for Read named TAKE_011
Z:/PROJECT/Material/SCENE_002/TAKE_011/CHARACTERS/char/%vCam/Sce02_Take11_%03d.exr’)
I’m reading the nuke PDF…, but I think it’s not enough..
r=nuke.createNode(‘Read’)
r.setXYpos(0,0)
r.setName(‘TAKE_000’,uncollide=True)
nuke.toNode(‘TAKE_000’).knob(‘file’).setValue(‘Z:/PROJECT/Material/SCENE_002/TAKE_014/CHARACTERS/char/%vCam/Sce02_Take14_%03d.exr’)
because when I create the next node, the number change to one digit…
In few words, what I need is a number sequencer python command… and a character catcher like:
[lindex [split [lindex [split [metadata input/filename] /] 8] ._] 1]
Or something like that…
Is it possible? or just need sleep much? 😀
Thank you in advance…
I don’t want you resolve my life, i’m not a coder…, but i’m interested in learn python. Just show me the way, please!:p
Post a Comment