Hi.
I am new in maya api and i make decision to use it by python.
now i want to create a new deformer node.
but, i have a problem to query components weight values by weightValue function, this always return 1 for all iters.
can anybody help me.
this is deform definision in my code:
def deform(self, block, iter, mat, geomIndex):
envelope = opx.cvar.MPxDeformerNode_envelope;
envData = block.inputValue(envelope);
env = envData.asFloat();
if env == 0:
return op.MStatus.kSuccess;
startDistHnd = block.inputValue(self.startDist);
startDist = startDistHnd.asFloat();
endDistHnd = block.inputValue(self.endDist);
endDist = endDistHnd.asFloat();
while (iter.isDone() == 0):
weight = self.weightValue(block, geomIndex, iter.index());
...
...
...
...