Question #679387 on Yade changed: https://answers.launchpad.net/yade/+question/679387
Jan Stránský posted a new comment: Hello, > I tried what you said with differences however, which lead to the error The error (being a bit cryptic, yes) says that at b.mat=mat1 it expects Material instead of int. You can easily check that mat1 is a number, returned by O.materials.append. You can either use the material ID b.mat = O.materials[mat1] or (as in my answer) us material itself: mat1 = FrictMat(...) # mat is actual material mat1id = O.materials.append(mat) # O.materials.append returns material ID b.mat = mat1 # should be OK Cheers Jan -- 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

