1
$\begingroup$

I have to automate the face selection process of torus.
What is the python command to select the face ?enter image description here




How can I extend this to select a loop of faces?
I want python script which when run will select a face of torus

$\endgroup$
1
  • $\begingroup$ What is the criteria to select the initial face? $\endgroup$
    – batFINGER
    Commented Jan 1, 2017 at 11:13

1 Answer 1

1
$\begingroup$

For 1 click script enter image description here Add torus -- go to edit mode --- select a single face (confirm that ur in face selection) -- run

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)

enter image description here

$\endgroup$
3
  • $\begingroup$ I want to automate the complte process pls help! $\endgroup$ Commented Nov 29, 2016 at 15:47
  • $\begingroup$ 2 method given above as u said 1st is full automate just add a torus and select a face and run and 2nd is just to select face loop $\endgroup$
    – atek
    Commented Nov 29, 2016 at 16:02
  • $\begingroup$ But selecting a face is not automation.Is there a command to select the face? Pls help $\endgroup$ Commented Nov 29, 2016 at 16:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .