Saving a subnetwork as HDA?
1057 3 0- polydreams
- Member
- 6 posts
- Joined: Feb. 2017
- Offline
From inside the material library, is it possible to Save a custom Karma material builder or material subnet as a HDA. I created a HDA using karma material builder as a base and inside is just a mtlx setup, then saved it out as a HDA. But it doesn't show up on list anywhere. Is this possible to do, it worked okay in sop and stage context?
- polydreams
- Member
- 6 posts
- Joined: Feb. 2017
- Offline
Well not the best solution but slightly better/more concise than dragging to shelf
As shelf tool - downsides need to have node(s) selected, but okay if something messes up or need to version up
import hou cwd = hou.selectedItems()[0].parent() node = cwd.createNode('User::base_texture_mtl::1.0', 'base_texture_mtl') node.setGenericFlag(hou.nodeFlag.Material, True)
- chongsong
- Member
- 8 posts
- Joined: Oct. 2014
- Offline
In the ‘material libray’ node, there is a parameter called ‘Tab Menu Mask’. It seems to define what kind of nodes can be displayed in the menu. I ended the name of my node with ‘builder’, and it successfully appeared in the menu.
Regarding ‘nodeFlag’, I use Python in ‘OnCreate’ to control it.
This may not be the best solution, but it has indeed solved some problems.
Regarding ‘nodeFlag’, I use Python in ‘OnCreate’ to control it.
This may not be the best solution, but it has indeed solved some problems.
Edited by chongsong - March 11, 2024 06:00:36
- polydreams
- Member
- 6 posts
- Joined: Feb. 2017
- Offline
-
- Quick Links