Jump to content

How to set Tags parameter using python


coresign

Recommended Posts

  • 9 months later...

i have the same question, i found a way but it still not showing in the tags parameters and exact texture in viewport

here is the screenshot, you can see i checked everything and it works ok, no errors, but still not showing anything 

upd: ive been told this is because of parmTemplate i need to setup it and put it back to parameter, somehow, trying to find how

image.thumb.png.742e68813a4748f486882eee617b4781.png

Link to comment
Share on other sites

So in this case you actually just want to set the parameter:

hou.parm("/path/to/parm").set({"ogl_text": "1"})

This is because you're just trying to modify an actual parameter, not the definition.

You would use the hou.ParmTemplate.setTags() method if you were trying to set/update the tags of a parameter definition but since the Parameter node isn't an actual parameter you just need to set the values.  Your quick update is correct in that if you were doing it this way, you'd have to take your modified parameter template and assign it back to the definition or node for it to take hold.

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

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