Trees | Indices | Help |
|
---|
|
object --+ | Element --+ | Stroke
A paint stroke, which may be animated.
A paint stroke is represented as a sequence of AnimControlPoint objects. You can find out how many control points there are in the stroke using python's built-in len() function; and you can access individual control points using the array-style syntax (e.g. stroke[0] returns the first control point, stroke[-1] returns the last control point, etc.).
|
|||
|
|||
|
|||
|
|||
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
None |
|
||
CubicCurve |
|
||
AnimAttributes |
|
||
bool |
|
||
AnimCTransform |
|
||
None |
|
||
None |
|
||
None |
|
||
Inherited from Inherited from |
|
|||
|
x.__delattr__('name') <==> del x.name
|
x.__getattribute__('name') <==> x.name
|
|
x.__setattr__('name', value) <==> x.name = value
|
Add a new control point to the stroke. The controlPoint parameter must be either an instance of the AnimControlPoint class, or something we can convert to an AnimControlPoint. This includes a sequence of 2, 3 or 4 floats; or a CVec2, CVec3 or CVec4 object.
|
Bake out a curve for the path of this stroke at the specified time.
|
Check whether a particular flag is set or not. The flag parameter should be one of the constants from the FlagType class. The return value will be True if the flag is set, False if it isn't.
|
Insert a new control point in the stroke before the given index. The controlPoint parameter must be either an instance of the AnimControlPoint class, or something we can convert to an AnimControlPoint. This includes a sequence of 2, 3 or 4 floats; or a CVec2, CVec3 or CVec4 object.
|
Remove the control point at the given index. If the index is out of bounds, an IndexError will be raised.
|
Set a particular flag. The flag parameter specifies which flag to set and should be one of the constants from the FlagType class. The value parameter is a boolean value; True will set the flag, False will clear it.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 5 06:16:24 2017 | http://epydoc.sourceforge.net |