* itaf telecom -- Monday 16 March 2009:
> I would like to know how to add an animation  to an AI via nasal
> I tried  to load it from it's xml but it doesn't work.

This would be easier to answer if you explained more about what
exactly you are trying. You can:

- use XML embedded Nasal to add animations or to modify existing
  animation definitions. But this works at model load time only!
  (There's no example for this in CVS, AFAIK, but an analogue
  technique is used in some gui dialogs, where buttons are created
  dynamically at load time. (Search for "button-template" in
  $FG_ROOT/gui/dialogs/nasal-console.xml). I don't think that's
  what you are after.

- use XML embedded Nasal to drive properties that are used in
  animations. Example: the hangar in KNUQ where mouse-clicking
  the big doors opens/closes them (Ctrl-c to highlight them):
  $FG_ROOT/Scenery/Objects/w130n30/w123n37/moffett_hangar1.xml

- let the model manager load a model and modify its position,
  orientation, control surfaces etc. via nasal. Example:
  $FG_ROOT/Nasal/tanker.nas  (in CVS since yesterday)

More info after *you* gave move info.  :-)

m.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to