Get Temp Node IDs From Last Operation
Hello guys,
I have some points in my model that will be used to create connectors. In order to handle them in a proper manner, I need to transform them into nodes and them get the node IDs to create a node set.
To create the nodes from the points I'm using this function: *nodecreateatpointmark 1
However this is one of the undocumented functions, thus I don't know if it has other options to use, because using as I showed does not return me the node IDs.
I also tried to use hm_latestentityid but this one gives me only one node at a time and has a limitation to retrieve only the last 99 nodes and I might need more than that in most of the cases.
Does anybody know a solution for this?
Thanks in advance,
Jefferson Vieira
Answers
-
SOLVED IT
From this topic I could see that the usage of hm_entityrecord can help me on this case.
For documentation purposes, here follows the usage:
hm_entityrecorder nodes on; <create components> hm_entityrecorder nodes off set num_nodes [hm_entityrecorder nodes count] set nodes_ids [hm_entityrecorder nodes ids]
0