diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-28 04:28:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-28 04:28:54 +0300 |
commit | aaf97075b4ee65eeb22f9832695cb716f1319ab3 (patch) | |
tree | bc1f7a144ce144ffaa126906b024fb199b7e9768 /add_advanced_objects_menu | |
parent | 0bbba588f7a5fcdf22107e82308b04462e696f3a (diff) |
Update for rename: constraint_orientation -> orient_type
Diffstat (limited to 'add_advanced_objects_menu')
-rw-r--r-- | add_advanced_objects_menu/object_add_chain.py | 2 | ||||
-rw-r--r-- | add_advanced_objects_menu/random_box_structure.py | 8 | ||||
-rw-r--r-- | add_advanced_objects_menu/rope_alpha.py | 16 | ||||
-rw-r--r-- | add_advanced_objects_menu/scene_objects_bi.py | 2 |
4 files changed, 14 insertions, 14 deletions
diff --git a/add_advanced_objects_menu/object_add_chain.py b/add_advanced_objects_menu/object_add_chain.py index 0ae29145..86da80f8 100644 --- a/add_advanced_objects_menu/object_add_chain.py +++ b/add_advanced_objects_menu/object_add_chain.py @@ -103,7 +103,7 @@ def Add_Chain(): bpy.ops.transform.translate( value=(2, 0, 0), constraint_axis=(True, False, False), - constraint_orientation='GLOBAL', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', diff --git a/add_advanced_objects_menu/random_box_structure.py b/add_advanced_objects_menu/random_box_structure.py index 9de32146..819dd5ec 100644 --- a/add_advanced_objects_menu/random_box_structure.py +++ b/add_advanced_objects_menu/random_box_structure.py @@ -150,7 +150,7 @@ class makestructure(Operator): bpy.ops.mesh.select_all(action='SELECT') bpy.ops.transform.resize( value=(sx, sy, sz), constraint_axis=(True, True, True), - constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True ) bpy.ops.object.mode_set(mode='OBJECT') @@ -160,17 +160,17 @@ class makestructure(Operator): bpy.ops.object.select_grouped(type='GROUP') bpy.ops.transform.rotate( value=rot[0], axis=(1, 0, 0), constraint_axis=(False, False, False), - constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True ) bpy.ops.transform.rotate( value=rot[1], axis=(0, 1, 0), constraint_axis=(False, False, False), - constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True ) bpy.ops.transform.rotate( value=rot[2], axis=(0, 0, 1), constraint_axis=(False, False, False), - constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True ) bpy.context.view_layer.objects.active = obj # Again needed to avoid poll() taking me down diff --git a/add_advanced_objects_menu/rope_alpha.py b/add_advanced_objects_menu/rope_alpha.py index d56f053e..7c9c5129 100644 --- a/add_advanced_objects_menu/rope_alpha.py +++ b/add_advanced_objects_menu/rope_alpha.py @@ -172,7 +172,7 @@ def extruir_vertices(longitud, cuantos_segmentos): TRANSFORM_OT_translate={ "value": (longitud / cuantos_segmentos, 0, 0), "constraint_axis": (True, False, False), - "constraint_orientation": 'GLOBAL', "mirror": False, + "orient_type": 'GLOBAL', "mirror": False, "proportional": 'DISABLED', "proportional_edit_falloff": 'SMOOTH', "proportional_size": 1, "snap": False, "snap_target": 'CLOSEST', "snap_point": (0, 0, 0), "snap_align": False, "snap_normal": (0, 0, 0), @@ -341,7 +341,7 @@ class ClothRope(Operator): MESH_OT_extrude_region={"mirror": False}, TRANSFORM_OT_translate={ "value": (0, 0.005, 0), "constraint_axis": (False, True, False), - "constraint_orientation": 'GLOBAL', "mirror": False, + "orient_type": 'GLOBAL', "mirror": False, "proportional": 'DISABLED', "proportional_edit_falloff": 'SMOOTH', "proportional_size": 1, "snap": False, "snap_target": 'CLOSEST', "snap_point": (0, 0, 0), "snap_align": False, "snap_normal": (0, 0, 0), @@ -383,7 +383,7 @@ class ClothRope(Operator): MESH_OT_duplicate={"mode": 1}, TRANSFORM_OT_translate={ "value": (0, 0, 0), "constraint_axis": (False, False, False), - "constraint_orientation": 'GLOBAL', "mirror": False, + "orient_type": 'GLOBAL', "mirror": False, "proportional": 'DISABLED', "proportional_edit_falloff": 'SMOOTH', "proportional_size": 1, "snap": False, "snap_target": 'CLOSEST', "snap_point": (0, 0, 0), "snap_align": False, "snap_normal": (0, 0, 0), @@ -694,7 +694,7 @@ class BallRope(Operator): TRANSFORM_OT_translate={ "value": (0, 0, z / i), "constraint_axis": (False, False, True), - "constraint_orientation": 'GLOBAL', "mirror": False, + "orient_type": 'GLOBAL', "mirror": False, "proportional": 'DISABLED', "proportional_edit_falloff": 'SMOOTH', "proportional_size": 1, "snap": False, "snap_target": 'CLOSEST', "snap_point": (0, 0, 0), "snap_align": False, "snap_normal": (0, 0, 0), @@ -721,13 +721,13 @@ class BallRope(Operator): ) bpy.ops.transform.translate( value=(0, 0, -z + 2), constraint_axis=(False, False, True), - constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 ) bpy.ops.transform.resize( value=(longitud / 2, longitud / 2, longitud / 2), constraint_axis=(False, False, False), - constraint_orientation='GLOBAL', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 ) @@ -743,7 +743,7 @@ class BallRope(Operator): bpy.ops.transform.translate( value=(0, 0, offset_del_suelo_real), constraint_axis=(False, False, True), - constraint_orientation='GLOBAL', mirror=False, + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 ) @@ -765,7 +765,7 @@ class BallRope(Operator): bpy.ops.transform.rotate( value=rotrope, axis=(1, 0, 0), constraint_axis=(True, False, False), - constraint_orientation='GLOBAL', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 diff --git a/add_advanced_objects_menu/scene_objects_bi.py b/add_advanced_objects_menu/scene_objects_bi.py index 94bda4bc..199289dd 100644 --- a/add_advanced_objects_menu/scene_objects_bi.py +++ b/add_advanced_objects_menu/scene_objects_bi.py @@ -162,7 +162,7 @@ class add_BI_scene(Operator): bpy.ops.object.editmode_toggle() bpy.ops.transform.rotate( value=-0.8, axis=(0, 0, 1), constraint_axis=(False, False, True), - constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 ) bpy.ops.uv.unwrap(method='CONFORMAL', margin=0.001) |