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