mwpowellhtx Posted April 1, 2016 Share Posted April 1, 2016 Hello, I've got a peculiar thing. I want to capture the instances in such a way that once I've left my create scene handlers, I can return to my model calculators (i.e. scene hosts). User will engage with some form fields, during which time, I want to look up the related model calculators and make changes, potentially rebuild the scene based on the input. I've tried something like this, but it falls over on account of the scene object, deep within which is circular I think; somewhere is, at any rate. Point is, jumping to/from JSON is not going to work very well for purposes of what I am doing. <script type="application/json" id="data"> {"calc1": null, "calc2": null, "calc3": null} </script> Perhaps I will need to completely decouple the calculator configuration from the scene modeling bits, that's probably the right longer range answer. But I want to see if I can make it work without jumping to/from JSON first. Partly, too, is my ignorance concerning JavaScript object life cycle of variables throughout the scripts, i.e. if they survive the load and can be referenced at a later point. Regards, Michael Powell Quote Link to comment Share on other sites More sharing options...
mwpowellhtx Posted April 1, 2016 Author Share Posted April 1, 2016 Along similar lines, is it possible to lookup models in the scene by their id? i.e. jQuery style? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 1, 2016 Share Posted April 1, 2016 what's a "model" or a "calculator"? Think you are going to need to BJS terminology. Not an expert on JSON. Do not know anything about jumping between them. Quote Link to comment Share on other sites More sharing options...
mwpowellhtx Posted April 1, 2016 Author Share Posted April 1, 2016 @JCPalmer Well, it's not a mesh, per se, but it does accept some parameters and performs some calculations; i.e. model/calculator is the name for the pattern. I do call a build function that I use to generate my meshes, however. Focusing my question a bit, can I jQuery for mesh items, like by their names? If I can do that, then I could potentially completely decouple calculators, and store the calculation config as JSON, then interface with the scenery meshes later during the page life time. Thank you... Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted April 2, 2016 Share Posted April 2, 2016 You will be very interests in my secret project being released soon. If you want to start a private convo with me I think we could discuss some of theses ideas 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.