Melchior FRANZ wrote: > * Dene -- 9/28/2006 10:37 AM: > > how do you handle xml variations on existing models? ...eg I have > lighthouses > > specific to Wellington harbour that have different "flash" cadences, > the .ac > > model is the same, the cadence is handled in the xml file? > > You can embed Nasal code in OBJECT_STATIC models. Just add a > <nasal><load>...</load><unload>...</unload></nasal> structure to > the xml file. The two branches are triggered on load/unload, but note that > models are unloaded quite late (e.g. an object in KSFO is unloaded after > you have passed KMRY!, which is quite a distance). You can start a > loop in the <load> part, and stop it in the <unload> part. (Yes, you have > to do that explicitly, or the loop keeps running.) Look at some dialogs > in $FG_ROOT/gui/dialogs/, if you aren't familiar with Nasal embedding. > There's no example in CVS for static objects doing that. > > m. > > Hi 'cuse my ignorance of the function or the need for nasal code... is there problem with using separate XML file referencing the same ac file? Dene
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Flightgear-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-users
