🔹Add Animation Block to the Scene

addAnimationBlock:

refId

objId of the object

optional(for camera)

string

type

type of animation

required

"rotate" | "focus" | "scale" | "pan" | "zoom" | "stretch" | "fade"

panDirection

default: ‘Left’ (for type=’pan’)

optional

‘L-R’ | ‘R-L’ | ‘T-B’ | ‘B-T’

zoomScale

default: 100 (for type=’zoom’)

optional

number

rotationAxis

default: ‘X’ (for type='rotate')

optional

‘X’ | ‘Y’ | ‘Z’

noofRotations

default: 1 (for type='rotate')

optional

number

focusDirection

default: ‘Left’ (for type=’focus’)

optional

‘Left’ | ‘Right’ | ‘Top’ | ‘Bottom’

scaleType

default: ‘SCALE_UP’ (for type=’scale’)

optional

‘SCALE_UP’ | ‘SCALE_DOWN’

zoomScale

default: 100 (for type=’scale’)

optional

number

stretchDirection

default: ‘Horizontal’ (for type=’stretch’)

optional

‘Horizontal’ | ‘Vertical’

fadeType

default: 1 (for type=’fade’)

optional

‘FADE_IN' | ‘FADE_OUT’

Last updated