Python API

----------
Changed Mesh Primitives doc example to use scn.objects.new().
This commit is contained in:
Ken Hughes
2007-01-13 18:37:14 +00:00
parent 5fd071070b
commit 8ea091568f

View File

@@ -17,14 +17,11 @@ Example::
from Blender import *
me = Mesh.Primitives.Cube(2.0) # create a new cube of size 2
ob = Object.New('Mesh') # create a new mesh-type object
ob.link(me) # link mesh datablock with object
sc = Scene.GetCurrent() # get current scene
sc.link(ob) # add object to the scene
sc.objects.new(me,'Mesh') # add a new mesh-type object to the scene
Window.RedrawAll() # update windows
"""
def Plane(size=2.0):
"""
Construct a filled planar mesh with 4 vertices. The default size