in another nasal DC electrical script, I want to read the bool value once each loop, and set a program variable to match:
This variable does not need to be set in the property tree (no need to duplicate the original), it's only for saving reading the main variable several times from the electrical script.
The DC electrical script base is set to: var base = props.globals.getNode("/systems/electrical/",1); whereas the swich script base is: var base = props.globals.getNode("/controls/",1);
What's the best way to read it? I did read somewhere on the wiki that using getprop is less efficient than getValue. Any example code will help! I have been looking through other scripts but got into a mess.