Houdini7 Posted May 24, 2020 Share Posted May 24, 2020 Hello, I want to build an UI plugin for houdini. Can you help me with some things: how do I change a parameter of the selected node in the parameter window programatically (for example parameter distance of the extrude node)? There must be a setter function which gets the specific path to the parameter and sets the parameter I guess?! get the parameter edit box under the position of the mouse (if one navigates to an edit box) or the unique path of the parameter under the mouse? set a global mouse hook (global in the sense that it gets all events of the houdini main UI)? Would be cool if someone could name some python objects which will help me. Preferable python+pyside. Thanks! Quote Link to comment Share on other sites More sharing options...
Houdini7 Posted May 30, 2020 Author Share Posted May 30, 2020 Can no one help? Any hints? Thank you. Quote Link to comment Share on other sites More sharing options...
sant0s81 Posted May 31, 2020 Share Posted May 31, 2020 On 24.5.2020 at 2:38 PM, Houdini7 said: how do I change a parameter of the selected node in the parameter window programatically (for example parameter distance of the extrude node)? There must be a setter function which gets the specific path to the parameter and sets the parameter I guess?! I dont know what you mean with programatically - but do you mean, how you can talk with python to the distance parameter in Extrude SOP? You mean something like this? def extrude_dist(dist): set_dist = hou.parm('/obj/Create_Project/polyextrude1/dist').set(dist) return(set_dist) distance = 7 extrude_dist(distance) Quote Link to comment Share on other sites More sharing options...
Houdini7 Posted June 4, 2020 Author Share Posted June 4, 2020 There exist two Expression functions mousepane and mousepath. How can these be used within python? The functionality should be covered in hou.PathBasedPaneTab. But I cannot find any corresponding function. My goal is to get the parameter (in parameter editor) under the mouse pointer. 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.