Jump to content
Sign in to follow this  
Jeffersondhv

Get Temp Node IDs From Last Operation

Recommended Posts

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

Share this post


Link to post
Share on other sites

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]

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...