Jump to content

taht copy the UI of an otl onto parent


freaq

Recommended Posts

I have a tool that contains a set of otls,
they need to be controlled from the top level, therefore I need to take all the visible controls from the otls below, and aggregate them into controls on this tool.
putting each otl into a tab/folder the reason being that the tools below the toplevel will be very much in flux. 

 

it's very easy to drag a tool into a subnet copying all controls and hooking them up, but I cannot find a python/hscript equivalent...
has anyone made such a system? or could anyone give me some pointers?

 

Greets Freek.

 

Link to comment
Share on other sites

You can create folder type parm for each of your child assets and use "import settings option" in your main hda to get all parms.

Not sure there is a "right" scriptable way of doing this. But you can loop through all child assets, getting their parmTemplateGroups and assemble them in main asset ui. Then you need to make references between parms in another loop.

Link to comment
Share on other sites

there is apparantly an import block function,
which means you make a tab and put thhe source in like this: op:box1 
then rightmouse the tab in the parameter window and it will refresh them all,

unfortunately there is no HOM hook to refresh those imports at the moment (that I could find)
there seems to be some python code to do similar things:

someting I got from tamte:

hou.FolderParmTemplate.setFolderType( hou.folderType.ImportBlock ) 
hou.FolderParmTemplate.setTags( {'import_mask': '', 'import_enable': '1', 'import_source': 'op:paint_rockyness ', 'import_token': ''} ) 

might be of use to anyone else trying to do similar work.

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