Vivian Meazza wrote:
> This works:
>   setprop("controls/engines/engine/magneto-switch[0]",1);
> But this doesn't:
>   setprop("controls/engines/engine/magneto-switch[1]",1);
>
> I can work around it no problem, but I think that it should work. I
can see,
> but can't access ../magneto-switch[1] in the Browse Internal Properties
> dialog either.
>
> I think that it may be a property tree issue rather than Nasal. Any
> guidance/ideas?

I dunno, this all looks correct to me, both the Nasal and the XML
definitions.  The fact that you can't read it in the browser is
especially weird.  Maybe there's a tie or an alias that's getting in
the way?

Try binding a key to do:

  props.dump(props.globals.getNode("/controls/engines/engine"));

And see what you find.  This will crawl the specified property tree
and recursively dump all the sub-properties, with their types.

Andy


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to