| Home | Trees | Index | Help |
|
|---|
| Module Curve :: Class Curve |
|
| Method Summary | |
|---|---|
| CurNurb |
add a new curve to this Curve. |
| PyNone |
Add a new control point to the indicated curve (deprecated). |
| Blender Object or PyNone |
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 length. |
| 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 PyNone |
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). |
| PyNone |
Assign a Bevel Object (BevOb) to the Curve. |
| PyNone |
Set the Curve's bevel resolution value. |
| PyNone |
Set the Curve's controlpoint value. |
| PyNone |
Set the Curve's ext1 value. |
| PyNone |
Set the Curve's ext2 value. |
| PyNone |
Set the Curve flag value. |
| PyNone |
Set the curve's location value. |
| PyNone |
Set the name of this Curve Data object. |
| PyNone |
Set this Curve's path length. |
| PyNone |
Set the Curve's U-resolution value. |
| PyNone |
Set the Curve's V-resolution value. |
| PyNone |
Set the Curve's rotation value. |
| PyNone |
Set the curve size value. |
| PyNone |
Assign a Taper Object (TaperOb) to the Curve. |
| PyNone |
Set the number of materials linked to the Curve. |
| PyNone |
Set the Curve's width value. |
| PyNone |
Updates display list for a Curve. |
| Instance Variable Summary | |
|---|---|
Blender Object or PyNone |
bevob: The Curve Bevel Object |
| float | bevresol: The Curve Data bevel resolution. |
| float | ext1: The Curve Data extent 1(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). |
| string | name: The Curve Data name. |
| int | pathlen: The Curve Data path length. |
| float | resolu: The Curve Data U-resolution. |
| float | resolv: The Curve Data V-resolution. |
| list of 3 floats | rot: The Curve Data rotation(from the center). |
| list of 3 floats | size: The Curve Data size(from the center). |
| int | totcol: The Curve Data maximal number of linked materials. |
| float | width: The Curve Data width. |
| Method Details |
|---|
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 length.
|
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().
|
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.
|
setResolv(resolv)Set the Curve's V-resolution value.
|
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.
|
setWidth(width)Set the Curve's width value.
|
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.
|
ext1The Curve Data extent 1(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).
|
nameThe Curve Data name.
|
pathlenThe Curve Data path length.
|
resoluThe Curve Data U-resolution.
|
resolvThe Curve Data V-resolution.
|
rotThe Curve Data rotation(from the center).
|
sizeThe Curve Data size(from the center).
|
totcolThe Curve Data maximal number of linked materials.
|
widthThe Curve Data width.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Jan 26 09:17:43 2006 | http://epydoc.sf.net |