Skip to content

GLTF import error #33

Description

@HereJy

Hello, I'm trying to import model of the pilatus pc-6 but when I try to import any gltf file of this aircraft I have this error :

  File "Path\io_msfs_gltf.py", line 754, in execute
    import_msfs_gltf(context, ImportProperties.gltf_file, self.report,
  File "Path\io_msfs_gltf.py", line 619, in import_msfs_gltf
    materials = create_materials(gltf, bl_images, report,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Path\io_msfs_gltf.py", line 396, in create_materials
    setup_mat_nodes(bl_mat, gltf_mat, textures, images,
  File "Path\io_msfs_gltf.py", line 336, in setup_mat_nodes
    p_bsdf_node = tree.nodes['Principled BSDF']
                  ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'bpy_prop_collection[key]: key "Principled BSDF" not found'

The weird thing is that it's working with some aircraft like C208 and don't with some other.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions