Difference between revisions of "Shape"
Jump to navigation
Jump to search
Line 46: | Line 46: | ||
|evalPath(frame) | |evalPath(frame) | ||
|interpolate and return a [[ShapePath|path]] at the desired frame | |interpolate and return a [[ShapePath|path]] at the desired frame | ||
+ | |- | ||
+ | |isPointSelected(index) | ||
+ | |return True if the control point index is selected | ||
+ | |- | ||
+ | |selectAllPoints(state=True) | ||
+ | |select (or deselect) all of the control points | ||
+ | |- | ||
+ | |selectedPoints() | ||
+ | |return a List of selected control point indexes | ||
+ | |- | ||
+ | |selectPoint(index, state=True) | ||
+ | |select (or deselect) the control point at index | ||
+ | |- | ||
+ | |selectPoints(indexes, state=True) | ||
+ | |select (or deselect) the List of control point at indexes | ||
|- | |- | ||
|setPath(path, frame) | |setPath(path, frame) |
Revision as of 16:29, 3 December 2012
The Shape object represents a Bézier, B-Spline, or X-Spline shape that can animate over time.
Base Class: StereoscopicObject
Contents
Attributes
Attributes are read-only unless noted.
Name | Description |
---|---|
blendMode | the blend mode |
blurType | the blur type |
closed | True if the shape is closed |
inverted | True if the shape alpha should be inverted |
path | the path property (same as shape.property('path') or shape['path']) |
range | the shape's t-range as a tuple (start, end) |
shapeType | the shape type |
Methods
Name | Description |
---|---|
createPath() | create and return a new empty path - set with setPath() |
createPath(frame) | create and return a new empty path and set a key at frame |
evalPath(frame) | interpolate and return a path at the desired frame |
isPointSelected(index) | return True if the control point index is selected |
selectAllPoints(state=True) | select (or deselect) all of the control points |
selectedPoints() | return a List of selected control point indexes |
selectPoint(index, state=True) | select (or deselect) the control point at index |
selectPoints(indexes, state=True) | select (or deselect) the List of control point at indexes |
setPath(path, frame) | set the path as a keyframe at frame |
Constants
Shape Type
Name | Description |
---|---|
Bezier | a Bézier shape |
Bspline | a B-Spline shape |
Xspline | an X-Spline shape |