Hi Pierre -- Yeah, they can. The menu items just execute a python command
that creates the node, doesn't matter what kind of node -- Nuke SDK, OFX,
gizmo nodes all work the same.
Put the following in your ~/.nuke/menu.py and start Nuke up.
toolbar = nuke.menu("Nodes")
m = toolbar.addMenu("MyNodes", "2D.png")
m.addCommand("Align", "nuke.createNode(\"F_Align\")", icon="CornerPin.png")
You'll see an extra menu item at the bottom of the toolbar with an "Align"
item in it, which creates the built-in F_Align node (which is still coming
from the included OFX furnace bundle as far as I know).
The string to put in the nuke.createNode() call is the name that you see in
the DAG's tab menu to create the node.
If you or the customer wants to get into it more than that, it's documented
in the Python Developer Guide:
http://docs.thefoundry.co.uk/nuke/90/pythondevguide/custom_ui.html
And for reference you can find all the built-in ones in the application
install at plugins/nukescripts/toolbars.py
On Tue, Jun 16, 2015 at 3:53 AM, Pierre Jasmin <[email protected]>
wrote:
>
> Question
>
> A company with in-house developers is asking us if our OFX plugins can
> play with menu.py
>
> OFX plugins are currently packaged like this:
>
> http://openeffects.org/documentation/reference/ch02s02.html
>
> They would like to customize the location/name/icon of the menu items
>
> Presumably some include can be manually added with a path to plugin in
> mneu.py ???
> I know nothing about that, anyone can explain?
>
> Pierre
> _______________________________________________
> Nuke-dev mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
>
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev