Copying a node and transferring its state to the copy

   534   1   1
User Avatar
Member
6 posts
Joined: Sept. 2010
Offline
Hi!
I created my node using HDK, which processes data from an external file and builds geometry from it. I encountered a problem: when I copy my node, which already has geometry and the parameters are in some state, everything is reset on the copy. I can't find a way to transfer the state of the original node to the copy. Help hint, where to look about it, maybe there is an example of realization, how to do it correctly. I will be grateful in advance.
At the moment I tried to realize the mechanism of data transfer from the source node to the copy through the methods save() and load().
But, apparently, I do it wrong ((
Edited by H-mech - March 20, 2025 09:44:29
User Avatar
Member
6 posts
Joined: Sept. 2010
Offline
Anyway, I got a little dumb and tried to transfer the data incorrectly. I found an example, analyzed it, and it worked
Here's a link if anyone needs one of these

https://www.sidefx.com/docs/hdk/_s_o_p_2_s_o_p__blind_data_8_c-example.html [www.sidefx.com]
  • Quick Links