Frame Animation Speed
Frame Speed / Timeline
info
Setting the frame speed to {1: 1, 2: 2, 3: 4}
allocates 1 second for frame 1->2 transition, 2 seconds for frame 2->3 transition and 4 seconds for frame 3->1 transition
The duration it takes to transition to the next frame and how long the animation takes depend on the frameSpeed.
- Global Config Generator
- Config
new GlobalConfigGenerator()
.withFrameSpeed(1, 1)
.withFrameSpeed(2, 2)
.withFrameSpeed(3, 4)
config.frameSpeed = {1: 1, 2: 2, 3: 4}
caution
If any prop contains data for more than specified frames in the frameSpeed global config.
Their animation speeds will depend on the global defaultFrameSpeed property.
Default frame speed
By default, the defaultFrameSpeed is set to last 1 second (i.e., config.defaultFrameSpeed = 1
):
The following scene is generated using the same frameSpeed: {1: 1, 2: 2, 3: 4}
but all props contain data for 6 frames.
Check the frame duration 3->4, 4->5, 5->6
:
Change default frame speed
You can change the default frame speed (check the frame duration 3->4, 4->5, 5->6
):
- Global Config Generator
- Config
new GlobalConfigGenerator()
.withFrameSpeed(1, 1)
.withFrameSpeed(2, 2)
.withFrameSpeed(3, 4)
.defaultFrameSpeed(5)
config.frameSpeed = {1: 1, 2: 2, 3: 4}
config.defaultFrameSpeed = 5