Unique ID
pciccone
Posts: 661
Hi.
Is there a way of getting a unique ID for a node? I tried getAssetId() but it returns the same string used for getName(), then applied to a DzSkeleton.
I would like to get a unique identifier for each object/figure so that there is a way of identifying a figure in case multiple copies are in the scene.
Thanks in advance.
Comments
If you are only concerned with a given session, you can use the pointer value. If you are concerned with surviving a session, you can hang a DzSimpleElementData that contains a GUID on the node and use that.
-Rob
OK, that was my direction too. So, I guess that there is no unique ID assigned to the object until it's persisted in the DUF file, isn' it?
Thanks.