Jump to content

Set Asset Definition in Python


Stalkerx777

Recommended Posts

Hi guys. I have multiple asset definitions in my .hip, like "sop_myAsset_v_1.0.0","sop_myAsset_v_1.0.1", "sop_myAsset_v_1.0.2" etc. ,and they all in different .otl files

I can use "Use this Definition" from Operator Type Manager and this works fine, i can quickly switch between versions. But i can't find any Python control on that. I looked all modules, related to HDA, but didn't find anything. Can you help me find those methods? Thx.

Alex.

Link to comment
Share on other sites

you are probably looking for

hou.HDADefinition.setIsPreferred() to set which library is prefered and therefore used

i am not sure if you need to unprefer currently preferred library if you prefer another

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