Cameron Moore wrote: > Is it possible to use nasal scripting in preferences.xml? I'm > specifically interested in using it in a <view> definition.
You can have Nasal blocks under /nasal/<module name> in the property tree like this: <nasal> <my-module> <file>Where/Ever/my-module.nas</file> </my-module> </nasal> Or you can put the source code inline inside a <script> tag. You can do the same thing with the aircraft -set.xml files. Global nasal code like this runs at the end of initialization, so you will see the property tree as it will look at the beginning of execution. Note that you will therefore *not* be able to synthesize properties to affect the initialization of other code. What exactly are you trying to do? Run a script when the view changes? Probably the best way to do that would be to have a command binding inside the <view> tag; the code in view.nas could then invoke it after the switch. Andy _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
