Skip navigation
Currently Being Moderated

aiuidref into string

Mar 31, 2013 6:35 PM

How to convert AIUIDRef into string and viceversa? Thanks.

 

edit:

 

I am able to convert uidref into string

sAIEntry->AsString(entryref, &ch);

 

However string to uidref does not look so easy.

 

 

                AIUIDREFRef uidrefref;

                AIUIDRef uidref;

                AIEntryRef eref;

                eref=sAIEntry->FromString(str);

                sAIEntry->AsUIDREF(eref, &uidrefref);

                sAIUIDREF->GetUID(uidrefref, &uidref);

 

Tried str with values str, id(str), id( str ), id(\033 str ) etc. Does not seem to work.

 
Replies
  • Currently Being Moderated
    Apr 1, 2013 7:18 AM   in reply to Raghav KR

    Have you tried AIUIDUtilsSuite::GetArtUIDName()? That just takes an art handle and fills in an ai::UnicodeString. That might be what you want. There's a SetArtUIDName() to go with it.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 1, 2013 11:20 AM   in reply to Raghav KR

    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!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points