I usually use fromScript instead of setValue. Would you say setValue is 
preferred over fromScript for some reason?

node = nuke.createNode( 'Write' )
message = 'hello'
node.knob('label').fromScript( message )

I don't really know why I use fromScript ...it's just the way I have used to do 
this...


Regards, 

-- 
Fredrik Averpil
www.averpil.com/fredrik


On Friday, December 16, 2011 at 3:30 PM, Howard Jones wrote:

> Should point out you need to select the nodes in this version
>  
> Howard
> 
> > From: Howard Jones <[email protected] 
> > (mailto:[email protected])>
> > To: "[email protected] 
> > (mailto:[email protected])" 
> > <[email protected] 
> > (mailto:[email protected])> 
> > Sent: Friday, 16 December 2011, 14:16
> > Subject: Re: [Nuke-python] Re: Read Nodes-Set first Last
> > 
> > slightly different version of the same - should work as it works here ( as 
> > long as tabbing holds)
> > Howard
> > 
> > for sel in nuke.selectedNodes():
> >     sel["first"].setValue(100)
> >     sel["last"].setValue(150)
> >  
> > 
> > 
> > > From: BillRay <[email protected] 
> > > (mailto:[email protected])>
> > > To: [email protected] 
> > > (mailto:[email protected]) 
> > > Sent: Friday, 16 December 2011, 13:53
> > > Subject: [Nuke-python] Re: Read Nodes-Set first Last
> > > 
> > > Thanks for the speedie response!
> > > 
> > > Cant get it to run though? It does not reconise 'sel'?
> > > 
> > > Any ideas?
> > > 
> > > Thanks again! 
> > > _______________________________________________
> > > Nuke-python mailing list
> > > [email protected] 
> > > (mailto:[email protected]), 
> > > http://forums.thefoundry.co.uk/
> > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > > 
> > > 
> > 
> > _______________________________________________
> > Nuke-python mailing list
> > [email protected] 
> > (mailto:[email protected]), 
> > http://forums.thefoundry.co.uk/
> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> > 
> > 
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> 
> 


_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to