Animation Engine

How can I get the animation code example at the address below:

Hi,

some of the examples in the video are using models we unfortunately can’t share. Can you let me know which of the examples you are particularly interested in?

Attached is a complex sample animation (in JSON format) that can be used with the microengine model that is available in the package. To use it load microengine and add the code below.

Hope this helps,
Guido

let anims = Communicator.Animation.importAnimations(thejsonsbelow);
let player = hwv.animationManager.createPlayer(anims[0])
player.play()

microengine_animation.json (64.8 KB)

1 Like

How to maintain a dot rotation animation, such as the yellow part, rotate based on the center point. Please provide a sample program.

Hi,

what you need to do is specify a pivot point alongside the rotation animation to define the local center of the animation. You can find sample code on how to set a pivot point in the documentation:

https://docs.techsoft3d.com/communicator/latest/build/prog_guide/viewing/animation.html#toc_rotation_animation

Thanks,
Guido

1 Like