What about using the multi view feature of nuke (formerly for stereo projects) 
? 
You create as much views as you want of differents versions 
You split knobs or streams to achieve wanted results. 
Then with "%v" in your write's pathname it names it accordingly to the version 
you tweak. 
The advantage of this workaround is that it doesn't requires any python skills 
and it's straight out of the box. 
Hope it helps, 
Cheers 
philhub 

>

Envoyé depuis mon HTC

----- Reply message -----
De : "irwit" <nuke-python-re...@thefoundry.co.uk>
Date : mar., juin 26, 2012 23:51
Objet : [Nuke-python] Re: Batching rendering multiple switcher results  using 
python
Pour : <nuke-python@support.thefoundry.co.uk>

Ive tried altering an existing python script but am having some issue including 
the execute code within it.


class Test( nukescripts.PythonPanel):

    def __init__( self ):
        nukescripts.PythonPanel.__init__( self, 'Test', 'my.panel')
        self.pulldown = 
nuke.Enumeration_Knob("test","test",["red","blue","green"])
        self.addKnob(self.pulldown)

    def knobChanged(self,knob):
        if nuke.thisKnob().name() == "test":
            result = nuke.thisKnob().getValue()
            nuke.toNode("Switch3").knob("which").setValue( result )
            nuke.execute ("Write1",0,0,1)

Test().showModalDialog()


So here I have a quick and easy panel to select my red blue or green  version 
of the script via a drop down and nuke should auto render as I change it.  I 
know this isn't ideal at the moment but it is just to see if I could render 
within a bit of python code but when I run this and change from red to green,  
the switch node updates and changes but I get a nuke error. 

RuntimeError: I'm already executing something else

I'm new to all this so I'm guessing this is probably really obvious but should 
I run the execute outside or after the showModalPanel?

Any help again much appreciated :)



_______________________________________________
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