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 4x4 transform matrices to move, rotate, or scale prims. Use when user asks to move an object, set a transform, update position, animate a transform, or set a camera transform.
$ npx -y skills add nvidia-omniverse/ovrtx --skill writing-transforms --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/writing-transformsContext preview
The summary Claude sees to decide when to auto-load this skill.
Writing 4x4 transform matrices to move, rotate, or scale prims. Use when user asks to move an object, set a transform, update position, animate a transform, or set a camera transform.
# 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: writing-transforms description: > Writing 4x4 transform matrices to move, rotate, or scale prims. Use when user asks to move an object, set a transform, update position, animate a transform, or set a camera transform. license: LicenseRef-NvidiaProprietary author: NVIDIA ovrtx tags: - ovrtx - transforms - attributes tools: - Read - Grep
Use this skill when the user asks to move an object, set a transform, update position, animate a transform, or set a camera transform.
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, transform representation, matrix convention, 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. Keep bindings, mapped buffers, operation handles, and C strings alive only for the lifetimes documented by the referenced examples. 5. When changing code, run the narrow docs test or example that owns the snippet whenever practical.
This skill has no scripts.
Transforms control the position, rotation, and scale of prims in the scene. ovrtx supports three transform representations. The most common is a 4x4 matrix of doubles using the USD row-vector convention: translation is in the last row (`[3][0..2]`). Use the `"omni:xform"` attribute name, which is also used by the C convenience helpers in `ovrtx_attributes.h`.
> **Source:** `tests/docs/python/test_attribute_shapes.py` snippet `doc-shape-mat4-array`
> **Source:** `tests/docs/python/test_attribute_bindings.py` snippet `doc-bind-attribute-write`
> **Source:** `examples/c/vulkan-interop/src/main.cpp` snippet `write-camera-transform`
> **Source:** `examples/c/vulkan-interop/src/main.cpp` snippet `write-camera-transform` > > For multiple prims, increase `prim_list.num_paths` and provide a contiguous array of transforms.
Instead of building DLTensor and binding descriptors manually, use the convenience helpers that handle the boilerplate:
> **Source:** `tests/docs/c/test_transform_helpers.cpp` snippets `doc-set-xform-mat-c`, `doc-set-xform-pos-rot-scale-c`, `doc-set-xform-pos-rot3x3-c`, `doc-set-reset-xform-stack-c`.
`#include <ovrtx/ovrtx_attributes.h>` provides `ovrtx_set_xform_mat(renderer, paths, count, transforms)`, `ovrtx_set_xform_pos_rot_scale(...)`, `ovrtx_set_xform_pos_rot3x3(...)`, and `ovrtx_set_reset_xform_stack(...)`.
Python and C expose different transform tensor layouts:
> **Source:** `tests/docs/python/test_attribute_shapes.py` snippet `doc-shape-mat4-array`. > > **Source:** `tests/docs/c/test_attribute_shapes.cpp` snippet `doc-shape-mat4-array-c`.
Semantics are a **write-side** conversion hint. `ovrtx_read_attribute` rejects any semantic other than `OVRTX_SEMANTIC_NONE` with "Semantic conversion is not supported for read_attribute". When reading a transform attribute, leave the semantic as `OVRTX_SEMANTIC_NONE` and ask for the raw storage layout.
| Representation | Python | C | Size per prim | |----------------|--------|---|---------------| | 4x4 matrix (doubles) | `Semantic.XFORM_MAT4x4` or `dtype="float64", shape=(4, 4)` | `OVRTX_SEMANTIC_XFORM_MAT4x4` with `ndim=1, shape=[N], dtype={kDLFloat, 64, 16}` | 128 bytes | | pos3d + rot4f + scale3f | (C only) | `OVRTX_SEMANTIC_XFORM_POS3d_ROT4f
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…