nParticles and RIS test from Claudio Tassone on Vimeo.
Learning how to use Soup nodes in Maya.
Thanks to http://www.tokeru.com
I am following vfxlearning.com Luis Pages tutorials.
Maya particles test 01 from Claudio Tassone on Vimeo. Given one or more polygons, it creates and snaps locators on each vertex, and put them in a group.
sel = cmds.ls(sl=1) for obj in sel: grpLoc = cmds.group(name ="cube_locator#", empty=1) numVert = cmds.polyEvaluate(obj, vertex=1) i = 0 while i < numVert: getVertex = str(obj) + ".vtx[%s]" %i getT = cmds.xform( getVertex, q=1, t=1) loc = cmds.spaceLocator(name="loc#", position = (getT[0],getT[1],getT[2])) cmds.parent(loc, grpLoc) i += 1 |