We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Material Params via maxscript

Home Forums Graphics / 3ds Max Material Params via maxscript

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #51642
    jamjam
    Customer

    Hey,

    I use the “export to USDZ” puzzle to export my model for iOS.
    The object will not show up unless “gltf 2.0 compatible” is checked in the material params for each material.

    Can we access this settings with maxscript so we can change it easily for each material?

    Also is it possible to add the Material Params to an existing material?

    Thanks and best,
    Gerald

    #51680

    Hi,

    Please use the following script for that:

    for mat in sceneMaterials do (
        if classOf mat == PhysicalMaterial do (
            mat.v3dMaterialData.gltfCompat = true
        )
    )

    To assign material params, you can temporary enable the “Auto-Assign Material Params” option, make some minor tweak with material (such as selection), then disable the option if you don’t need it anymore.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #51694
    jamjam
    Customer

    Thanks, that´s super handy.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.