diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-22 14:33:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-22 14:33:44 +0300 |
commit | 8b84cc2ab65790604722eeaba89a34095d2e7259 (patch) | |
tree | 323e68193444a1bed8c83603db701fa1fb221e15 /release/scripts/presets | |
parent | 771406df94356b3d400b40125c9e8d5961513ccd (diff) |
use context member rather then modifier name in presets
Diffstat (limited to 'release/scripts/presets')
-rw-r--r-- | release/scripts/presets/cloth/cotton.py | 12 | ||||
-rw-r--r-- | release/scripts/presets/cloth/denim.py | 12 | ||||
-rw-r--r-- | release/scripts/presets/cloth/leather.py | 12 | ||||
-rw-r--r-- | release/scripts/presets/cloth/silk.py | 12 |
4 files changed, 24 insertions, 24 deletions
diff --git a/release/scripts/presets/cloth/cotton.py b/release/scripts/presets/cloth/cotton.py index 27717495e99..7fe8b890b38 100644 --- a/release/scripts/presets/cloth/cotton.py +++ b/release/scripts/presets/cloth/cotton.py @@ -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 diff --git a/release/scripts/presets/cloth/denim.py b/release/scripts/presets/cloth/denim.py index 0d9be3cb583..4cad384a014 100644 --- a/release/scripts/presets/cloth/denim.py +++ b/release/scripts/presets/cloth/denim.py @@ -1,6 +1,6 @@ -bpy.context.active_object.modifiers['Cloth'].settings.quality = 12 -bpy.context.active_object.modifiers['Cloth'].settings.mass = 1 -bpy.context.active_object.modifiers['Cloth'].settings.structural_stiffness = 40 -bpy.context.active_object.modifiers['Cloth'].settings.bending_stiffness = 10 -bpy.context.active_object.modifiers['Cloth'].settings.spring_damping = 25 -bpy.context.active_object.modifiers['Cloth'].settings.air_damping = 1 +bpy.context.cloth.settings.quality = 12 +bpy.context.cloth.settings.mass = 1 +bpy.context.cloth.settings.structural_stiffness = 40 +bpy.context.cloth.settings.bending_stiffness = 10 +bpy.context.cloth.settings.spring_damping = 25 +bpy.context.cloth.settings.air_damping = 1 diff --git a/release/scripts/presets/cloth/leather.py b/release/scripts/presets/cloth/leather.py index f64608b24c7..11176c7e814 100644 --- a/release/scripts/presets/cloth/leather.py +++ b/release/scripts/presets/cloth/leather.py @@ -1,6 +1,6 @@ -bpy.context.active_object.modifiers['Cloth'].settings.quality = 15 -bpy.context.active_object.modifiers['Cloth'].settings.mass = 0.4 -bpy.context.active_object.modifiers['Cloth'].settings.structural_stiffness = 80 -bpy.context.active_object.modifiers['Cloth'].settings.bending_stiffness = 150 -bpy.context.active_object.modifiers['Cloth'].settings.spring_damping = 25 -bpy.context.active_object.modifiers['Cloth'].settings.air_damping = 1 +bpy.context.cloth.settings.quality = 15 +bpy.context.cloth.settings.mass = 0.4 +bpy.context.cloth.settings.structural_stiffness = 80 +bpy.context.cloth.settings.bending_stiffness = 150 +bpy.context.cloth.settings.spring_damping = 25 +bpy.context.cloth.settings.air_damping = 1 diff --git a/release/scripts/presets/cloth/silk.py b/release/scripts/presets/cloth/silk.py index 21de166adf9..a0dea5f1fd3 100644 --- a/release/scripts/presets/cloth/silk.py +++ b/release/scripts/presets/cloth/silk.py @@ -1,6 +1,6 @@ -bpy.context.active_object.modifiers["Cloth"].settings.quality = 5 -bpy.context.active_object.modifiers["Cloth"].settings.mass = 0.150 -bpy.context.active_object.modifiers["Cloth"].settings.structural_stiffness = 5 -bpy.context.active_object.modifiers["Cloth"].settings.bending_stiffness = 0.05 -bpy.context.active_object.modifiers["Cloth"].settings.spring_damping = 0 -bpy.context.active_object.modifiers["Cloth"].settings.air_damping = 1 +bpy.context.cloth.settings.quality = 5 +bpy.context.cloth.settings.mass = 0.150 +bpy.context.cloth.settings.structural_stiffness = 5 +bpy.context.cloth.settings.bending_stiffness = 0.05 +bpy.context.cloth.settings.spring_damping = 0 +bpy.context.cloth.settings.air_damping = 1 |