Automated summary
Explains and performs binding of an existing material to a prim through the USD `material:binding` relationship, in Python or C, using the ovrtx runtime APIs.
Strengths
- States precisely which API applies per language: `write_array_attribute()` in Python and `ovrtx_set_path_attributes()` in C.
- Reinforces the key prerequisite that the material prim must already exist in the stage before binding.
- Keeps material binding clearly separate from sensor label authoring, which it delegates to the `nonvisual-materials` skill.
- Requires reading the referenced source snippets before producing API code and running the owning docs test after changes.
Limitations
- The code snippets themselves are not included; they point at test files in a private ovrtx repo and are unusable outside that checkout.
- It covers only the binding step, not creating a material or editing its shader graph.
- The NVIDIA proprietary license restricts reuse and redistribution.
Use it when a material must be assigned to, swapped on, or changed for one or more geometry prims, whether in Python, C/C++, or static USD content.
Skip it when the task is creating a material, editing shader networks, or authoring sensor-facing material metadata rather than binding.
Security analysis
SafeThe skill only uses Read and Grep tools, has no scripts, and instructs writing standard USD material binding relationships. It contains no destructive, exfiltrating, or obfuscated actions.
No concerns found
How this analysis is madeExamples
Write the Python code to bind the material at /World/Looks/Steel to /World/Geom/Frame at runtime using the renderer API.How do I swap the current material on /World/Geom/Robot_Arm for /World/Looks/Aluminum without rebuilding the stage?Show me the C equivalent of assigning a material path to a prim with ovrtx_set_path_attributes.SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: LicenseRef-NvidiaProprietary
NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
property and proprietary rights in and to this material, related
documentation and any modifications thereto. Any use, reproduction,
disclosure or distribution of this material and related documentation
without an express license agreement from NVIDIA CORPORATION or
its affiliates is strictly prohibited.
name: binding-materials description: > Binding materials to prims at runtime. Use when user asks to assign a material, change a material, set material binding, or swap materials on a prim. license: LicenseRef-NvidiaProprietary version: "0.3.0" author: NVIDIA ovrtx tags:
- ovrtx
- materials
- bindings tools:
- Read
- Grep
Binding Materials
When to Use
Use this skill when the user asks to assign a material, change a material, set material binding, or swap materials on a prim.
Inputs
Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.
- Target API surface: Python, C/C++, USD, or a combination.
- Geometry prim path or paths that should receive the material binding.
- Existing material prim path, relationship write timing, and whether the workflow is static USD or runtime API code.
- Whether the material is visual-only, sensor-facing nonvisual metadata, or both.
- Repository source snippets referenced below. Treat these snippets as the API source of truth.
Prerequisites
- Use an ovrtx checkout that contains the referenced examples and docs tests.
- Read the relevant
> **Source:**snippet before writing or explaining API usage. - Confirm that the target material prim already exists in the stage or loaded USD content.
- Use
nonvisual-materialsfor authoring sensor-facing base material/coating labels; this skill only covers binding a material prim to geometry.
Instructions
- Identify the geometry prims, target material prim, target language, and whether the bind happens in USD or through runtime APIs.
- Read the matching Python or C/C++ source snippet before writing API usage.
- Write the standard USD
material:bindingrelationship on the geometry prim, using path-array helpers where required. - Keep material binding separate from sensor label authoring; combine with
nonvisual-materialsonly when the request includes sensor material semantics. - When changing code, run the narrow docs test or example that owns the snippet whenever practical.
Output Format
- For explanations, cite the relevant API names, source snippets, and caveats.
- For code changes, summarize the files changed, snippets affected, and validation run.
Scripts
This skill has no scripts.
Limitations
- The referenced snippets remain the source of truth; update or add tested snippets before documenting new API usage.
Overview
To change which material is applied to a prim at runtime, write the material:binding attribute as a path string pointing to the target material prim. In USD, material:binding is a relationship (array of paths), so use write_array_attribute() in Python or ovrtx_set_path_attributes() in C.
The material prim must already exist in the stage (e.g., loaded from USD). You write the absolute prim path of the material to the geometry prim that should receive it.
Python
Bind a material to a prim
Source:
tests/docs/python/test_base.pysnippetdoc-bind-material
C
Bind a material to a prim
Source:
tests/docs/c/test_base.cppsnippetdoc-bind-material-c
Key Types / Functions
| Python | C |
|--------|---|
| renderer.write_array_attribute(prim_paths, "material:binding", [["/path/to/material"]]) | ovrtx_set_path_attributes(renderer, &prim_path, 1, "material:binding", &material_path) |
Troubleshooting
- The attribute name is
material:binding(with a colon), matching the standard USD relationship name. - In Python, pass a
list[list[str]]for thetensorsparameter -- one list of path strings per prim. The string list format is auto-detected as path/relationship data. - The path must be an absolute prim path to a material that exists in the stage (e.g.,
"/World/Looks/MyMaterial"). - Write the binding to the geometry prim (the mesh or Xform), not to the material prim.
- In C, use the
ovrtx_set_path_attributes()convenience helper from<ovrtx/ovrtx_attributes.h>-- it handles wrapping the path into the required single-element relationship array.
References
- Use the
> **Source:**directives in this skill to locate tested snippets before reusing API patterns. - Keep related skills, docs, and snippets synchronized when changing the workflow.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/binding-materials-to-prims-mrwakcv7' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/binding-materials-to-prims-mrwakcv7/download' --output '.skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md.part' && mv '.skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md.part' '.skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Original excerpt: Prerequisites
- Use an ovrtx checkout that contains the referenced examples and docs tests.
- Read the relevant
> **Source:**snippet before writing or explaining API usage. - Confirm that the target material prim already exists in the stage or loaded USD content.
- Use
nonvisual-materialsfor authoring sensor-facing base material/coating labels; this skill only covers binding a material prim to geometry.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md' && test -s '.skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/binding-materials' && cp -R '.skill-downloads/binding-materials-to-prims-mrwakcv7' '.claude/skills/binding-materials'Cursor
test -f '.skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md' && test -s '.skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/binding-materials' && cp -R '.skill-downloads/binding-materials-to-prims-mrwakcv7' '.cursor/skills/binding-materials'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/binding-materials-to-prims-mrwakcv7'openskills read 'binding-materials-to-prims-mrwakcv7'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.