View Full Version : Maya API: Getting attribute's value

02 February 2005, 03:23 PM

Maybe this question is a noob one, but i'm stuck.
I have a "MFnTypedAttribute attr" which I believe is the one i'm looking for, but impossible to extract the data it should contain (which should be string)

If I do : attr.attrType(), the result if MFnData::kString.
But here, i can't do more : when I try to make : MFnStringData data(attr.object()) I have an error saying that attr doesn't support the MFnStringData function set ...

so, starting from a MFnTypedAttribute, is there a way to get my value ?? Or should I do something else completely different ?

Thx for any help, i'm really desperate T__T

.:: Paic Citron ::.

CGTalk Moderation
02 February 2006, 04:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.