From 8b84cc2ab65790604722eeaba89a34095d2e7259 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 22 Nov 2009 11:33:44 +0000 Subject: use context member rather then modifier name in presets --- release/scripts/presets/cloth/cotton.py | 12 ++++++------ release/scripts/presets/cloth/denim.py | 12 ++++++------ release/scripts/presets/cloth/leather.py | 12 ++++++------ release/scripts/presets/cloth/silk.py | 12 ++++++------ 4 files changed, 24 insertions(+), 24 deletions(-) (limited to 'release/scripts/presets') 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 -- cgit v1.2.3