Can't add layers on a custom LOP_Subnet node.

   766   0   1
User Avatar
Member
3 posts
Joined: April 2020
Offline
Hello,
I've implemented a LOP_Subnet node in C++, but when adding other nodes (child) inside the network, they will not affect the number of layers, and the layer count would still remain 0 (2 Attached images showing layer count = 0 and the network inside custom LOP_Subnet).
If I have the same network inside a Subnetwork LOP (Houdini's Utility node), the layer's number would update correctly according to the child nodes inside the Subnetwork, so I am definitely missing something in my implementation.
I believe this has to do with LOP_Node::cookMyLop(OP_Context &) function implementation, but I am not sure what a proper implementation of it would fix what I am looking for, and the documentation for this does not help a lot for this problem. How can I make my custom LOP_Subnet to add the proper layers when adding child nodes in it's network?

Thank you!


Edited by Ogers - March 25, 2023 14:29:23

Attachments:
Screenshot 2023-03-25 175150.png (83.0 KB)
Screenshot 2023-03-25 175019.png (75.5 KB)

  • Quick Links