Not that I know of.
These are the valid menus to which you can add your own commands (from the
nuke.menu help):
menu(...)
menu(name) -> Menu
Find and return the Menu object with the given name. Current valid menus
are:
'Nuke' the application menu
'Pane' the UI Panes & Panels menu
'Nodes' the Nodes toolbar (and Nodegraph right mouse menu)
'Properties' the Properties panel right mouse menu
'Animation' the knob Animation menu and Curve Editor right mouse menu
'Viewer' the Viewer right mouse menu
'Node Graph' the Node Graph right mouse menu
'Axis' functions which appear in menus on all Axis_Knobs.
Would you be willing to share your python for your "clears all but the
> one at the top of the bin"?
>
Of course. It's just a cheap hack that sets the max number of open panels in
the properties bin to 1, and resets back to where it was
def cleanPropertiesPanel():
''' Quick workaround to close all control panels except the last
one'''
maxPanels = nuke.toNode('preferences')['maxPanels']
curValue = maxPanels.value()
maxPanels.setValue(1)
maxPanels.setValue(curValue)
On Fri, Aug 26, 2011 at 1:03 PM, Dan Rosen <[email protected]> wrote:
> Hi Ivan,
>
> That's pretty cool. It adds something to each individual Properties
> pane. Is there a way to add it to the overall Pane right-click?
>
> Would you be willing to share your python for your "clears all but the
> one at the top of the bin"?
>
> Thanks,
> Dan
>
> On Wed, Aug 24, 2011 at 5:57 PM, Ivan Busquets <[email protected]>
> wrote:
> > You can add a menu item for the right-click on the Properties pane.
> >
> > nuke.menu('Properties').addCommand("test", "test()")
> >
> > // Where test() is the function you're using to clear the properties
> >
> > I've got a similar script (clears all but the one at the top of the bin),
> > and find it handy to give it a keyboard shortcut instead.
> > That way I can just double click on a node in the DAG, hit Ctrl+Space,
> and I
> > get the properties for that node alone without having to move over to the
> > properties bin.
> >
> > Cheers,
> > Ivan
> >
> > On Wed, Aug 24, 2011 at 3:57 PM, Dan Rosen <[email protected]>
> wrote:
> >>
> >> Hi,
> >>
> >> Is there a way to add a button or even a right-click to the Properties
> >> bin? I have a habit of having lots of individual node properties
> >> panels open in the Properties bin at the same time and have a python
> >> function to close them all, except the selected node's properties. I
> >> tend to do this when I need to clear out everything and just have
> >> those controls for Roto, Transform, whatever.
> >>
> >> Thanks,
> >> Dan
> >> _______________________________________________
> >> 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
> >
> >
> _______________________________________________
> 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