Hi, I can’t get my head around this, has anyone experienced the same?
Let’s say you save a scene with Camila as the Avatar, then run this to test in your plugin:
objs = RLPy.RScene.FindObjects(RLPy.EObjectType_Avatar)
for obj in objs:
the_avatar_ID = obj.GetID()
the_avatar_name = obj.GetName()
print(‘ID is’, the_avatar_ID, ‘name is:’, the_avatar_name )
This works fine it appears but when you reload the project that you’ve saved, the GetID() function returns a completely different ID every time the project is loaded.
Maybe this is just how it works but I’d like to know how to get a consistent identifier for scene objects.
I’m probably just doing something wrong?