I'm trying to set up a workflow which involves as many reusable parts as possible.
I've written a vecCircle module which places a circle but it's not working because the example code I used is from a 2.5 doc source and there is no equivalent in 2.6. I'm using 2.74 and it looks like the API is a 2.6 API - I presume that's right.
Includes the code
ob = bpy.context.object
which is an error in my pydev instance due to this being ro in this release. Can anyone tell me how the following should be rewritten? I'm not a python noob but blender Python noob.
def createMeshFromPrimitive(name, origin): bpy.ops.mesh.primitive_cone_add( vertices=4, radius=1, depth=1, cap_end=True, view_align=False, enter_editmode=False, location=origin, rotation=(0, 0, 0)) ob = bpy.context.object ob.name = name ob.show_name = True me = ob.data me.name = name+'Mesh' return ob