This object gives access to Curve and Surface data linked from
Blender Objects.
string
|
getName()
Get the name of this Curve Data object. |
|
|
None
|
setName(name)
Set the name of this Curve Data object. |
|
|
int
|
getPathLen()
Get this Curve's path frame length, used for an animated path. |
|
|
None
|
|
int
|
getTotcol()
Get the number of materials linked to the Curve. |
|
|
None
|
setTotcol(totcol)
Set the number of materials linked to the Curve. |
|
|
integer bitfield
|
getFlag()
Get the Curve flag value. |
|
|
None
|
setFlag(val)
Set the Curve flag value. |
|
|
float
|
getBevresol()
Get the Curve's bevel resolution value. |
|
|
None
|
setBevresol(bevelresol)
Set the Curve's bevel resolution value. |
|
|
float
|
getResolu()
Get the Curve's U-resolution value. |
|
|
None
|
setResolu(resolu)
Set the Curve's U-resolution value. |
|
|
float
|
getResolv()
Get the Curve's V-resolution value. |
|
|
None
|
setResolv(resolv)
Set the Curve's V-resolution value. |
|
|
float
|
getWidth()
Get the Curve's width value. |
|
|
None
|
setWidth(width)
Set the Curve's width value. |
|
|
float
|
getExt1()
Get the Curve's ext1 value. |
|
|
None
|
setExt1(ext1)
Set the Curve's ext1 value. |
|
|
float
|
getExt2()
Get the Curve's ext2 value. |
|
|
None
|
setExt2(ext2)
Set the Curve's ext2 value. |
|
|
list of floats
|
getControlPoint(numcurve,
numpoint)
Get the curve's control point value (deprecated). |
|
|
None
|
setControlPoint(numcurve,
numpoint,
controlpoint)
Set the Curve's controlpoint value. |
|
|
None
|
appendPoint(numcurve,
new_control_point)
Add a new control point to the indicated curve (deprecated). |
|
|
CurNurb
|
appendNurb(new_point)
add a new curve to this Curve. |
|
|
a list of 3 floats.
|
getLoc()
Get the curve's location value. |
|
|
None
|
setLoc(location)
Set the curve's location value. |
|
|
a list of 3 floats.
|
getRot()
Get the curve's rotation value. |
|
|
None
|
setRot(rotation)
Set the Curve's rotation value. |
|
|
a list of 3 floats.
|
getSize()
Get the curve's size value. |
|
|
None
|
setSize(size)
Set the curve size value. |
|
|
list of Material Objects
|
getMaterials()
Returns a list of materials assigned to the Curve. |
|
|
Blender Object or None
|
getBevOb()
Returns the Bevel Object (BevOb) assigned to the Curve. |
|
|
None
|
setBevOb(object)
Assign a Bevel Object (BevOb) to the Curve. |
|
|
Blender Object or None
|
getTaperOb()
Returns the Taper Object (TaperOb) assigned to the Curve. |
|
|
None
|
setTaperOb(object)
Assign a Taper Object (TaperOb) to the Curve. |
|
|
None
|
update()
Updates display list for a Curve. |
|
|
integer
|
isNurb(curve_num)
Tells type of a CurNurb (deprecated). |
|
|
boolean
|
isCyclic(curve_num)
Tells whether or not a CurNurb is cyclic (closed)
(deprecated). |
|
|
|
|
integer
|
getNumCurves()
Get the number of curves in this Curve Data object. |
|
|
integer
|
getNumPoints(curve_num)
Get the number of control points in the curve (deprecated). |
|
|
Key object or None
|
getKey()
Return the Key object
containing the keyframes for this curve, if any. |
|
|
None
|
recalc()
Recalculate control point handles after a curve has been changed. |
|
|
Curve
|
|
Blender Object or
None
|
bevob
The Curve Bevel Object
|
int
|
bevresol
The Curve Data bevel resolution.
|
float
|
ext1
The Curve Data extent1 Called "Extrude" in the user
interface (for bevels only).
|
float
|
ext2
The Curve Data extent2 - Called "Bevel Depth" in the user
interface (for bevels only).
|
|
flag
The Curve Data flag value; see getFlag() for
the semantics.
|
Blender Key
|
key
The Key object associated with this Curve, if any.
|
list of 3 floats
|
loc
The Curve Data location(from the center).
|
list of Materials
|
materials
The curves's materials.
|
string
|
name
The Curve Data name.
|
int
|
pathlen
The Curve Data path length, used to set the number of frames for an
animation (not the physical length).
|
int
|
resolu
The Curve Data U-resolution (used for curve and surface resolution)
[0 - 1024].
|
int
|
resolv
The Curve Data V-resolution (used for surface resolution) [0 - 1024].
|
list of 3 floats
|
rot
The Curve Data rotation(from the center).
|
list of 3 floats
|
size
The Curve Data size(from the center).
|
Blender Object or
None
|
taperob
The Curve Taper Object
|
int
|
totcol
The Curve Data maximal number of linked materials.
|
float
|
width
The Curve Data width [0 - 2].
|