TheGecko Posted June 19, 2017 Share Posted June 19, 2017 Question about scene.getAnimatableByTarget - I'm failing to find a table for an animation I know is in scene, and the only reason I can think why it's not returning is because the animation has been loaded, but not started/stop. Does getAnimatableByTarget work on all tables, or only active ones? Many thanks. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted June 19, 2017 Share Posted June 19, 2017 https://github.com/BabylonJS/Babylon.js/blob/master/src/babylon.scene.ts#L1683 What's a "table"? Quote Link to comment Share on other sites More sharing options...
TheGecko Posted June 19, 2017 Author Share Posted June 19, 2017 3 minutes ago, JCPalmer said: https://github.com/BabylonJS/Babylon.js/blob/master/src/babylon.scene.ts#L1683 What's a "table"? An Animatable - based on the source code you've linked (which I'd already seen), it appears to maintain a list of active animations. I'm asking for confirmation that the list doesn't contain animation that haven't started. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted June 19, 2017 Share Posted June 19, 2017 Fun with terminology. TG... an animatable has nothing to do with a 'table'. It is an animate-able target/property. Now, about that other thing... good question. scene.animations? Perhaps that contains ALL scene animations, whether they have been started or not. I once knew LOTS about BJS animation system, but I forgot it all. heh There is also a scene.Animatables property. Hmm. I wonder if it REALLY uses a capital letter 'A'. TheGecko 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.