I have made a very simple script that basically creates a 16:9 PAL safe frame.
I've grouped it and saved the grouped script as palSafe.nk into the normal plugins folder.
What I want to do is add a menu open off the toolbar which will run this script.
I've tried this in menu.py but it doesnt work, can anyone help me out.
nuke.toolbar("Nodes").addCommand("SphereVFX/palSafe", "palSafe.nk('palSafe')", icon="palSafe.png")
When I click on the newly defined palSafe button in Nuke I get this error...
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'palSafe' is not defined
I've attached my menu.py and palSafe.nk in case it helps
Many thanks in advance,