๐Ÿ”น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