• 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.

MSFS→P3D v6 glTF import: flap/spoiler percent-key animations only snap to end position, not tracking continuously

Messages
70
Country
vietnam
I'm converting an MSFS Gulfstream G700 exterior model to P3D v6 using MCX [version ___], importing directly from the MSFS-native glTF.

Symptom: After assigning l_flap_percent_key / r_flap_percent_key / l_spoiler_key / r_spoiler_key in the Animation Editor and exporting to MDL, the flap and spoiler surfaces in P3D only ever show one deployed state — they don't track the flap lever detent or spoiler position, they just snap to (what looks like) the end of the animation regardless of commanded value.

What I found digging into the exported files:
- The real P3D v6 SDK modeldef.xml (...\Prepar3D v6 SDK 6.1.10.31609\modeling\3ds max\bin\modeldef.xml) correctly declares these as type="Sim" typeParam="AutoPlay" with length="100" — as expected for a percent-driven animation.
- But in the Hierarchy Editor, the actual imported animation for these parts shows Length: 4.16666665... — which is suspiciously exactly 100 ÷ 24. It looks like the glTF importer is reporting the animation's native duration in seconds at 24fps, but this value is then getting used downstream (in the exported PartInfo AnimLength and the .xanim companion file) as if it were already in frame units, truncated to 4 instead of being converted to 100 frames.
- Other tags on the same model that expect different target lengths (e.g. l_gear wanting 8) don't show the same mismatch, so this seems specific to the 100-frame percent-key convention vs. this glTF source's ~4.167s native animation length.

What I've tried, none of which affected the exported length:
1. Export options → General → "Animation scaling" (set to 24, i.e. 100/4.167) — no change in the exported .xanim/AnimLength, length stayed 4.167/4.
2. The "Length" field at the top of the per-part Animation key editor (right-click part → Edit animation) — editing this field to 100 does not rescale the actual keyframe Time values underneath; they still span 0–4.167.
3. Import options → "Animation scaling" — this option doesn't appear in the dialog for this glTF file, so I couldn't test it at import time.

Is there a supported way to get MCX to correctly convert an animation's native seconds-based length to the frame-based length expected by Sim-type percent-key animations on FSX/P3D export? Or a way to batch-rescale a specific animation's keyframe Time values (multiply all by a constant) rather than editing ~100 keys individually? Happy to attach the exported .xanim/.XML/MCX_ModelDef.xml if useful.
 
Hi,

Which version of ModelConverterX are you using? The best approach would be to scale the animations on import, because the MDL exporter does not have an animation scaling option on export. I checked in the latest development release and the glTF format does show the animation scaling option on import.
 
Back
Top