Digital Art Zone

 
     
Extend right-click context menus for custom nodes?
Posted: 03 December 2012 11:08 AM   [ Ignore ]
Member
Rank
Total Posts:  53
Joined  2010-09-22

Is there any way to add right-click context menu options for custom DzNode-derived objects?  I’m interesting in adding menu options to the context menus that come up when right-clicking an object in the viewport as well as in the scene tab.

Thanks

Ivan

Profile
 
 
Posted: 03 December 2012 11:29 AM   [ Ignore ]   [ # 1 ]
Member
Rank
Total Posts:  53
Joined  2010-09-22

On further reading it looks like this can be done by creating my own DzViewTool.  However, is there any way to add context menu items to the existing ViewTools, like the translate/rotate/universal manipulator tools?   

Thanks

Profile
 
 
Posted: 03 December 2012 08:00 PM   [ Ignore ]   [ # 2 ]
Member
Rank
Total Posts:  95
Joined  2010-12-31
shoei321 - 03 December 2012 11:29 AM

On further reading it looks like this can be done by creating my own DzViewTool.  However, is there any way to add context menu items to the existing ViewTools, like the translate/rotate/universal manipulator tools?   

Thanks

You should be able to connect to the signal on Dz3DViewport named contextMenuAboutToShow

Profile