Hello
I'd like to create a Component Builder network from python. I can create individual lop nodes fine with lopnet.createNode("nodeType") but I want the four node network that you get by tabbing in "Component Builder"
cheers for any pointers
tom
create a solaris Lops Component Builder network from python?
206 1 0- tomwod
- Member
- 1 posts
- Joined: Oct. 2015
- Offline
- erikcarlson
- Member
- 25 posts
- Joined: Dec. 2015
- Offline
You can see the Python code snippet used to create those nodes by creating them through the tab menu, then right clicking on the componentoutput node and choosing Type Properties... Switch the tabs to Interactive > Shelf Tools, click on componentsetup, switch to the Script tab and you'll see the Python code.
You can also access this code with a code snippet like this:
You can then get the Python code string with tool.script(), but as for how to run it from there, I'm not completely sure.
You can also access this code with a code snippet like this:
node_type = hou.nodeType(hou.lopNodeTypeCategory(), 'componentoutput') tool = node_type.definition().tools()['componentsetup']
You can then get the Python code string with tool.script(), but as for how to run it from there, I'm not completely sure.
-
- Quick Links