freaq Posted November 3, 2014 Share Posted November 3, 2014 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. Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted November 4, 2014 Share Posted November 4, 2014 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. Quote Link to comment Share on other sites More sharing options...
freaq Posted November 5, 2014 Author Share Posted November 5, 2014 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. 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.