Jump to content
Sign in to follow this  
Houdini7

Code behind a menu item

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.

Share this post


Link to post
Share on other sites
Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
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?

 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

if you find something out, would also like to know more about that topic :D

But total python beginner here.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×