diff --git a/add_advanced_objects_menu/object_add_chain.py b/add_advanced_objects_menu/object_add_chain.py index 0ae29145db043688bddde59134f52b661445d7ce..86da80f8edc9e8facced48d241952f8065b3e070 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 9de32146c1efbd1053c1c91136856774f059a20e..819dd5ece3c0ea40c7dd7069c66e65202d2275de 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 d56f053e0a5aa294698d25031fc513302e6865f0..7c9c5129c94709ddca5682106a99e6b4954a924b 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 94bda4bc50e3ea967f6854faf33ae2d5713df20f..199289dd6aec3571563ee19e46331e5acefe9754 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) diff --git a/archipack/archipack_snap.py b/archipack/archipack_snap.py index 086c5525bd0a9dfb5559d88b1aa7e861f7826d35..346b64dde16d4a9a0f25ccaf6883cb415506025d 100644 --- a/archipack/archipack_snap.py +++ b/archipack/archipack_snap.py @@ -328,7 +328,7 @@ class ARCHIPACK_OT_snap(ArchipackSnapBase, Operator): bpy.ops.transform.translate('INVOKE_DEFAULT', constraint_axis=SnapStore.constraint_axis, - constraint_orientation=SnapStore.transform_orientation, + orient_type=SnapStore.transform_orientation, release_confirm=SnapStore.release_confirm) logger.debug("Snap.invoke transform.translate done") diff --git a/io_mesh_pdb/import_pdb.py b/io_mesh_pdb/import_pdb.py index 51d3e814e17d5c269c1d7a0f17a314cc1798f03e..77c2fc6e5ac2ce4902e2dc8ad37e1520bd2a8853 100644 --- a/io_mesh_pdb/import_pdb.py +++ b/io_mesh_pdb/import_pdb.py @@ -583,7 +583,7 @@ def camera_light_source(use_camera, bpy.ops.transform.rotate(value=(90.0*2*pi/360.0), axis=object_camera_vec, constraint_axis=(False, False, False), - constraint_orientation='GLOBAL', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, snap=False, @@ -994,7 +994,7 @@ def draw_sticks_skin(all_atoms, Stick_diameter*r_f, Stick_diameter*r_f), constraint_axis=(False, False, False), - constraint_orientation='GLOBAL', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', diff --git a/mesh_auto_mirror.py b/mesh_auto_mirror.py index bffa94781fc0df95a0b29cf7ebfde80414b90170..c17838d5a57ed16e7e0aa72a0004e0563e547433 100644 --- a/mesh_auto_mirror.py +++ b/mesh_auto_mirror.py @@ -98,13 +98,13 @@ class AutoMirror(Operator): bpy.ops.transform.translate( value=(X * orientation, Y * orientation, Z * orientation), constraint_axis=((X == 1), (Y == 1), (Z == 1)), - constraint_orientation='LOCAL' + orient_type='LOCAL' ) v2 = Vector((loc[0], loc[1], loc[2])) bpy.ops.transform.translate( value=(-X * orientation, -Y * orientation, -Z * orientation), constraint_axis=((X == 1), (Y == 1), (Z == 1)), - constraint_orientation='LOCAL' + orient_type='LOCAL' ) bpy.ops.object.mode_set(mode="EDIT") diff --git a/mesh_carver.py b/mesh_carver.py index b8c14d8c52e59c46cfbf2ba6a55ae47a954b8e20..d920ee9adccfb973628a6ae185edee61868b0166 100644 --- a/mesh_carver.py +++ b/mesh_carver.py @@ -2093,7 +2093,7 @@ def Rebool(context, self): TRANSFORM_OT_translate={ "value": (0, 0, 0), "constraint_axis": (False, False, False), - "constraint_orientation": 'GLOBAL', + "orient_type": 'GLOBAL', "mirror": False, "proportional": 'DISABLED', "proportional_edit_falloff": 'SMOOTH', diff --git a/mesh_extra_tools/mesh_edge_roundifier.py b/mesh_extra_tools/mesh_edge_roundifier.py index 19ea55b4f79568afd539d829f3cd9fc3d8a71858..3199624534e9a45fbc07638509f0b1941a0d286f 100644 --- a/mesh_extra_tools/mesh_edge_roundifier.py +++ b/mesh_extra_tools/mesh_edge_roundifier.py @@ -789,7 +789,7 @@ class EdgeRoundifier(Operator): old_location = self.obj.location.copy() bpy.ops.transform.translate( value=-old_location, 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 ) bpy.ops.object.mode_set(mode='EDIT') @@ -820,7 +820,7 @@ class EdgeRoundifier(Operator): # PKHG>INFO move origin object back print("old location = " , old_location) bpy.ops.transform.translate( value=old_location, 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 ) bpy.ops.object.mode_set(mode='EDIT') diff --git a/mesh_extra_tools/mesh_extrude_and_reshape.py b/mesh_extra_tools/mesh_extrude_and_reshape.py index a7ca0fdd5ddf36248f47177ef05f176c8d63d4f3..ec7b969d75edf0260b6c6119f6027bf5acd8a655 100644 --- a/mesh_extra_tools/mesh_extrude_and_reshape.py +++ b/mesh_extra_tools/mesh_extrude_and_reshape.py @@ -348,7 +348,7 @@ class Extrude_and_Reshape(Operator): bmesh.update_edit_mesh(self.mesh, loop_triangles=True, destructive=True) bpy.ops.transform.translate( 'INVOKE_DEFAULT', constraint_axis=(False, False, True), - constraint_orientation='NORMAL', release_confirm=True + orient_type='NORMAL', release_confirm=True ) context.window_manager.modal_handler_add(self) diff --git a/mesh_tissue/dual_mesh.py b/mesh_tissue/dual_mesh.py index 34b68c555340d810660cf90735b06f5387d461d8..96f3b59b4451728e4c3d568cc9c589c7ae0b1132 100644 --- a/mesh_tissue/dual_mesh.py +++ b/mesh_tissue/dual_mesh.py @@ -155,7 +155,7 @@ class dual_mesh(Operator): MESH_OT_extrude_region={"mirror": False}, 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', diff --git a/object_skinify.py b/object_skinify.py index d52d693727453adc2fba1d5cbc79a9acabd5fc85..329aaf9b8ab6b1c577e7ec4d83b6633049e9bc5b 100644 --- a/object_skinify.py +++ b/object_skinify.py @@ -448,7 +448,7 @@ def generate_mesh(shape_object, size, thickness=0.8, finger_thickness=0.25, sub_ bpy.ops.object.skin_root_mark(override) bpy.ops.transform.skin_resize(override, value=(1 * thickness * (size / 10), 1 * thickness * (size / 10), 1 * thickness * (size / 10)), - constraint_axis=(False, False, False), constraint_orientation='GLOBAL', + constraint_axis=(False, False, False), orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 ) @@ -463,7 +463,7 @@ def generate_mesh(shape_object, size, thickness=0.8, finger_thickness=0.25, sub_ # by default set fingers thickness to 25 percent of body thickness bpy.ops.transform.skin_resize(override, value=(finger_thickness, finger_thickness, finger_thickness), - constraint_axis=(False, False, False), constraint_orientation='GLOBAL', + constraint_axis=(False, False, False), orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 ) @@ -492,7 +492,7 @@ def generate_mesh(shape_object, size, thickness=0.8, finger_thickness=0.25, sub_ bpy.ops.mesh.merge(type='CENTER') bpy.ops.transform.skin_resize(override, value=(corrective_thickness, corrective_thickness, corrective_thickness), - constraint_axis=(False, False, False), constraint_orientation='GLOBAL', + constraint_axis=(False, False, False), orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 ) @@ -505,7 +505,7 @@ def generate_mesh(shape_object, size, thickness=0.8, finger_thickness=0.25, sub_ bpy.ops.mesh.merge(type='CENTER') bpy.ops.transform.skin_resize(override, value=(corrective_thickness, corrective_thickness, corrective_thickness), - constraint_axis=(False, False, False), constraint_orientation='GLOBAL', + constraint_axis=(False, False, False), orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 ) @@ -519,7 +519,7 @@ def generate_mesh(shape_object, size, thickness=0.8, finger_thickness=0.25, sub_ corrective_thickness = 0.7 bpy.ops.transform.skin_resize(override, value=(corrective_thickness, corrective_thickness, corrective_thickness), - constraint_axis=(False, False, False), constraint_orientation='GLOBAL', + constraint_axis=(False, False, False), orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 ) diff --git a/render_povray/primitives.py b/render_povray/primitives.py index 4e07dee4c1929bebc2c51ea27c35fd6482bed2b3..da7105bf38433450c809f3d016f07b2e363012b0 100644 --- a/render_povray/primitives.py +++ b/render_povray/primitives.py @@ -753,7 +753,7 @@ def pov_sphere_define(context, op, ob, loc): bpy.ops.mesh.select_all(action='SELECT') bpy.ops.mesh.delete(type='VERT') bpy.ops.mesh.primitive_ico_sphere_add(subdivisions=4, size=ob.pov.sphere_radius, location=loc, rotation=obrot) - #bpy.ops.transform.rotate(axis=obrot,constraint_orientation='GLOBAL') + #bpy.ops.transform.rotate(axis=obrot,orient_type='GLOBAL') bpy.ops.transform.resize(value=obscale) #bpy.ops.transform.rotate(axis=obrot, proportional_size=1) @@ -761,7 +761,7 @@ def pov_sphere_define(context, op, ob, loc): bpy.ops.mesh.hide(unselected=False) bpy.ops.object.mode_set(mode="OBJECT") bpy.ops.object.shade_smooth() - #bpy.ops.transform.rotate(axis=obrot,constraint_orientation='GLOBAL') + #bpy.ops.transform.rotate(axis=obrot,orient_type='GLOBAL') if not ob: bpy.ops.mesh.primitive_ico_sphere_add(subdivisions=4, size=R, location=loc) @@ -1710,7 +1710,7 @@ class ImportPOV(bpy.types.Operator, ImportHelper): # bpy.ops.object.mode_set(mode='EDIT') # bpy.ops.mesh.reveal() # bpy.ops.mesh.select_all(action='SELECT') - # bpy.ops.transform.resize(value=(1,1,scaleZ), constraint_orientation='LOCAL') + # bpy.ops.transform.resize(value=(1,1,scaleZ), orient_type='LOCAL') # bpy.ops.mesh.hide(unselected=False) # bpy.ops.object.mode_set(mode='OBJECT') diff --git a/space_view3d_pie_menus/pie_align_menu.py b/space_view3d_pie_menus/pie_align_menu.py index 329acca6eeffdce75f30a1b1dd41d4838721f327..ac5b3a4e8768f1935c76d5ac6d5ed9e610fd2a2a 100644 --- a/space_view3d_pie_menus/pie_align_menu.py +++ b/space_view3d_pie_menus/pie_align_menu.py @@ -128,7 +128,7 @@ class AlignSelectedXYZ(Operator): constraint_value = values[self.axis][1] bpy.ops.transform.resize( value=chosen_value, constraint_axis=constraint_value, - constraint_orientation='GLOBAL', + orient_type='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1 diff --git a/space_view3d_spacebar_menu.py b/space_view3d_spacebar_menu.py index ea3ab22e1949edbe67a078488630d66fa451fe3b..18acb9420610b10bffe986ccf7595a7381aec35f 100644 --- a/space_view3d_spacebar_menu.py +++ b/space_view3d_spacebar_menu.py @@ -873,26 +873,26 @@ class VIEW3D_MT_MirrorMenu(Menu): layout.operator_context = 'INVOKE_REGION_WIN' props = layout.operator("transform.mirror", text="X Global") props.constraint_axis = (True, False, False) - props.constraint_orientation = 'GLOBAL' + props.orient_type = 'GLOBAL' props = layout.operator("transform.mirror", text="Y Global") props.constraint_axis = (False, True, False) - props.constraint_orientation = 'GLOBAL' + props.orient_type = 'GLOBAL' props = layout.operator("transform.mirror", text="Z Global") props.constraint_axis = (False, False, True) - props.constraint_orientation = 'GLOBAL' + props.orient_type = 'GLOBAL' if context.edit_object: UseSeparator(self, context) props = layout.operator("transform.mirror", text="X Local") props.constraint_axis = (True, False, False) - props.constraint_orientation = 'LOCAL' + props.orient_type = 'LOCAL' props = layout.operator("transform.mirror", text="Y Local") props.constraint_axis = (False, True, False) - props.constraint_orientation = 'LOCAL' + props.orient_type = 'LOCAL' props = layout.operator("transform.mirror", text="Z Local") props.constraint_axis = (False, False, True) - props.constraint_orientation = 'LOCAL' + props.orient_type = 'LOCAL' UseSeparator(self, context) layout.operator("object.vertex_group_mirror")