• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSXA G-max and vis animation code

Messages
520
Country
australia
Hi
No Im not building in G-max but I am doing gauges for a g-max project.....What are the rules in g-max for combined vis and animation code eg
Code:
<PartInfo>
<Name>droptankAnim</Name>
<AnimLength>100</AnimLength>
<Visibility>
<Parameter>
<Code>(L:TANK_DROP, keyframe) 90 &lt; if{ 1 } els{ 0 } </Code>
</Parameter>
</Visibility>
<Animation>
<Parameter>
<Code>(L:TANK_DROP, keyframe)</Code>
<Lag>40</Lag>
</Parameter>
</Animation>
</PartInfo>
this works fine in fsds but when used for a part in g-max the part remains visible ??????
thanks
Wozza
 
The <Visibility> part of the script must be assigned to your object via an Attachpoint, Wozza.

The <Animation> part of the script is assigned via the Animation Manager.
 
Hi Bill
Yet again thanks :)
I pass the info on ....makes me wonder though why the code syntax/structure above is in the modeldef file if it wont work in g-max :)
Wozza
 
Hi Bill
Yet again thanks :)
I pass the info on ....makes me wonder though why the code syntax/structure above is in the modeldef file if it wont work in g-max :)
Wozza

??? I does work in GMax, and Max, and even FSDS! :confused:

I would suggest sticking with "enum" or "number" for the units though instead of "keyframe..."
 
??? I does work in GMax, and Max, and even FSDS! :confused:

I would suggest sticking with "enum" or "number" for the units though instead of "keyframe..."
Hi Bill
I have no, nada, nothing, diddly squat of an idea about g-max :) so what happens in g-max stays in g-max :D
I just need to know the terminology so I can debug xml code thats going into a g-max project..on the other side of the world without the benefit of my needed trial and error in model ;)

Im using Kframe as Ive worked out a way to stop an animated L:var part from shooting off/jumping directly to max when toggled....kframe is just a flag so I can see at a glance what the code is suppose to do, I suppose number or enum will work just as well. Just makes it easier to remember what the code is suppose to do(I forget stuff quickly these days), when you have 80 to 100 xml gauges to do and need to remember whats what and sync with the designer :)
...it would take centuries for the boffins to explain/work out how my brain works....one mans madness is another's sanity :D:D:D
Wozza
 
Last edited:
<Lag>400</Lag> usually cures the "zooming off to max position when toggled" for me... :cool:
 
Back
Top