application-flow
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Writing scalar and array attribute data to prims. Use when user asks to write an attribute, set a property, change a material, set a color, or modify mesh data.
Claude Code
$ npx -y skills add nvidia-omniverse/ovrtx --skill writing-attributes --agent claude-code
Codex
$ npx skills add nvidia-omniverse/ovrtx --skill writing-attributes -a codex -y
Cursor
$ npx skills add nvidia-omniverse/ovrtx --skill writing-attributes -a cursor -y
Gemini CLI
$ npx skills add nvidia-omniverse/ovrtx --skill writing-attributes -a gemini-cli -y
GitHub Copilot
$ npx skills add nvidia-omniverse/ovrtx --skill writing-attributes -a github-copilot -y
OpenCode
$ npx skills add nvidia-omniverse/ovrtx --skill writing-attributes -a opencode -y
Windsurf
$ npx skills add nvidia-omniverse/ovrtx --skill writing-attributes -a windsurf -y
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0 name: writing-attributes description: > Writing scalar and array attribute data to prims. Use when user asks to write an attribute, set a property, change a material, set a color, or modify mesh data. license: CC-BY-4.0 AND Apache-2.0 author: NVIDIA ovrtx tags: - ovrtx - attributes - writing tools: - Read - Grep
Use this skill when the user asks to write an attribute, set a property, change a material, set a color, or modify mesh data.
Resolve inputs in this order: existing repository files and referenced snippets, explicit user request, then broader agent context.
1. Identify the target language, prim paths, attribute name, value kind, data shape, memory target, and sync/async requirement. 2. Read the matching source snippet and copy its lifecycle pattern rather than inventing equivalent calls. 3. Validate dtype, shape, semantic, and ownership rules before proposing or editing code. 4. Choose an explicit ordinal satisfying the configured ovstage admission policy and applicable floors. Under the `STRICTLY_INCREASING` policy, rewriting a cell needs a newer ordinal than its retained committed changes even before sealing; disjoint cells may share an ordinal. Wait for the ovstage write to succeed, then advance and wait for the write floor before rendering its ordinal; preserve C compatibility lifetimes when maintaining C code. See the [admission-policy summary](../../docs/core/ovstage_integration.rst#ordinals-and-write-floor-gates). 5. When changing code, run the narrow docs test or example that owns the snippet whenever practical.
This skill has no scripts.
Beyond transforms, ovstage can write arbitrary attributes to prims: colors, visibility, mesh geometry, string tokens, and more. The DLTensor dtype must exactly match the USD attribute schema.
There are two categories:
Ovstage Python and the C compatibility API use lane-based DLTensor attribute layouts.
Scalar values can use NumPy arrays directly. For vectors and matrices, wrap NumPy storage with `ovstage.make_dltensor`, set the logical element count in `shape`, and set the component count in `dtype.lanes`:
| USD type | NumPy storage | ovstage DLTensor | |---|---|---| | `int` / `float` scalar for N prims | `(N,)` | `shape=[N]`, lanes 1 | | `float3` / `point3f` scalar for N prims | `(N, 3)` | `shape=[N]`, lanes 3 | | `float4` / `color4f` scalar for N prims | `(N, 4)` | `shape=[N]`, lanes 4 | | 4x4 matrix for N prims | `(N, 4, 4)` | `shape=[N]`, lanes 16 | | `int[]` array with M elements on one prim | `(M,)` | `shape=[M]`, lanes 1 | | `float3[]` / `point3f[]` with M elements on one prim | `(M, 3)` | `shape=[M]`, lanes 3 |
> **Source:** `tests/docs/python/test_attribute_shapes.py` snippets `doc-shape-scalar-int32`, `doc-shape-float3-array`, `doc-shape-mat4-array`.
The C API accepts `DLDataType::lanes` for multi-component writes; shape-based scalar-lane writes are also accepted. Raw reads return scalar lanes with trailing component dimensions. This table describes canonical write input:
| USD type | C DLTensor shape | C `DLDataType` | |---|---|---| | `int` / `float` scalar for N prims | `[N]` | `{kDLInt/kDLFloat, bits, 1}` | | `float3` / `point3f` scalar for N prims | `[N]` | `{kDLFloat, 32, 3}` | | 4x4 double matrix for N prims | `[N]` | `{kDLFloat, 64, 16}` | | `int[]` array with M elements on one prim | `[M]` | `{kDLInt, 32, 1}` | | `float3[]` / `point3f[]` with M elements on one prim | `[M]` | `{kDLFloat, 32, 3}` |
> **Source:** `tests/docs/c/test_attribute_shapes.cpp` snippets `doc-shape-scalar-int32-c`, `doc-shape-float3-array-c`, `doc-shape-mat4-array-c`.
For a C `point3f[]` attribute with 10 points, write one tensor with `shape=[10]`, `dtype={kDLFloat, 32, 3}` or `shape=[10,3]`, `dtype={kDLFloat,32,1}`; the read tensor is `[10,3]` with scalar lanes. When creating a matrix attribute through OVStage, set `semantic=AttributeSemantic.MATRIX` in Python or `OVSTAGE_SEMANTIC_MATRIX` in C; shape alone does not assign the matrix semantic. The deprecated OVRTX Python `Renderer.write_attribute` convenience API can infer the matrix
ovrtx is a C and Python library for embedding Omniverse RTX sensor simulation and visualization directly into applications.
High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…
Asynchronous operation patterns including polling, timeouts, and non-blocking workflows. Use when user asks about async…
Replacing persistent ovrtx attribute bindings with reusable ovstage queries for repeated writes or maps. Use when user asks about…
Binding materials to prims at runtime. Use when user asks to assign a material, change a material, set material binding, or swap…
Available camera render outputs for Real-Time Path Tracing (RT2) mode. Use when user asks what AOVs/render vars are available,…
Cloning USD subtrees to create copies at new paths. Use when user asks to clone, duplicate, copy a prim, or create instances of…
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…
Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…