New methods for Curve module: getBevOb() and setBevOb()

Adds ability to set, clear and get bevel object for a Curve.
Contributed by Gergely Erdelyi (dyce).
Thanks!
This commit is contained in:
Stephen Swaney
2005-04-17 13:48:16 +00:00
parent fa5d910f93
commit 127abda43d
2 changed files with 73 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ class Curve:
@cvar loc: The Curve Data location(from the center).
@cvar rot: The Curve Data rotation(from the center).
@cvar size: The Curve Data size(from the center).
@cvar bevob: The Curve Bevel Object
"""
def getName():
@@ -319,6 +320,23 @@ class Curve:
@return: list of Material Objects assigned to the Curve.
"""
def getBevOb():
"""
Returns the Bevel Object (BevOb) assigned to the Curve.
@rtype: Blender Object or PyNone
@return: Bevel Object (BevOb) assigned to the Curve.
"""
def setBevOb( object ):
"""
Assign a Bevel Object (BevOb) to the Curve. Passing None as the object parameter removes the bevel.
@rtype: PyNone
@return: PyNone
@type object: Curve type Blender Object
@param object: Blender Object to assign as Bevel Object (BevOb)
@raise TypeError: throws exception if the parameter is not a Curve type Blender Object or PyNone
"""
def update():
"""
Updates display list for a Curve.