Great, thanks.

Is MPointArray.append() the best way to build a point array out of a list 
of points (in the python API)?

Still API related, but a totally different question; how do I create an 
nParticle using the API? It's seems like it has to be an easy thing to do, 
but I've only been able to create classic particles using 
MFnParticleSystem.create(). I see that MnParticle has a createNParticle() 
method but that returns MStatus and I don't see anything being created in 
my scene when I call it.

On Thursday, September 27, 2012 2:11:29 PM UTC-7, Chad Vernon wrote:
>
> The fastest would probably be just to get the full point array and loop 
> through and pick out the ones you want.  There's no one function to call to 
> get a subset of points.
>
> On Thu, Sep 27, 2012 at 1:42 PM, Jesse Capper 
> <[email protected]<javascript:>
> > wrote:
>
>> I'm very new to maya's API so this may be an obvious question.
>>
>> Given an MObject of selected components, what is the most efficient way 
>> of getting an MPointArray of their positions? For all points on an object 
>> I'm using MFnMesh.getPoints(MPointArray), but I haven't been able to find a 
>> function that fills an MPointArray from a component set. I was hoping 
>> MFnSingledIndexedComponent would have something :/. Is iterating over the 
>> components with MItMeshVertex the only way?
>>  
>> -- 
>> view archives: http://groups.google.com/group/python_inside_maya
>> change your subscription settings: 
>> http://groups.google.com/group/python_inside_maya/subscribe
>>
>
>

-- 
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