Notifications
Clear all

[Closed] OpenFlight access

Hello maxscripters,

I’m guessing most of you never had to use this, but someone might know the answer to my question. Is there any way to access OpenFlight node properties? From the OpenFlight help file (located in the additional help section of max2k9; Reference Guide –> MAXScript Access) it lists a few accessible functions of flightstudio. The only “node property” listed in there is PutComment to edit the comment box of a node. What I am trying to access specifically is the Max/Min Distance of a LOD node.

Thanks in advance for the help,

David

6 Replies

Have you tried “showProperties theNode” ?

It only returns:

  .boxsize : point3
 false

with showProperties <node> or show <node

try ‘showInterfaces <node>’ or ‘showInterface <node>’ instead. Specifically, you might try…


<node>.GetLodDistance()

The documentation states that it only returns a float, so not sure how min/max would come into play there.

Thanks for the help ZeBoxx2, but thats not it!

the showInterface doesnt work either with a LOD node. The getLodDistance() or setLodDistance are not used to set a LOD node min/max values. Those are to simulate a viewing distance into max viewport to verify what objects should be displayed at said distance. If you are unfamiliar with openflight nodes, to see their properties or to create them, you can go through the FlightStudio Browser accessed from the utility panel by clicking modify hierarchy/attributes. There you can create/edit various flt node types. You will see that a LOD node contains a min/max value that is basically meaning to display whatever child of that node if the viewing distance is in-between these values.

go fig… I guess they decided to implement that stuff a bit non-standardly. The node itself, in Max, is just a Dummy Node. They store the parameters…somewhere, but not on the base node, not in user properties, not in a custom attribute as far as I can tell, etc.

As the FlightStudio interface itself doesn’t seem to expose methods to get/set the LOD node’s data (or any other nodes’ data), you might be sol

that’s pretty much the conclusion we came to here. Well we did do a few requests for bug fix / UI upgrade / additions to the OpenFlight plugin while beta testing Max 2010. So far it seems nothing changed! Thanks for your time Ze.