Talk:Nasal and the Property-tree

From FlightGear wiki
Jump to navigation Jump to search

this is great, but do note that there's a python script written by Adrian that extracts this sort of info automatically from $FG_ROOT/Nasal --Hooray (talk) 20:08, 8 February 2014 (UTC)

Yes, I remember now last spring you told me that for another page I made. But most of this info did not come from the Nasal comments, but from Doxygen, I simply could not find what all those methods did except from some scattered bits in the forums, there is no comments for most of them, so when I found the old Doxygen generated page even though it was a bit dated, I thought I would help others who would spend long time figuring out what they all did. Necolatis (talk) 06:25, 9 February 2014 (UTC)

Wrong props.Node.getNode() signature

The signature getNode(relative_path, index=0, create = false) is wrong. It seems the correct signature is similar to that of getprop().

n.getNode("a", 1, 1) does not create any node despite the last '1'.

n.getNode("a", 3, "cc") seems to be equivalent to n.getNode("a[3]/cc").

(tested with FG 2016.1.0 from 2016-01-07)