Referred to this

https://bugs.launchpad.net/bugs/1070744

I try to send an attachment. Please tell my if it works.
#over interactions

for i in O.interactions:

#check wether the interaction is Real

if i.isReal:

#check wether the interaction is between spheres or not

if isinstance(O.bodies[i.id1].shape,Sphere) and isinstance(O.bodies[i.id2].shape,Sphere):

#access bodies properties

y1 = O.bodies[i.id1].state.pos[1]; 

#loop over all bodies:

for ii in range(0,len(O.bodies)+1):
	b=O.bodies[ii]
	if b.isClump:
		print b.shape.members	#print all clump members
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to