0
$\begingroup$

enter image description here

I added a torus and I was trying to extrude the faces but I couldn't get the exact shape!
Should I continue with torus or circle will be much better?
How can I make the part (circled in red) shown in the image?

P.S. I have to use python scripting to make this model

$\endgroup$
0
$\begingroup$

Add a Torus go to edit mode. Select a loop and confirm that you're in face selection as shown in the GIF.

Gif of solution

import bpy
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)
| improve this answer | |
$\endgroup$
  • $\begingroup$ how can i select a loop of torus using python? $\endgroup$ – user6889367 Nov 29 '16 at 14:40
  • $\begingroup$ Go to Edit mode --- select a single face -- then run --------- import bpy bpy.ops.mesh.select_similar(type='PERIMETER', threshold=0.01) $\endgroup$ – atek Nov 29 '16 at 14:51
  • $\begingroup$ cant i automate the whole process? $\endgroup$ – user6889367 Nov 29 '16 at 14:55
  • $\begingroup$ Sorry for disturbing you but how can i select that single face using python? $\endgroup$ – user6889367 Nov 29 '16 at 14:55
0
$\begingroup$

For 1 click script enter image description here Add torus and go to edit mode. Then select a single face (confirm that ur in face selection) and 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 a torus and go to edit mode. Then select a single face (confirm that you are in face selection) and run

import bpy
bpy.ops.mesh.faces_select_linked_flat(sharpness=0.261799)

enter image description here

| improve this answer | |
$\endgroup$
  • 2
    $\begingroup$ instead of adding a new answer, edit the previous one to add more detail. $\endgroup$ – user1853 Nov 29 '16 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.