[ASK] Adding mesh via Python script

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Posts: 7
Joined: Mon May 21, 2012 1:46 am
Location: Enschede

[ASK] Adding mesh via Python script

Postby n0talentGEEK » Tue Jun 12, 2012 7:03 pm


For example I have created a mesh (without using a code), how can I use the mesh in the script like I usually add a primitive object?

Maybe somewhat like bpy.ops.mesh.myMesh_add() ??

Thank you.
And I am sorry for grammar and (maybe) mistaken word. :)

Posts: 894
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Postby CoDEmanX » Wed Jun 13, 2012 11:31 am

you gotta turn it into an operator

have a look at the add mesh extra objects script collection, they use different techniques to do this
I'm sitting, waiting, wishing, building Blender in superstition...

Return to “Python”

Who is online

Users browsing this forum: No registered users and 0 guests