Hi guys and gals
This is my first post here. I’m trying to learn how to use python in blender 2.5, starting from the very basics. adly, it hasn’t been easy. I’m getting errors on really simple programs, as this:
import bpy
import math
from math import *
def ejemplo():
#define verts
coords=[-1.0, -1.0, -1.0, 1.0, -1.0, -1.0, 1.0, 1.0 ,-1.0, -1.0,1.0, -1.0, 0.0, 0.0, 1.0]
#define faces
faces=[ 2,1,0,3, 0,1,4,0, 1,2,4,1, 2,3,4,2, 3,0,4,3]
me=bpy.data.meshes.new("Pyramid")# create a new mesh
me.add_geometry(5, 0, 5) # add 5 vertices, 0 edges and 5 faces
ejemplo()
The message is the following:
Attribute Error : ‘Mesh’ object has no attribute ‘add_geometry’
Maybe the solution is quite simple