Quick PyAPI patch:

Now it is possible to clean IPO-curves using the call:
icu.clean()
There's an optional value to specify the threshold to use for cleaning. 

This just wraps the internal clean_ipo_curve() function.
This commit is contained in:
2008-10-11 12:17:16 +00:00
parent d35178ee61
commit f691752a34
2 changed files with 38 additions and 0 deletions

View File

@@ -216,6 +216,17 @@ class IpoCurve:
@return: the points of the Ipo curve.
"""
def clean( thresh=0.0000001 ):
"""
Calls the IPO-curve cleaning function on this IpoCurve.
There is no need to recalculate curve manually.
@type thresh: float
@param thresh: The threshold to used to determine if two values are identical.
By default, the IPO-editor tool's value is used.
@rtype: None
@return: None
"""
def evaluate( time ):
"""
Compute the value of the Ipo curve at a particular time (B{deprecated}).