[Maya Python] Locator cloud position/rotation to particle

63 views
Skip to first unread message

Graham Houston

unread,
Nov 5, 2022, 10:32:12 AM11/5/22
to Python Programming for Autodesk Maya
Hello, I'm trying to find a way to convert a locator group (15k) to a particleShape, retaining both position and rotation.  End result goal is to instance geometry to the particle shape, which will be a single static frame.

So far I've found a great piece of script to pull position info, but not PP rotation:

###
import maya.cmds as cmds  

pos
= map(
     cmds.pointPosition,
     cmds.ls(type='locator')
     )
cmds.particle( p=pos ) # or nParticle
Reply all
Reply to author
Forward
0 new messages