coresign Posted August 19, 2018 Share Posted August 19, 2018 (edited) How to use python to add a tag like this. I try to use asCode() to extract the code but it's doesn't work, it can rebuild all the parameters but except this one。 Edited August 19, 2018 by coresign Quote Link to comment Share on other sites More sharing options...
eistan Posted June 14, 2019 Share Posted June 14, 2019 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 Quote Link to comment Share on other sites More sharing options...
graham Posted June 14, 2019 Share Posted June 14, 2019 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. 1 Quote Link to comment Share on other sites More sharing options...
galagast Posted March 15, 2022 Share Posted March 15, 2022 hello, thank you for this! I can't seem to find a ".get" function, is there a way to get the tags of a parm? found it~ hou.parm("/path/to/parm").parmTemplate().tags() 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.