evCreate API 5.7 Help

AddRotateEffect Function

Animates given parts with a given rotation effect during an active 3D animation editing session.

AddRotateEffect( parts: [[[EvItem|canvas-envision-document-items.html#part-items]]][], effect: [[[EvAnimationRotateEffect|evanimationrotateeffect-interface.html]]] ): Promise<void>

Parameters

parts: EvItem[]

An array of Part item objects, one or more part items of a 3D model currently edited in an active 3D animation editing session that should be animated with the given rotation effect.

effect: EvAnimationRotateEffect

An EvAnimationRotateEffect object, given settings of a rotation effect that should be applied to the given part items during the active 3D animation editing session.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the given parts have been successfully animated with the given rotation effect during the active 3D animation editing session.

Discussion

The function will throw an error if the 3D animation editing mode has not been activated.

28 April 2025