Home | Trees | Index | Help |
|
---|
Module Curve :: Class Curve |
|
Method Summary | |
---|---|
Curve |
Make a copy of this curve |
CurNurb |
add a new curve to this Curve. |
None |
Add a new control point to the indicated curve (deprecated). |
Blender Object or None |
Returns the Bevel Object (BevOb) assigned to the Curve. |
float |
Get the Curve's bevel resolution value. |
list of floats |
Get the curve's control point value (deprecated). |
float |
Get the Curve's ext1 value. |
float |
Get the Curve's ext2 value. |
integer bitfield |
Get the Curve flag value. |
Key
object or None
|
Return the Key object containing the keyframes for
this curve, if any. |
a list of 3 floats. |
Get the curve's location value. |
list of Material Objects |
Returns a list of materials assigned to the Curve. |
string |
Get the name of this Curve Data object. |
integer |
Get the number of curves in this Curve Data object. |
integer |
Get the number of control points in the curve (deprecated). |
int |
Get this Curve's path frame length, used for an animated path. |
float |
Get the Curve's U-resolution value. |
float |
Get the Curve's V-resolution value. |
a list of 3 floats. |
Get the curve's rotation value. |
a list of 3 floats. |
Get the curve's size value. |
Blender Object or None |
Returns the Taper Object (TaperOb) assigned to the Curve. |
int |
Get the number of materials linked to the Curve. |
float |
Get the Curve's width value. |
boolean |
Tells whether or not a CurNurb is cyclic (closed) (deprecated). |
integer |
Tells type of a CurNurb (deprecated). |
None |
Recalculate control point handles after a curve has been changed. |
None |
Assign a Bevel Object (BevOb) to the Curve. |
None |
Set the Curve's bevel resolution value. |
None |
Set the Curve's controlpoint value. |
None |
Set the Curve's ext1 value. |
None |
Set the Curve's ext2 value. |
None |
Set the Curve flag value. |
None |
Set the curve's location value. |
None |
Set the name of this Curve Data object. |
None |
Set this Curve's path length. |
None |
Set the Curve's U-resolution value. |
None |
Set the Curve's V-resolution value. |
None |
Set the Curve's rotation value. |
None |
Set the curve size value. |
None |
Assign a Taper Object (TaperOb) to the Curve. |
None |
Set the number of materials linked to the Curve. |
None |
Set the Curve's width value. |
Reverse the direction of a curve. | |
None |
Updates display list for a Curve. |
Instance Variable Summary | |
---|---|
Blender Object or None |
bevob : The Curve Bevel Object |
int | bevresol : The Curve Data bevel resolution. |
float | ext1 : The Curve Data extent1 (for bevels). |
float | ext2 : The Curve Data extent2 (for bevels). |
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 Material s |
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]. |
Method Details |
---|
__copy__()Make a copy of this curve
|
appendNurb(new_point)add a new curve to this Curve. The new point is added to the new curve. Blender does not support a curve with zero points. The new curve is added to the end of the list of curves in the Curve.
|
appendPoint(numcurve, new_control_point)Add a new control point to the indicated curve (deprecated). New scripts should useCurNurb.append() .
|
getBevOb()Returns the Bevel Object (BevOb) assigned to the Curve.
|
getBevresol()Get the Curve's bevel resolution value.
|
getControlPoint(numcurve, numpoint)Get the curve's control point value (deprecated). The numpoint arg is an index into the list of points and starts with 0. Note: new scripts should use the [] operator on Curves and CurNurbs. Example:curve = Blender.Curve.Get('Curve') p0 = curve[0][0] # get first point from first nurb # -- OR -- nurb = curve[0] # get first nurb p0 = nurb[0] # get nurb's first point
|
getExt1()Get the Curve's ext1 value.
|
getExt2()Get the Curve's ext2 value.
|
getFlag()Get the Curve flag value. This item is a bitfield whose value is a combination of the following parameters.
|
getKey()Return theKey object containing the keyframes for
this curve, if any.
|
getLoc()Get the curve's location value.
|
getMaterials()Returns a list of materials assigned to the Curve.
|
getName()Get the name of this Curve Data object.
|
getNumCurves()Get the number of curves in this Curve Data object.
|
getNumPoints(curve_num)Get the number of control points in the curve (deprecated). New scripts should use the len operator (len(curve)).
|
getPathLen()Get this Curve's path frame length, used for an animated path.
|
getResolu()Get the Curve's U-resolution value.
|
getResolv()Get the Curve's V-resolution value.
|
getRot()Get the curve's rotation value.
|
getSize()Get the curve's size value.
|
getTaperOb()Returns the Taper Object (TaperOb) assigned to the Curve.
|
getTotcol()Get the number of materials linked to the Curve.
|
getWidth()Get the Curve's width value.
|
isCyclic(curve_num)Tells whether or not a CurNurb is cyclic (closed) (deprecated). New scripts should useCurNurb.isCyclic() .
|
isNurb(curve_num)Tells type of a CurNurb (deprecated). New scripts should useCurNurb.isNurb() .
|
recalc()Recalculate control point handles after a curve has been changed.
|
setBevOb(object)Assign a Bevel Object (BevOb) to the Curve. Passing None as the object parameter removes the bevel.
|
setBevresol(bevelresol)Set the Curve's bevel resolution value.
|
setControlPoint(numcurve, numpoint, controlpoint)Set the Curve's controlpoint value. The numpoint arg is an index into the list of points and starts with 0.
|
setExt1(ext1)Set the Curve's ext1 value.
|
setExt2(ext2)Set the Curve's ext2 value.
|
setFlag(val)Set the Curve flag value. The flag corresponds to the Blender settings for 3D, Front, Back, CurvePath and CurveFollow. This parameter is a bitfield.
|
setLoc(location)Set the curve's location value.
|
setName(name)Set the name of this Curve Data object.
|
setPathLen(len)Set this Curve's path length.
|
setResolu(resolu)Set the Curve's U-resolution value. [0 - 1024] This is used for surfaces and curves.
|
setResolv(resolv)Set the Curve's V-resolution value. [0 - 1024]. This is used for surfaces only.
|
setRot(rotation)Set the Curve's rotation value.
|
setSize(size)Set the curve size value.
|
setTaperOb(object)Assign a Taper Object (TaperOb) to the Curve. Passing None as the object parameter removes the taper.
|
setTotcol(totcol)Set the number of materials linked to the Curve. Note: this method will probably be deprecated in the future.
|
setWidth(width)Set the Curve's width value.
|
switchDirection()Reverse the direction of a curve.
|
update()Updates display list for a Curve. Used after making changes to control points. You must use this if you want to see your changes!
|
Instance Variable Details |
---|
bevobThe Curve Bevel Object
|
bevresolThe Curve Data bevel resolution. [0 - 32]
|
ext1The Curve Data extent1 (for bevels).
|
ext2The Curve Data extent2 (for bevels).
|
flagThe Curve Data flag value; seegetFlag() for the semantics.
|
keyThe Key object associated with this Curve, if any.
|
locThe Curve Data location(from the center).
|
materialsThe curves's materials. Each curve can reference up to 16 materials. Empty slots in the curve's list are represented by None. Note:Object.colbits needs to be set correctly
for each object in order for these materials to be used instead of the
object's materials. Note: The list that's returned is not
linked to the original curve. curve.materials.append(material) won't do
anything. Use curve.materials += [material] instead.
|
nameThe Curve Data name.
|
pathlenThe Curve Data path length, used to set the number of frames for an animation (not the physical length).
|
resoluThe Curve Data U-resolution (used for curve and surface resolution) [0 - 1024].
|
resolvThe Curve Data V-resolution (used for surface resolution) [0 - 1024].
|
rotThe Curve Data rotation(from the center).
|
sizeThe Curve Data size(from the center).
|
taperobThe Curve Taper Object
|
totcolThe Curve Data maximal number of linked materials. Read-only.
|
widthThe Curve Data width [0 - 2].
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu May 10 20:32:00 2007 | http://epydoc.sf.net |