Control 3d three.js element animation state with javascript

Hello everyone,

I was wondering if it is possible to hook into the three.js instance created by the bricksforge 3d element with javascript and play/pause the 3d object animation? I never used three.js btw

Hope someone can help and thanks in advance!
regards,
Jonathan

Yes you can :slight_smile: about to head out but maybe some of the things in here might help → Can we somehow access a ThreeJs instance? - #2 by Daniele

mainly bricksforgeData.models to access the instances and the need to add a timeout to your js to make sure the instances exist once you execute your code. I’d be happy to try n help more once you’ve got your base setup :slight_smile:

1 Like

wonderful! Thanks for the super quick reply :slight_smile: