hey friends,
I have a design question about creating maya deformer, Iam creating a
deformer node which is computing a result based on
given Matrix array (for each component one mat). Anyhow my question is ..

How can i store (or Set) a multi matrix inside a node i have created
*MFnMatrixAttribute
*and also *setArray *is True, but where i stumble
is i'm not able to set data on node (or u can say i dont know where to put
the code to set data.)

I have to use something like sample code:

inputArrayHandle = dataBlock.inputArrayValue(self.spaceMatrix)  # maybe use
outputArrayValue ????

#and then Create a builder to aid in the array construction efficiently.
matOutArray = inputArrayHandle.builder( )
for i in range (pointArray.length()):
    matDataHandle = matOutArray.addElement( i ).asMatrix ()
out.setMMatrix( matDataHandle )

i tried using function "*accessoryNodeSetup*" to compute matrix array (as i
need to calculate just once, hence i am not palcing it inside deform func
and
how to excess nodeDataBlock outside function deform??? )
can some body guide me how to set data on deformer while creating deformer
(Node).
I also think i might have to create another command just to store data over
node( but i'm just guessing it)
and another way might be to use *MFnMatrixAttribute:: setDefault* But how to
set multi..

as this is my first attempt at creating deformer so i'm messing up things..

many thanks

sunnyC.

-- 
myCG
http://underearth.wordpress.com

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to