URGENT: where i can find IDs for objects in my scene so to reference to them and use them in javascript?


#1

Hi, where i can find IDs for objects in my scene so to reference to them and use them in javascript?
In the past the ID and copy ID feature were available from the contextual menu for each item. Now this seems disappeared.
What can i do in order to reference from javascript/typescript ?

thanks,


#2

Hi @mariochiesa,

you can reference them by name:
Scene.getItem(“Bicycle man1”)
Do not forget to use unique names


#3

Hi @Nikolay, many thanks for your reply!


#4

It would be great if unique naming could be enforced, or alternatively re-display the ID. I know you’re aiming for simplicity, but at the same time, there needs to be enough room for extension.

Geoff @ TechLeap