Jump to content

Code behind a menu item


Houdini7

Recommended Posts

Hi,

 

in many 3d apps, there is an execution log which displays the commands which are executed when for example a menu item is executed. Seems that houdini does not have this (which is a big oversight by the way). Are there any other ways to know the code which is executed when a specific menu item in houdini is clicked? For example when I right click on a gizmo and select pivot mode. what python code is the equivalent of this? Thanks.

Link to comment
Share on other sites

from here, quoted from crydalch:

Quote

[/li][li]In the Performance Monitor, click Start, then click View > Event Log; make sure you toggle on Enable Output in the lower right of the Performance Monitor window.

Thats to see the events or something... I think.

In the shelf you can right click and "edit tool" - than under script you sometimes see code :)

edit: ohh... and I just found out, you can click and drag a node into a shelf, you also get lots of infos by right clicking on it.
maybe there you find some infos.

Edited by sant0s81
Link to comment
Share on other sites

17 hours ago, sant0s81 said:

from here, quoted from crydalch:

Thats to see the events or something... I think.

In the shelf you can right click and "edit tool" - than under script you sometimes see code :)

edit: ohh... and I just found out, you can click and drag a node into a shelf, you also get lots of infos by right clicking on it.
maybe there you find some infos.

Thank you. Unfortunately they log only performance things, and not the executed code. This with the shell and code of the tools I know already, but this does not help with a menu. Perhaps there is somewhere python code in the installation folder which belongs to the menu items? Did not find anything sadly.

Link to comment
Share on other sites

36 minutes ago, Houdini7 said:

Thank you. Unfortunately they log only performance things, and not the executed code. This with the shell and code of the tools I know already, but this does not help with a menu. Perhaps there is somewhere python code in the installation folder which belongs to the menu items? Did not find anything sadly.

What kinda menu items do you mean?

 

Link to comment
Share on other sites

On 5/31/2020 at 5:47 PM, sant0s81 said:

What kinda menu items do you mean?

 

For example if you click on a gizmo and rightclick. Then there is a menu item "pivot mode". The goal is to get the code for this, because i want to switch to the pivot mode within a python script. Would be easy if the execution would be logged.

Link to comment
Share on other sites

check out that link.

http://mattebb.com/weblog/adding-parameters-to-vex-wrangle-nodes/

Its not the 'pivot mode' menu, but its right-cklick menu and python.

Maybe there you find something that helps.

Under .../Documents/Houdini.x you find more of these *.*pref files.

ui.pref:

# Global UI controls

# Sizes may be Small, Compact, Normal, Large, or Extra Large.
colors.scheme := "Houdini Dark";
general.filechooserstyle.menu := "Houdini Chooser Only";
general.ui.icon_size := "Normal";
general.ui.scale := 1;
general.uiplaybar.menu := 0;
ui.bright.val := 1;
ui.contrast.val := 1;
ui.gamma.val := 1;
ui.saturation.val := 1;

 

Edited by sant0s81
Link to comment
Share on other sites

On 6/2/2020 at 12:50 PM, sant0s81 said:

check out that link.

http://mattebb.com/weblog/adding-parameters-to-vex-wrangle-nodes/

Its not the 'pivot mode' menu, but its right-cklick menu and python.

Maybe there you find something that helps.

Under .../Documents/Houdini.x you find more of these *.*pref files.

ui.pref:


# Global UI controls

# Sizes may be Small, Compact, Normal, Large, or Extra Large.
colors.scheme := "Houdini Dark";
general.filechooserstyle.menu := "Houdini Chooser Only";
general.ui.icon_size := "Normal";
general.ui.scale := 1;
general.uiplaybar.menu := 0;
ui.bright.val := 1;
ui.contrast.val := 1;
ui.gamma.val := 1;
ui.saturation.val := 1;

 

Thanks, will use this.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...