COLLADA branch: merge from trunk -r 24522:24758.
[blender.git] / release / scripts / presets / cloth / cotton.py
index 27717495e99d60b7202382f75943e3cf44e771e9..7fe8b890b38265d9eb292ccd861235ad685427f8 100644 (file)
@@ -1,6 +1,6 @@
-bpy.context.active_object.modifiers['Cloth'].settings.quality = 5
-bpy.context.active_object.modifiers['Cloth'].settings.mass = 0.300
-bpy.context.active_object.modifiers['Cloth'].settings.structural_stiffness = 15.000
-bpy.context.active_object.modifiers['Cloth'].settings.bending_stiffness = 0.500
-bpy.context.active_object.modifiers['Cloth'].settings.spring_damping = 5.000
-bpy.context.active_object.modifiers['Cloth'].settings.air_damping = 1.000
+bpy.context.cloth.settings.quality = 5
+bpy.context.cloth.settings.mass = 0.300
+bpy.context.cloth.settings.structural_stiffness = 15.000
+bpy.context.cloth.settings.bending_stiffness = 0.500
+bpy.context.cloth.settings.spring_damping = 5.000
+bpy.context.cloth.settings.air_damping = 1.000