Jump to content

HDA Parms Referencing: Failed to move to new folder


Ike_0007

Recommended Posts

Greetings and salute first, hello all~

Working with a HDA that creates all geo assets from onCreated event script (Python). It's requested that various parms of the geos be driven/referenced from parmTuples ( parmTuple® rotate® for example) in a new parameter folder.

I've been looking into HDADefinition and hou.ParmTemplateGroup() but I've been hitting the wall for a while now over this and it seems counter-intuitive (seeing as MMB drag parms from geo nodes to new folder in type properties editor parameters tab would be much quicker if assets were just baked to .otl). I'm led to believe I'm attempting more work than is necessary. I can create the folder in the type properties editor manually, it's only the matter of getting the specific child geo parms required into that folder so that they're linked to/driven by the digit asset.

Thanks for assisting, cheers~

--------------

Edit:

A little sleep helps. Here's what I used

template = hou.FloatParmTemplate('geo_name_parm', 'Geo Name Parm', 3, (0,0,0))

instance.addSpareParmTuple(template,('Folder Name',), create_missing_folders=True)

Edited by Ike_0007
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...