Skip to content

hi, does iTwin.js now support element motion animation? #372

Answered by pmconne
shenshengyi asked this question in Q&A
Discussion options

You must be logged in to vote

A DisplayStyle can have an associated schedule script. The script can apply rigid body transforms to groups of elements along a timeline. I think @Ellord207 has plans to add an example to our sample showcase in the near future.
However, this feature is designed to animate the model based on its construction timeline - not for dynamically animating individual elements.
If you are feeling adventurous, you could try writing a Decorator that uses the very new requestElementGraphics API to obtain graphics for your door and display them with the appropriate transform while hiding the original door graphics using symbology overrides

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shenshengyi
Comment options

Answer selected by shenshengyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants