animcurve_destroy

This function destroy an animation curve previously created with the function animcurve_create().

Calling this function will remove the animation curve from memory and clean up any channels or points that it contains as well (these never need to be cleaned up manually). Note that you cannot destroy any animation curves created in the asset browser, only those created at runtime.

 

Syntax:

animcurve_destroy(curve_struct);

ArgumentTypeDescription
curve_structAnimation Curve StructThe pointer to the curve struct to destroy.

 

Returns:

N/A

 

Example:

animcurve_destroy(my_curve);

The above code will destroy the (previously created) animation curve struct indexed in the variable "my_curve".