I’m trying the edge extrude with python script.
Steps
- Toggle into the EDIT Mode
- Go to the Edge Select Mode
- Select an edge in neck loop (predefined edge id corresponding to neck)
- Extrude by noted value corresponding to the selected edge
Note : The neck edge ids and the corresponding value to be extruded is noted manually.
bpy.ops.object.mode_set(mode = 'EDIT')
bpy.ops.mesh.select_mode(type='EDGE')
for i in range(len(neck_edges)):
edge_idx=neck_edges[i]
print(edge_idx)
mesh.data.edges[edge_idx].select
bpy.ops.mesh.extrude_region_move(MESH_OT_extrude_region={"use_normal_flip":False, "use_dissolve_ortho_edges":False, "mirror":False}, TRANSFORM_OT_translate={"value":neck_extrusion_value[i], "orient_type":'GLOBAL', "orient_matrix":((1, 0, 0), (0, 1, 0), (0, 0, 1)), "orient_matrix_type":'GLOBAL', "constraint_axis":(False, False, False), "mirror":False, "use_proportional_edit":False, "proportional_edit_falloff":'SMOOTH', "proportional_size":1, "use_proportional_connected":False, "use_proportional_projected":False, "snap":False, "snap_target":'CLOSEST', "snap_point":(0, 0, 0), "snap_align":False, "snap_normal":(0, 0, 0), "gpencil_strokes":False, "cursor_transform":False, "texture_space":False, "remove_on_cancel":False, "release_confirm":False, "use_accurate":False, "use_automerge_and_split":False})
But the result is not as expected,
