Jump to content

Get Parameter being manipulated in Python


J_rom

Recommended Posts

Hi all,

I'm writing a little python script to change some geometry values and it's working only if I declare the parameter name.

hou.node("../subnet1/").parm("L_ear_shape01")

But since I've about 20 custom parameters (could be more), to be passed to a function,  the current parameter should be returned as soon as I change it's value, either by sliding the slider or roll the mouse button over it's text field.

If there is anything like this it would be great:

hou.node("../subnet1/").parm( #CURRENTLY_MANIPULATED_PARAMETER# )

 

I tried the following code at the very top of the script, but it returned None once.

hou.evaluatingParm

 

Is there away to get which parameter is being manipulated?

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...