COTorrey
(COTorrey)
1
so my goal is to add a mesh circle, enter edit mode, duplicate it, then loft between the two with the looptools addon
so far I have made it to
import bpy
bpy.ops.mesh.primitive_circle_add(location=(0.0, -3.0, 0.0), rotation=(1.5707, 0, 0), radius=(1.0), enter_editmode=True)
bpy.ops.mesh.duplicate_move(
after looking at the python/blender API i found
bpy.ops.mesh.duplicate_move(MESH_OT_duplicate=None, TRANSFORM_OT_translate=None)
but I don’t know how to use it.
Basically just want to duplicate the circle 2 units in the Y direction. Then loft, but that can wait.
Thanks in advance for any help you may be able to provide
:spin:
COTorrey
(COTorrey)
2
I did just find this
http://blenderartists.org/forum/archive/index.php/t-236400.html?
but it doesn’t really help me… I get errors.
COTorrey
(COTorrey)
3
nevermind, found out all i need to do is this :evilgrin:
import bpy
Circle1 = (0.0, -3.0, 0.0)
Circle2 = (0.25, -1.2, 0.0)
Circle3 = (-0.5, 1.75, 0.0)
Typ = (1.5707, 0.0, 0.0)
bpy.ops.mesh.primitive_circle_add(location=(Circle1), rotation=(Typ), radius=(1.0), enter_editmode=True)
bpy.ops.mesh.primitive_circle_add(location=(Circle2), rotation=(Typ), radius=(1.0), enter_editmode=True)
bpy.ops.mesh.primitive_circle_add(location=(Circle3), rotation=(Typ), radius=(1.0), enter_editmode=True)
bpy.ops.mesh.select_all(action=select)
bpy.ops.mesh.looptools_bridge(loft=True)