Blender exporting sim attachments

Does anyone know what the correct setup is for exporting, for example, your nose gear as a separate model so it can be used as a sim attachment in your plane with multiple LODs? I added an empty for the attach point in the exterior model (child of the fuselage which has it’s origin at 0,0,0) and an empty as the parent of all the gear models and the armature. These have their world position in the same location.

But when I export both models I do get the gear to show up, but I would have to offset the attachment by the reverse of the attach points position to get it to line up correctly. Incidentally setting the “Reset Node Origin” option under “Export process” in the exporter while exporting the gear would make it appear in the correct position, but having to remember to toggle that based on what I’m exporting seems wrong.

I tried to see how the DA62 SDK model does it, but it has it’s own problems. Firstly, pressing the “Edit layers” button to see what a preset exports just gives an error shown below.

image

Error: Python: Traceback (most recent call last):
File “C:\Username\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\io_scene_gltf2_msfs_2024\io\exp\msfs_multi_export_presets.py”, line 256, in invoke
MSFS2024_OT_EditLayers.load_layers(preset)
File “C:\Username\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\io_scene_gltf2_msfs_2024\io\exp\msfs_multi_export_presets.py”, line 239, in load_layers
elif MSFS2024_OT_EditLayers.has_layer_enabled(preset, layer):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Username\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\io_scene_gltf2_msfs_2024\io\exp\msfs_multi_export_presets.py”, line 223, in has_layer_enabled
for child in layer.collection.children:
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘children’

Exporting let’s say the pre-existing PART_Gear_F > Gear_LOD00 preset and adding that as the attachment into my plane does make it appear in the correct position. So it is set up correctly in the SDK model, I just can’t see what they’re exporting for the preset. Then if I create my own preset for exporting the nose gear model and add that as the attachment, it’s once again in the incorrect position.

your model export path appears to be the same

each attachment should have its own Function and Part folders

This is exactly what you should be doing. The bit you are missing is that you can make different export settings, so you don’t need to remember to change them for each part. So “Reset Node Origin” is ticked for things you are attaching to attach points. Unticked if you aren’t using attachpoints.


No, unfortunately that’s not it. The image below shows the official DA62 SDK model’s nose gear LOD export setup. All to the same folder and all working (just can’t see which collections they affect).

Interesting. Your exporter looks different to mine. I don’t seem to have any buttons to save export settings for the groups/presets. Have you installed yours from outside the SDK? What Blender version are you using?

I installed the exporter from the SDK’s Tools/Blender folder and I have these addons now that relate to this issue

That’s from Blender 4.2 (the DA62 SDK model seems to be saved from that so I used it for it). I have the same two installed in Blender 3.6 which according to the docs is the last supported one and which I use currently for my plane, although the “glTF 2.0 format” version is a little lower. But no export settings to save for preset in either.

Your version is a long way behind, install latest from the SDK. Blender 3.6.23

1 Like

Yep, that was it. I think what happened was that at some point I zipped the folder to install it to Blender and then didn’t realise that installing a new SDK doesn’t clean the folders so I was installing “the latest” exporter from the stale .zip file. After actually installing the latest exporter from the SDK I both see the saveable preset settings and the DA62 SDK model shows correctly. Thanks so much!