menu organization


(Mikhail) #1

Good morning!
I have a quastion about top line menu in Natron

I use code, like this for add menu members

natron.addMenuCommand(“File/Save New Comp Vertion”, cmd, Qt.Key.Key_S, Qt.KeyboardModifier.ShiftModifier|Qt.KeyboardModifier.AltModifier)

In side Nuke I have Object - Menu - and can parsing it or reorganaize

But here menu looks like global variable and I don’t understand how access to it

In previous code I try to add my field in side File part of menu

  • but I can add it only in the end ((

How can I fixed it?
(it is very usefull then new vertion add only if in the name we have marker “v003” for example )

Thank you!