Make a JS object available to other scripts

Any question about CaRMetal.
Répondre
hanzo2001
Messages : 3
Enregistré le : ven. juin 26, 2015 12:25 pm

Make a JS object available to other scripts

Message par hanzo2001 »

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

Répondre