Skip to main content
Version: 9.0.2

gre.animation_destroy

gre.animation_destroy(id)

Destroy the animation associated with id.

Parameters

ParameterTypeDescription
id#stringThe animation to destroy

Example

function create_animation(mapargs)
local data = {}

-- slide the x position 400 pixels over 2000 ms
id = gre.animation_create(60)
data["rate"] = "linear"
data["duration"] = 2000
data["offset"] = 0
data["delta"] = 400
data["key"] = "mylayer.mycontrol.grd_x"
gre.animation_add_step(id, data)

-- destroy it
gre.animation_destroy(id)
end