Vizard 8 » Command Index » Vizard objects » animationpath » <animationpath>.addControlPoint
8.0

<animationpath>.addControlPoint

Add a control point to the path

<animationpath>.addControlPoint(  
time  
point = None  
autoRemove = True  
pos = None  
quat = None  
euler = None  
axisAngle = None  
scale = None  
)  
time
The time to insert the control point at
point = None
A <controlpoint> object, or None to create a control point using the specified initial values
autoRemove = True
If True, the <controlpoint> object will be automatically deleted when the path is deleted
pos = None
Position of new control point, if point is None
quat = None
Quaternion rotation of new control point, if point is None
euler = None
Euler rotation of new control point, if point is None
axisAngle = None
Axis-Angle rotation of new control point, if point is None
scale = None
Scale of new control point, if point is None

Remarks

This will add a control point to the animation path at the specified control time. When a control point is added, Vizard will automatically sort the control points by their control time.

Return Value

<controlpoint> object

Example

path = viz.addAnimationPath()

#Create a control point at 2 seconds with position (0,1,0)
cp = path.addControlPoint(2,pos=[0,1,0])

See also

<animationpath>.getControlPoint
<animationpath>.getControlPointCount
<animationpath>.getControlPointTime
<animationpath>.iterControlPoints
<animationpath>.clearControlPoints
<animationpath>.removeControlPoint