Changing default value of friction ratio, in rigid body physics (python script)

Hey all,

I’m new to blender and I want to simulate behaviour of granular soil using Blender.
To do so, I shattered a block using “cell fracture” tool to create randomly shaped soil particles (about thousands objects)
I want to assign a friction ratio to all of soil particles, but it is just feasible by selecting and assigning one-by-one of particles. Thus, it would be very overwhelming!

However, I didn’t give up! I opened the file entitled “” using gedit (I am using Ubunutu 13.10 and Blender 2.69.2) and in line 1095, I changed the default value of friction from 0.5 to 0.2 (which is my desired value), however this did not work for me!

FYI, I already did such manipulation in “Cell fracture” python file and it was quite successful, but this time not!

Any suggestion? help? advise?

Thank you in advance.

Instead of writing a script you could just change the settings for one object then copy the rigid body settings from that object to all the other selected objects.

There is a Copy to Active button in the toolshelf under Rigid Body Tools

WOw! I did not know that,

Thank you very much indeed!
that solved my question.

Thank you very much indeed!

It solved my question!

Thank you very much indeed!