I think, First of all the objectList should be a tuple or list not a coma separated string... so you can use directly the sel list, secondly you need to use the particleShape so you need to pass part[1] to the command
so your commands reduces to: selList = cmds.ls(sl=True) particle = cmds.particle(n="debrisPart") inst = cmds.particleInstancer( particle[1], object=selList, addObject=1, cycleStep=1 ) On Fri, Jul 3, 2009 at 10:29 PM, bendingiscool <[email protected]>wrote: > > 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 > > > -- E.Ozgur Yilmaz Senior Technical Director www.ozgurfx.com --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
