Handle Index Increment procedure

Typically: "How do I... ", "How can I... " questions
Post Reply
zhy149
Posts: 132
Joined: 14 Apr 2021, 20:18

Handle Index Increment procedure

Post 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!

coppelia
Site Admin
Posts: 10336
Joined: 14 Dec 2012, 00:25

Re: Handle Index Increment procedure

Post 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

Post Reply