Nodes not being laid out in OnCreate callback

   752   0   0
User Avatar
Member
134 posts
Joined: Sept. 2021
Offline
Hi!



I have this HDA that creates a couple of nodes below it so that they all work together.

from pipe.shared.helper.utilities.houdini_utils import HoudiniNodeUtils
myself = kwargs["node"]

apply_rotations_node = myself.createOutputNode(HoudiniNodeUtils.get_node_definition_name('money_apply_rotations'))
add_thickness_node = apply_rotations_node.createOutputNode(HoudiniNodeUtils.get_node_definition_name('money_add_thickness'))
nodes_to_layout = [myself, apply_rotations_node, add_thickness_node]

myself.parent().layoutChildren(items = nodes_to_layout)

When I create the node, it properly creates all the nodes I expect, but it doesn't lay them out together. In fact, the effect is the same if I comment out the last line.




Any ideas why this might be? How can I get them to stick together, kind of like how the timeblend node stays in the right place when a spark trail node is dropped down?

Thanks!
Anson

Attachments:
2023-09-16_14-44.png (74.2 KB)
Screenshot from 2023-09-16 14-47-37.png (70.9 KB)

  • Quick Links