Synthèse automatique
Explique et applique la liaison d'un matériau existant à un prim via la relation USD `material:binding`, en Python ou en C, avec les API d'exécution d'ovrtx.
Points forts
- Indique explicitement l'API à utiliser selon le langage : `write_array_attribute()` en Python, `ovrtx_set_path_attributes()` en C.
- Rappelle le prérequis essentiel : le prim de matériau doit déjà exister dans le stage avant la liaison.
- Distingue clairement la liaison de matériau de l'écriture des étiquettes capteur, renvoyées vers la compétence `nonvisual-materials`.
- Impose la lecture des extraits sources référencés avant toute production de code, et la validation par le test de documentation concerné.
Limites
- Les extraits de code ne sont pas inclus dans la compétence : ils pointent vers des fichiers de tests d'un dépôt ovrtx privé, inutilisables hors de ce checkout.
- La compétence ne couvre ni la création du matériau, ni l'édition de son graphe de shaders, uniquement la liaison.
- La licence est propriétaire NVIDIA, ce qui restreint la réutilisation et la diffusion.
À utiliser lorsqu'il faut assigner, remplacer ou modifier le matériau lié à un ou plusieurs prims de géométrie, dans du code Python, C/C++ ou une scène USD.
À éviter si l'objectif est de créer un matériau, d'en modifier les shaders, ou d'écrire des métadonnées de matériau destinées aux capteurs.
Analyse de sécurité
SûrThe 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.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
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.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
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. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Extrait original : 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.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
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 doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/binding-materials-to-prims-mrwakcv7'openskills read 'binding-materials-to-prims-mrwakcv7'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/binding-materials-to-prims-mrwakcv7/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.