@3dsource/metabox-modular-configurator-api
    Preparing search index...

    Type Alias MaterialCommand

    A single material command accepted inside a SetMaterials batch.

    Union of the material commands the Modular Configurator can apply — SetComponentMaterial and SetEnvironmentMaterial. Use it to type an array you build up before sending it as one batch.

    Type the array you accumulate while walking the configurationTree to resolve a preset, a saved configuration or a PIM payload, then hand the whole array to SetMaterials in one call.

    const materials: MaterialCommand[] = [] then materials.push(new SetComponentMaterial(...)). Products are addressed per component in this package, so there is no product-level material command.