New question #692568 on Yade:
https://answers.launchpad.net/yade/+question/692568

Hi,

I defined the material properties for the whole assembly and want to change the 
jointFrictionAngle for specific particles afterwards.
Looping through the spheres and changing the colour works great, but I cannot 
achieve it for the jointFrictionAngle.

Thanks


for o in O.bodies:
   if isinstance(o.shape,Sphere):
      
      ## seperate assembly
        if o.state.pos[1]>(dimModele/2) :
                o.shape.color=(1,0,1)
                o.JCFpmMat.jointFrictionAngle = radians(80)
        else:
                o.shape.color=(0,0,1)
                o.JCFpmMat.jointFrictionAngle = radians(80)

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to