Hey guys, I'm having trouble instancing some geometry onto some
particles.

Below are the relevant bits of the code...

sel = mc.ls(sl=True)
selSize = len(sel)

part = mc.particle(n="debrisPart")

objList = ''
for i in range(selSize):
        objList += ' object=' + sel[i] + ','
print objList

inst = mc.particleInstancer(part[0], addObject=True, + objList +
cycleStep=1)

The trouble comes when I try to add the objList into the
particleInstancer command, what am I doing wrong here?

Thanks, Chris
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to