How can I extend this to select a loop of faces?
I want python script which when run will select a face of torus
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
import bpy bpy.ops.mesh.faces_select_linked_flat(sharpness=0.261799) bpy.ops.mesh.select_nth(nth=3, offset=0) bpy.ops.transform.translate(value=(0, 0, 0.5), constraint_axis=(False, False, True), constraint_orientation='GLOBAL', mirror=False, proportional='DISABLED', proportional_edit_falloff='SMOOTH', proportional_size=1, release_confirm=True)
If you just want to select a face loop Add torus -- go to edit mode --- select a single face (confirm that you're in face selection) -- run
import bpy bpy.ops.mesh.faces_select_linked_flat(sharpness=0.261799)