Animator¶
The animator allows to get or set any field value in the Item hierarchy of the scene.
Reference¶
- animator.get(key)¶
Get a value from the animator
- Parameters:
key (
str
)
- animator.set(key, value)¶
Set a value to the animator
- Parameters:
key (
str
)value (
any
)
Examples¶
Setting values in the animator¶
local Animator = require 'engine/animator'
Animator.set("PostFX.FilmGrainNoiseIntensity", 0.2)
Animator.set("PostFX.BloomStrength", 0.7)
Getting values from the animator¶
local Animator = require 'engine/animator'
local noiseIntensity = Animator.get("PostFX.FilmGrainNoiseIntensity")
local bloomStrength = Animator.get("PostFX.BloomStrength")