An animated control point.
These are used directly by Stroke objects to store the control point
locations. Shape objects use a collection of up to 6 of them to represent
each control point (see the ShapeControlPoint class for details).
It is advisable to call changed() on the 'curves' knob after making
modifications to curves. This forces the knob to re-cache the state of
its curves.
The 'view' argument to the object's methods can be omitted and the
default view 'main' will be used.
|
|
|
|
a new object with type S, a subtype of T
|
|
|
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value |
|
|
None
|
addControlPoint(self,
controlPoint) |
|
|
None
|
addKey(self,
time,
controlPointOrDim,
view) |
|
|
None
|
addPositionKey(self,
time,
positionOrDim,
view)
Adds a new key to the control point's timeline. |
|
|
ControlPoint
|
evaluate(self,
time,
view)
Evaluates the animated control point's position at the specific time. |
|
|
list of floats
|
|
CVec3
|
getPosition(self,
time,
view)
Get the position of this control point at a particular time. |
|
|
AnimCurve
|
getPositionAnimCurve(self,
index,
view)
Returns the AnimCurve object containing the time line for the control
point. |
|
|
float
|
getPositionKeyTime(self,
index,
keyIndex,
view)
Get the time of a particular key for this control point. |
|
|
None
|
removeAllKeys(self,
view) |
|
|
None
|
removeKey(self,
time,
view) |
|
|
None
|
removePositionKey(self,
time,
view) |
|
|
None
|
reset(self)
Resets the control point back to an initial empty state. |
|
|
None
|
setPosition(self,
position,
view)
Sets the control point's 'constant' position (the position used when
there are no keys - see AnimCurve for further info). |
|
|
None
|
setPositionAnimCurve(self,
index,
animCurve,
view)
Set the point's AnimCurve object (its time line). |
|
|
None
|
setPositionKey(self,
time,
index,
value,
id,
view)
Sets an individual dimension (index) of a key to a specific value. |
|
|
Inherited from Flag :
getFlag ,
setFlag
Inherited from object :
__format__ ,
__hash__ ,
__init__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|