Dmitry,
Thank you for the link it's awesome!
Getting a list of vertices on a mesh is easy.

Here's a script which will:
Create a basic sphere 
Get the number of verts
Loop through them all and get their worldSpace translations

Please post anything interesting you are working on, and feel free to ask
questions.

Good Luck.


import maya.cmds as mc
mySphere = mc.polySphere()
vertices = mc.polyEvaluate(mySphere, vertex=1)
for vertex in range(vertices):
    vertWorldSpace = mc.xform('%s.vtx[%s]'%(mySphere[0],vertex), q=1,
translation=1,worldSpace=1)
    print vertWorldSpace






-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dimitry
Sent: Friday, April 30, 2010 9:36 AM
To: python_inside_maya
Subject: [Maya-Python] Particle Systems

Dear All,

I am interested in particle systems and want to apply it on the
geometry.
I found a good example(as library) for processing here
http://www.cs.princeton.edu/~traer/physics/

A good start would be to make some similar simple example to
understand
how I can use maya for generating such stuff
http://www.cs.princeton.edu/~traer/physics/cloth/index.html

By the way how I can get the list/count of the all vertexes in one
mesh object?

Thank you in advise!

Best
Dimitry

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

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

Reply via email to