ho and th set it on an another node:

node1 = nuke.toNode('Reformat1')
node2 = nuke.toNode('Reformat2')
format = node1.knob('format').value()
name = format.name()

node2.knob('format').setValue(name)


hope it helps,
Michael


2011/2/24 Michael Havart <[email protected]>

> hi there,
>
> to get the name of the format:
>
> node = nuke.selectedNode()
> format = node.knob('format').value()
> print format.name()
>
>
>
>
> 2011/2/24 Adam Wierzchowski <[email protected]>
>
> Actually I need a name of the format. I'm doing reformat to custom format
>> and then I create next Reformat node which should return to original format.
>> Something like this:
>>
>> reformat1 = nuke.nodes.Reformat()
>> reformat1.knob("format").setValue(customFormat)
>> reformat2 = nuke.nodes.Reformat()
>> reformat2.knob("format").setValue(origFormat)
>>
>> Adam
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected]
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>
>
>
> --
>  Michael Havart | DMP-ENV | MPC-London
> images: cghub.com <http://mika.cghub.com/> | 
> blogspot.com<http://michaelhavartportfolio.blogspot.com>
>  <http://michaelhavartportfolio.blogspot.com>cv: linkedin 
> profile<http://www.linkedin.com/in/michael0havart>
>  | imdb <http://www.imdb.com/name/nm3795968/>
>
>


-- 
 Michael Havart | DMP-ENV | MPC-London
images: cghub.com <http://mika.cghub.com/> |
blogspot.com<http://michaelhavartportfolio.blogspot.com>
 <http://michaelhavartportfolio.blogspot.com>cv: linkedin
profile<http://www.linkedin.com/in/michael0havart>
 | imdb <http://www.imdb.com/name/nm3795968/>
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to