what maya is saying you is that both attributeAffects associations
failed. while this compiled
fine, it's not behaving like code tells node to.
try setting dirty flag manually, see MPxNode:: setDependentsDirty
documentation for details.
On 2010.02.02 17:35, Ling wrote:
Hi guys:
sorry for post this again, but I desparately needing for help.
my problem is I created three attribute in my custom locator node,
a MString attribute, a MMatrixAttribute,
and they are affecting a float attribute.
basically like this:
CHECK_MSTATUS( attributeAffects( MStringAttr, floatAttr ) );
CHECK_MSTATUS( attributeAffects( MMatrixAttr, floatAttr ) );
the node compiles fine, but when changing the Matrix and String
attribute,
the float attribute doesnt response, which means the node won't
re-"compute"..
also i got some error message like:
attributeAffects( MString, floatAttr )
(kInvalidParameter): Object is incompatible with this method
attributeAffects( MMatrixAttr, floatAttr )
(kInvalidParameter): Object is incompatible with this method
and if I set only the MString attribute affecting the float attribute,
the error becomes:
attributeAffects( MString, floatAttr )
(kInvalidParameter): Object is incompatible with this method
Really appreciate your helps
-ling
--
Viktoras
http://www.neglostyti.com
--
http://groups.google.com/group/python_inside_maya