I'm generating metaballs with a python script, and I need to be able to toggle the
negative option for some of the metaballs. (Edit:
negative changes the object's "influence" to subtract from the other metaballs, instead of adding like normal metaballs; the
negative checkbox can be found in a metaball object's Object Data section while in Edit Mode.)
def metbaseobj(N=3,scale=1.0): '''adds N metaball objects to provide the base shape''' shapes = ['CAPSULE','ELLIPSOID','BALL','CUBE'] metbaseinfo =  for each in range(N): shape = shapes[random.randint(0,1)] loc=(scale*random.random(),scale*random.random(),scale*random.random()) rot=(random.random(),random.random(),random.random()) bpy.ops.object.metaball_add(type=shape,location=loc,rotation=rot) #[toggle metaball influence to be negative here] metbaseinfo.append((shape,loc,rot)) return(metbaseinfo)
I found a documentation page that makes me think
use_negative=True is what I need, I just can't figure out how to use it exactly. Thanks for any help, I'll keep looking in the meantime.