I skimmed through it -if MPxData isn't a good way to go, isn't it more 
unsafe to have an array of MMatrix plugs being constantly changed?

I'm basing my spline math from this paper: 
http://www.gpstraces.com/sven/main/publications/skel.paper.lowres.pdf
and my skinning method from this one: 
http://www.alecjacobson.com/weblog/?p=2104#comments

I couldn't figure out how to do weights, but for now I want to resolve the 
matter of the number matrices on the spline being changeable by the user. 
There's also the problem of numerical arrays not having index ([]) access 
in Python...

On Tuesday, May 1, 2012 7:33:37 PM UTC-7, @li.@$ad wrote:
>
> I think you should read this document. 
> http://www.angelfire.com/ex2/andreamaiolo/skinningAtILM.pdf
>
>
>
> On Wed, May 2, 2012 at 5:58 AM, notanymike wrote:
>
>> Update: I've progressed somewhat where I can create and access MPxData 
>> information and can store matrices, weights, and influence indices all 
>> under one MPxData class. However storing the information isn't working out 
>> -the pointer keeps getting deleted, including the one stored as an 
>> attribute. Is there any way to preserve MPxData attributes which are arrays?
>>
>>
>> On Monday, April 30, 2012 12:06:45 PM UTC-7, notanymike wrote:
>>>
>>> I'm attempting on writing a deformer similar to a skinCluster, but with 
>>> a spline-style deformation. As the spline is generated procedurally using 
>>> joint matrices for the "edit points", I was wondering if storing those 
>>> spline matrices inside a MPxData plug would improve the speed of the 
>>> deformer node, as there is no MFnMatrixArrayData to store the MMatrixArray 
>>> Into. However I'm not finding any tutorials for using MPxData within 
>>> python. Can anyone show me how to use it in this context?
>>>
>>  -- 
>> view archives: http://groups.google.com/group/python_inside_maya
>> change your subscription settings: 
>> http://groups.google.com/group/python_inside_maya/subscribe
>>
>
>
>
> -- 
> Ali A. Jafri
> www.cgrama.com
>

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to