In the docs about adding menu items it mentions both:

m.addCommand("Filters/Blur", "nuke.createNode(\"Blur\")" )
or its alternative:
m.addCommand("Filters/Blur", lambda: nuke.createNode("Blur") )


I'm not clear what is the functionality here, why not:
m.addCommand("Filters/Blur", nuke.createNode("Blur"))

I can't find any references on this list or in the docs to what exactly
those backslashes or "lambda:" actually do.

Thanks,
Matt
_______________________________________________
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