# Get the NAME, LOC and VEC in an array for all objects in the swarm STATE['SWARM'] = [{ 'NAME': ob.getName(), 'LOC': Mathutils.Vector(ob.loc), 'ROT': ob.getEuler(), 'VEC':GetStartVector(ob), 'IPO':GetStartIpo(ob), 'TARVEC':0, 'TARLOC':0 } for ob in Object.GetSelected()];