Hi.
I have an HDA that is supposed to export stuff on disk using a button with a callback to the pythonmodule.
I need the button so the export is not automatic when instanciating the node, and I need to visually check the result before I decide to export. Much like a ROP node.
Therefore, the exporting part of the graph (a python node) is not connected to the Output and is instead a separate part of the graph that the PythonModule forces to cook like in the screenshot. It works thanks to marking the DIRTY and COOK nodes as editable in the HDA.
Now, this works well and all, and I've been doing that on many HDAs as a means to an end.
But now I have to put these HDAs inside another "Main" HDA that also has an "export" button to trigger multiple smaller exporters, and suddenly nothing works; telling me I have a something like a permission error for modifying nodes that are not editable. But they are. So it looks like this "editable" flag is not recursive or something ? What am I missing ? Do you know other ways ?
Creating a custom export HDA
1602 1 0-
- gargam
- Member
- 12 posts
- Joined: 3月 2019
- オフライン
-
- Fenolis
- Member
- 152 posts
- Joined: 8月 2012
- オフライン
gargam
exporting part of the graph (a python node) is not connected to the Output
At this point it may be better to have the export function inside the PythonModule and have it be called by a Button's callback function. i.e.
hou.pwd().hm().export()
Using the dirty/cook flags feels like an extremely hacky workaround.
-
- Quick Links

