Skip to content

Prevent Capsule added "custom properties" from exporting into gltf extras #46

@Ali-RS

Description

@Ali-RS

Hi

When I export an object with Capsule addon to a Gltf file with "custom properties" I see there are other unrelated properties are also exported that seem to be added by this addon.

Here is an example gltf:

(Notice the CAPScn, CAPStatus, CAPProxy, and CAPObj)

    "scenes" : [
        {
            "extras" : {
                "CAPScn" : {
                    "object_list" : [
                        {
                            "object" : {
                                "name" : "Cube",
                                "type" : "Object"
                            },
                            "enable_export" : 1
                        }
                    ],
                    "selection_switch" : 0
                },
                "CAPProxy" : {
                    "disable_updates" : 0,
                    "obj_enable_export" : 1,
                    "obj_origin_point" : 0,
                    "obj_location_preset" : 1,
                    "obj_export_preset" : 2,
                    "obj_pack_script" : null,
                    "col_enable_export" : 0,
                    "col_origin_point" : 0,
                    "col_root_object" : null,
                    "col_child_export_option" : 0,
                    "col_location_preset" : 0,
                    "col_export_preset" : 0,
                    "col_pack_script" : null
                },
                "CAPStatus" : {
                    "target_name" : "",
                    "target_status" : 0,
                    "target_input" : [],
                    "target_output" : []
                }
            },
            "name" : "Scene",
            "nodes" : [
                0
            ]
        }
    ],
"nodes" : [
        {
            "extras" : {
                "prop" : "test",
                "CAPObj" : {
                    "pack_script" : {},
                    "enable_edit" : 1,
                    "enable_export" : 1,
                    "in_export_list" : 1,
                    "export_preset" : 2,
                    "location_preset" : 1
                }
            },
            "mesh" : 0,
            "name" : "Cube"
        }
    ],

How can I prevent Capsule properties (CAPScn, CAPStatus, CAPProxy, CAPObj,...) from exporting?

Regards

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions