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/>
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to