Skip to content
Machine Learning
Skill

/writing-attributes

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.

From plugin
ovrtx
27041 skills

Claude Code

$ npx -y skills add nvidia-omniverse/ovrtx --skill writing-attributes --agent claude-code

SKILL.md

writing-attributes.SKILL.md
# 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

Writing Attributes

When to Use

Use this skill when the user asks to write an attribute, set a property, change a material, set a color, or modify mesh data.

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++, or both.
  • Prim paths, attribute name, USD value type, scalar versus array shape, and desired values.
  • Data source location, dtype, semantic conversion, ordinal, and write-floor publication.
  • Whether the write is one-shot, repeated with a stable target, or needs direct mapped-buffer access.
  • 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.
  • Use `attribute-bindings` for repeated writes to the same prims/attribute, and `mapping-attributes` for zero-copy direct writes.
  • Use `binding-materials` when the request is specifically to set `material:binding`.

Instructions

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.

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

  • Deprecated ovrtx compatibility writes retain their documented unsupported-type limits for string arrays, asset arrays, and timecode attributes.
  • For ovstage token and path values, intern IDs through `ovstage.PathDictionary` and use the matching `AttributeSemantic`.
  • The referenced snippets remain the source of truth; update or add tested snippets before documenting new API usage.

Overview

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:

  • **Scalar attributes** -- one value per prim (e.g., a color, a transform)
  • **Array attributes** -- variable-length per prim (e.g., mesh points, face vertex counts)

Tensor layout

Ovstage Python and the C compatibility API use lane-based DLTensor attribute layouts.

Python ovstage — lane-based attributes

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`.

C — lane-based attributes

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

Read more
@nvidia-omniverse
Ships withovrtx

ovrtx is a C and Python library for embedding Omniverse RTX sensor simulation and visualization directly into applications.

Stars on GitHub

Momentum

stars in total
270
Star history of nvidia-omniverse/ovrtx on GitHub, a chart by star-history.com

Other skills on ovrtx.

application-flow

application-flow

High-level overview of a typical ovrtx application lifecycle. Use when user asks how to structure an ovrtx program, what the main…

async-operations

async-operations

Asynchronous operation patterns including polling, timeouts, and non-blocking workflows. Use when user asks about async…

attribute-bindings

attribute-bindings

Replacing persistent ovrtx attribute bindings with reusable ovstage queries for repeated writes or maps. Use when user asks about…

binding-materials

binding-materials

Binding materials to prims at runtime. Use when user asks to assign a material, change a material, set material binding, or swap…

camera-outputs-rt2

camera-outputs-rt2

Available camera render outputs for Real-Time Path Tracing (RT2) mode. Use when user asks what AOVs/render vars are available,…

cloning-prims

cloning-prims

Cloning USD subtrees to create copies at new paths. Use when user asks to clone, duplicate, copy a prim, or create instances of…

More skills from other plugins.

analyze-ci

analyze-ci

Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with root…

mlflow5d29k
@mlflow@mlflowInstall Skill
hf-cli

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…

skills2w11k
@huggingface@huggingfaceInstall Skill
feast-architecture

feast-architecture

Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…

feast9d7.4k
@feast-dev@feast-devInstall Skill
add-ecosystem

add-ecosystem

Add a new ecosystem and base model to basemodel.constants.ts. Use when onboarding a new model family from providers like Baidu,…

civitai6d7.3k
@civitai@civitaiInstall Skill

Questions about writing-attributes.

Which coding agents can use writing-attributes?
writing-attributes installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.