Dashboard_avatar
Aug 03, 2012
Post id: 310429 Report Item

I have 27k locators from photogrammetry, and would like to convert them to particles, any suggs? I think it might be a simple mel script, but I don't code. Thx!

Dashboard_avatar
Aug 04, 2012
Post id: 310433 Report Item

Its more efficient in python (mel would be dead slow)
















Python Script to turn all locators to particles in one particle object

1
2
3
4
5
6
7


import maya.cmds as cmds
 
pos = map(
cmds.pointPosition,
cmds.ls(type='locator')
)
cmds.particle( p=pos ) # or nParticle



Dashboard_avatar
Aug 05, 2012
Post id: 310436 Report Item

Works like a champ, huge thanks Joojaa!