Houdini7 Posted May 30, 2020 Share Posted May 30, 2020 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. Quote Link to comment Share on other sites More sharing options...
sant0s81 Posted May 30, 2020 Share Posted May 30, 2020 (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 May 30, 2020 by sant0s81 Quote Link to comment Share on other sites More sharing options...
Houdini7 Posted May 31, 2020 Author Share Posted May 31, 2020 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. Quote Link to comment Share on other sites More sharing options...
sant0s81 Posted May 31, 2020 Share Posted May 31, 2020 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? Quote Link to comment Share on other sites More sharing options...
Houdini7 Posted June 1, 2020 Author Share Posted June 1, 2020 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. Quote Link to comment Share on other sites More sharing options...
sant0s81 Posted June 2, 2020 Share Posted June 2, 2020 (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 June 2, 2020 by sant0s81 Quote Link to comment Share on other sites More sharing options...
Houdini7 Posted June 4, 2020 Author Share Posted June 4, 2020 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. 1 Quote Link to comment Share on other sites More sharing options...
sant0s81 Posted June 4, 2020 Share Posted June 4, 2020 if you find something out, would also like to know more about that topic But total python beginner here. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.