MPxNode::setInternalValue -> element attribute update

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Display Modes
  4 Weeks Ago
MPxNode::setInternalValue -> element attribute update

I have an array attribute ('MFnAttritute::setArray(true)', which is set to be internal ('MFnAttribute::setInternal(true)').
When I now change the value of one element, inside the 'MPxNode::setInternalValue', I get the old value of that element,
even though the channelBox shows the new value and also asking Maya with 'getAttr( "myNode.myElemAttr" )' gives me the
new value. I have to set the value twice so that inside the 'MPxNode::serInternalValue' I get the correct updated value.

So, what am I doing wrong?
Thanks for help!
 
  4 Weeks Ago
There´s one more problem with getting the right values from my array plugs, which were set to be 'internal'..
I can save the data for the elements with a normal Maya save file.
When I have a look at the '.ma' file the data are there.
But when I load the scene, the data are ignored and the array plugs have no elements.

So, either thats a horrific bug or I have ignored some fundamental code additions/changes.
Anyone?
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:52 PM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.