I'm a newbie to bpy. I'm trying to scale faces from there individual origin inside the editmode just after extruding each face individually. In the blender interface, I would set the pivot option to "individual origins". But I can't find where to set this in scripting. Here is the bit of script I'm struggling with:
Code: Select all
import bpy
bpy.ops.mesh.primitive_grid_add(x_subdivisions=15, y_subdivisions=10)
bpy.ops.transform.resize(value=(15/2, 10/2, 1))
bpy.ops.object.editmode_toggle()
bpy.ops.mesh.extrude_faces_move(MESH_OT_extrude_faces_indiv={"mirror":False}, TRANSFORM_OT_shrink_fatten={"value":0, "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), "release_confirm":False})
bpy.ops.transform.resize(value=(0.8, 0.8, 0.8))[code]