Andy Ross advised

> Sent: 17 June 2004 19:32
> To: FlightGear developers discussions
> Subject: Re: [Flightgear-devel] Nasal - Question
> 
> 
> 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.
> 

Done that - all looks as it should. ../magneto-switch[1]is not set here
either. However, a new fact that I hadn't noticed before, is that when
accessing ../magneto-switch[1] through the Browse Internal> Properties
dialog it sets ../magneto-switch[0].

Weird or what? 

Vivian




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

Reply via email to