Or make the Panel using PySide and gain alot more control over your interface.

Best Regards
Jimmy Christensen
Developer
Ghost A/S

On 02/09/12 15:11, Mohamed Selim wrote:
Never mind. I got it to work finally by replacing the word later on.

Here is an example:

panel = nuke.Panel("Batch Write Options")
panel.addEnumerationPulldown('Compression', 'Zip1')
panel.show()

c = panel.value("Compression")
if c == "Zip1":
c = c.replace('Zip1', 'Zip (16 scanlines)')

write = nuke.createNode('Write', inpanel = False)
write['file_type'].setValue("exr")
write['compression'].setValue(c)


------------------------------------------------------------------------

Mohamed Selim
Nuke Compositor
Cairo, Egypt
www.mselim.com <http://www.mselim.com>


_______________________________________________
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