jeremyc Posted October 17, 2014 Share Posted October 17, 2014 I'm new to BJS and so this question might be a no brainer for the ninjas but I can't find the answer combing through the forums and the online tutorials. I'd like to use the "BABYLON.SceneLoader.Load" but I don't know how to isolate the imported items individualy. When I use "BABYLON.SceneLoader.ImportMesh" I can just set "whatever = newMeshes[0];" and then reposition it, apply gravity... you know ...whatever you want with BJS calls. There has to be a command I can use to isolate the meshes,lights,and cameras that were imported in (preferabley by name). I just don't know the command set up and I can't find a example of someone using "SceneLoader.Load" and then changing individual items from that scene. Like I said, this is probably 101 to most here. Any help would be greatly appreciated. Thanks. Quote Link to comment Share on other sites More sharing options...
Temechon Posted October 17, 2014 Share Posted October 17, 2014 Hey, welcome ! You have these methods : scene.getLightByName, scene.getCameraByName, scene.getMeshByName Good luck Quote Link to comment Share on other sites More sharing options...
jeremyc Posted October 17, 2014 Author Share Posted October 17, 2014 Hey, welcome ! You have these methods : scene.getLightByName, scene.getCameraByName, scene.getMeshByName Good luck Your the man!!! Thanks a million. Quote Link to comment Share on other sites More sharing options...
Temechon Posted October 17, 2014 Share Posted October 17, 2014 No problem Don't forget to set your post as resolved. Cheers, Quote Link to comment Share on other sites More sharing options...
jeremyc Posted October 17, 2014 Author Share Posted October 17, 2014 Sorry, I think someone did it for me. I'll remember next time. 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.