Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Getting Attribute values from MFnNumericAttribute?

Getting Attribute values from MFnNumericAttribute?

Anonymous
Not applicable
273 Views
1 Reply
Message 1 of 2

Getting Attribute values from MFnNumericAttribute?

Anonymous
Not applicable
I am walking through a list of connected nodes, from selected object to assigned CGFX shader and want to get to the stored values of the attributes inside the shader. I can get the attribute list but can't their values. Anyone know how?

I've been looking at trying to access the attribute values through MAttributeSpec as well. Still no luck.
0 Likes
274 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Never mind... I figured it out.

I realized that the MFn...Attribute classes were meant more for assigning and creating attributes than for querying them. After a little research I found that I wanted to use the MPlug class, and now it works great.
0 Likes