Page 1 of 1

Handle Index Increment procedure

Posted: 16 May 2022, 04:13
by zhy149
Hello, I don't have a bug now but I'm curious about the following phenomenon: I currently use a sim.copyobject and sim.removeObject to copy and remove some objects, I run the scene again and again but it seems the newly copied objects handle number are starting from the end of last time run, is this normal? Thank you!

Re: Handle Index Increment procedure

Posted: 17 May 2022, 07:10
by coppelia
Hello,

yes, that is normal. Object handles can be just any integer, and are not necessarily the same from one scene load to the other. And in order to avoid confusion, scene object handles are not reused, unless all remaining handles have already been used already.

Cheers