Unique ID

pcicconepciccone Posts: 661
edited December 1969 in Daz SDK Developer Discussion

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

  • rbtwhizrbtwhiz Posts: 2,250
    edited December 1969

    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

  • pcicconepciccone Posts: 661
    edited December 1969

    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.

Sign In or Register to comment.