# How to set Material Binding to None?

**URL:** <https://forum.aousd.org/t/how-to-set-material-binding-to-none/2045>\
**Category:** USD\
**Tags:** beginner\
**Created:** [December 3, 2024, 8:50am UTC](https://forum.aousd.org/t/how-to-set-material-binding-to-none/2045 "2024-12-03T08:50:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahren](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@ahren](https://forum.aousd.org/u/ahren)\
**Post date:** [December 3, 2024, 8:50am UTC](https://forum.aousd.org/t/how-to-set-material-binding-to-none/2045/1 "2024-12-03T08:50:53Z")

</div>

Hi there

```auto
def Xform "Root"
{
    def Capsule "Capsule" (
        active = true
        prepend apiSchemas = ["MaterialBindingAPI"]
    )
    {
        uniform token axis = "Y"
        double height = 0.2
        rel material:binding = None (
            bindMaterialAs = "weakerThanDescendants"
        )
        double radius = 0.1
    }
}

```

 ![image](https://us1.discourse-cdn.com/flex016/uploads/aousd/original/1X/032139fa7c8b6a28381dccf35458751fede1bb1f.png)  
I checked the corresponding API and found no method to set it to None. [ClearTargets](https://openusd.org/release/api/class_usd_relationship.html#aa64565132ed712f506231b7b1cd7df48) also does not work.

Thanks！

---

<div class="post-metadata">

**Author:** ![ahren](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@ahren](https://forum.aousd.org/u/ahren)\
**Post date:** [December 3, 2024, 8:59am UTC](https://forum.aousd.org/t/how-to-set-material-binding-to-none/2045/2 "2024-12-03T08:59:50Z")

</div>

Thanks everyone, I found a way!

```auto
  auto directRel = bindingApi.GetDirectBindingRel();
  bound = directRel.SetTargets({});

```

---

<div class="post-metadata">

**Author:** ![nvmkuruc](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nvmkuruc](https://forum.aousd.org/u/nvmkuruc)\
**Post date:** [December 3, 2024, 1:47pm UTC](https://forum.aousd.org/t/how-to-set-material-binding-to-none/2045/3 "2024-12-03T13:47:28Z")

</div>

There are a handful of `Unbind` methods you might want to consider as well.

[Universal Scene Description: UsdShadeMaterialBindingAPI Class Reference](https://openusd.org/dev/api/class_usd_shade_material_binding_a_p_i.html#a4aabc2a3c5aa77bb0e68e15856351026)

---

<div class="post-metadata">

**Author:** ![badger](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@badger](https://forum.aousd.org/u/badger)\
**Post date:** [March 15, 2025, 3:04pm UTC](https://forum.aousd.org/t/how-to-set-material-binding-to-none/2045/4 "2025-03-15T15:04:27Z")

</div>

When I do this, I get the following:

```auto
custom rel material:binding = None (
            bindMaterialAs = "weakerThanDescendants"
        )

```

How did you get rid of the custom tag?

---

<div class="post-metadata">

**Author:** ![spiff](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.aousd.org/spiff/32/22_2.png) [@spiff](https://forum.aousd.org/u/spiff)\
**Post date:** [March 18, 2025, 12:03am UTC](https://forum.aousd.org/t/how-to-set-material-binding-to-none/2045/5 "2025-03-18T00:03:02Z")

</div>

Unless it’s causing your CI/testing problems, I wouldn’t worry about the `custom` tag - it is not meaningful to USD’s core, nor should clients be ascribing anyything to it (it’s something that came along with the underpinnings that USD inherited from Presto; we facilitate encoding “custom user properties” using the “userProperties:” property namespace… albeit that is not well-documented).

---

<div class="post-metadata">

**Author:** ![badger](https://avatars.discourse-cdn.com/v4/letter/b/3bc359/32.png) [@badger](https://forum.aousd.org/u/badger)\
**Post date:** [March 20, 2025, 5:28pm UTC](https://forum.aousd.org/t/how-to-set-material-binding-to-none/2045/6 "2025-03-20T17:28:42Z")

</div>

Thanks for the explanation! It doesn’t appear to cause problems; I just thought maybe I was doing something wrong.
