makah21803 Posted July 24, 2020 Share Posted July 24, 2020 Hi, I have an HDA (sop) that contains a different HDA (rop). The problem I have is that I need both of them to run a OnCreated event, but it seems to run only when user creates the node, not when it gets created as a part of a different hda (both have the OnCreated working, when I just create them separatelly). Does anyone have a solution for this? Thanks Martin Running: Houdini 17.5, Linux Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted July 24, 2020 Share Posted July 24, 2020 (edited) Hmm, this sounds like a bug, I see no reason for the embeeded node not executing its OnCreated event. Maybe submit a bug report. As a workaround, in your top level HDA OnCreated you can manually call OnCreated event for the embedded node. (eval() the source code of OnCreated) Edited July 24, 2020 by Stalkerx777 typo Quote Link to comment Share on other sites More sharing options...
makah21803 Posted July 24, 2020 Author Share Posted July 24, 2020 Im not sure its a bug, since its in H18 too, but Ill try to report it. As for the workaround: I know I can manually call it from the parent HDA, the problem is that the HDA inside is used in several different hdas and this workaround would mean calling it from every parent hda separately. I need a solution independent on what code is on the parent hda Quote Link to comment Share on other sites More sharing options...
makah21803 Posted July 24, 2020 Author Share Posted July 24, 2020 Response from SideFX: This currently isn't supported. Lets hope it will get added in the future Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.