import maya.cmds as cmds import maya.mel as mel
maya.mel.eval('particleFill -rs 4 -maxX 1 -maxY 1 -maxZ 1 -minX 0 -minY 0 -minZ 0 -pd 1 -cp;')
cmds.select( 'testSphere', tgl=True )
print ("its working")
# Error: line 1: RuntimeError: file <maya console> line 4: Error occurred during execution of MEL script #
This will fill the sphere with particles, but then errors out and will not continue with the rest of the script. I have tried this without using a MEL command. The python command (#cmds.particleFill()) alone also gives an error: # Error: line 1: RuntimeError: file <maya console> line 4: Maya command error #
This is maya 2012.
Can anyone tell me if this is a bug and/or if there is a work around for this?