Make a JS object available to other scripts

Any question about CaRMetal.
hanzo2001
Posts: 3
Joined: Fri Jun 26, 2015 12:25 pm

Make a JS object available to other scripts

Postby hanzo2001 » Sat Jun 27, 2015 1:46 am

I have a couple of buttons that need to access the same object. As of now, I have found a way to set and get script independant Number values with SetExpressionValue and GetExpressionValue. Whenever I update the object I have to copy it to the other script and this is a pain if it ever gets more complicated.

Is there a way to store an object to recall it in different scripts?

I do not want to use Load, as this will most likely require a separate file and I would like to keep it contained into one file

Return to “All about CaRMetal”

Who is online

Users browsing this forum: No registered users and 1 guest