Search the Community
Showing results for tags 'radial menu'.
-
Hi there, I`m looking for a way to add the "jump back" and "jump forward" (Alt+Arrow) functionality to the network editors radial menu. After having found the nodegraphview module in the python2.7-folder I`m still have no clue on how to use it in the desired way. In general: Is there a way to get to the scripts the default UI buttons are using? Any help is much appreciated, many thanks in advance. Cheers, Hannes.
-
Hello guys, I'm sorry for the little teasing title, but haven't found a solution so far, after reading docs and searching through forums. So here my questions: 1) In case of a viewport layout split in 2 (or more), I would like to know on which of the 2 viewports the radial menu is over. If the radial menu is aware of which viewport is underneath, it could set specific settings or object isolations for that particular viewport (like the viewport isolator node). I'm using the following code in my radial menu script, but it is always returning the first viewport, even when the radial menu is over the second viewport. import toolutils activepane = toolutils.activePane(kwargs) print activepane.curViewport() 2) Given a double display setup, with two Scene View panels (one on each display), I would like to know on which sceneviewer() the mouse cursor is over, and most importantly what are the (x,y) mouse coordinates relative to the viewport of that sceneviewer. Do you know if this is possible at all? I guess I could do something with the Mouse CHOP node and mapFromMouseChop() function, but Mouse Chop seems to be registering only the position of the mouse in the main Display. Is it not aware of the second display? 3) Bonus question: do you know how to refresh the 'radial menu' menu, so that newly installed radial menu files are loaded without need to restart Hou? Ideally I would like to embed a radial menu file in the 'extra file' section of my Digital Asset. OnCreated(), the asset would then save the radial menu file in the user preferences directory, and I would like the user to be able to use the new radial menu right away, without restart. Thanks for any help!