Scripting an Extend function

Hello everybody

I have an edge, which I want to extrude many times (as one would have to when implementing a wall). This task is very prone to errors and difficult to verify. How do I go about automating such a thing? The info window doesn’t show the actual coordinates for some reason. Here’s an example of extend action trace:

bpy.ops.mesh.extrude_vertices_move(MESH_OT_extrude_verts_indiv={“mirror”:False}, TRANSFORM_OT_translate={“value”:(0, 0, 0), “constraint_axis”:(False, False, False), “constraint_orientation”:‘GLOBAL’, “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), “texture_space”:False, “remove_on_cancel”:False, “release_confirm”:False})

I know by right-clicking on the “Extrude” button the function I need, but the parameter is an Operator instance, and there’s no link to its description. How do I go about finding out such things?

To rephrase: I want to implement a function, which will, given a list of (x, y, z) tuples extrude the selected vertex.

Thanks in advance.

you should have a look at the bmesh module

there is a template available from within the text editor->Bmesh Simple Editmode

using bmesh.ops.extrude_edge_only(bm, edges) you would have to grab the created edge(s) from the result each time

maybe creating the verts,edges,faces on your own is easier