How to convert AIUIDRef into string and viceversa? Thanks.
I am able to convert uidref into string
However string to uidref does not look so easy.
Tried str with values str, id(str), id( str ), id(\033 str ) etc. Does not seem to work.
Thanks a lot. I am able to get the uid string from art. What I want is to be able to retrieve art from the uid string.
My current task is to store unique id of an art in string format (may be in an external system, like an xml file) with other user provided parameters. At a later point of time, in a different session, I should be able to retrieve the art handle using the uid string read from the xml file.
One way is probably to iterate through the art, get uid string and compare. But I think there should be a better way.
I took a look, but I don't see anything unfortunately. If there is a way to use the string version of the UID to turn it back into the UID, I don't see it. I assumed there'd be one as well, that sucks!
Found a way!
Not really converting string uid into uid, but i could store uid using string version of uid as key in the dictionary. Then use the string uid to retrieve uid from dictionary.
Not very elegant solution, and also creates duplicate entries, but works.