reading-attributes

Reads USD prim attributes into CPU or GPU tensors via read_attribute and read_array_attribute.

201|25|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/NVIDIA-Omniverse/ovrtx --skill reading-attributes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reading-attributes
Source: https://github.com/NVIDIA-Omniverse/ovrtx/tree/main/.agents/skills/reading-attributes
Command: npx skills add https://github.com/NVIDIA-Omniverse/ovrtx --skill reading-attributes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reading scalar or array attributes from prims into CPU or GPU tensors to enable analysis and processing in downstream steps.

Core Features & Use Cases

  • Read single values or arrays from prims, returning DLPack tensors compatible with NumPy, PyTorch, Warp, and other frameworks.
  • Support for reading common USD data types (bool, int, float, point3f, matrix4d, etc.), with explicit guidance on shapes and semantics.
  • Use cases include inspecting mesh data, render settings, or transforms as part of data pipelines for simulation, rendering, or validation.

Quick Start

Call read_attribute with a target prim path and attribute name to fetch a scalar or per-prim array and convert the result to a tensor.

Frequently Asked Questions about reading-attributes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read USD prim attributes into tensors for data processing?

To read USD prim attributes into tensors, you call read_attribute with a target prim path and attribute name to fetch scalar or per-prim array data, returning DLPack tensors for analysis.

Can I convert USD mesh data and transforms into PyTorch or NumPy tensors?

Yes, reading USD attributes returns DLPack tensors that are compatible with NumPy, PyTorch, and Warp. This allows you to directly use mesh data, transforms, and render settings in downstream frameworks.

What USD data types are supported when extracting prim arrays?

Extracting prim arrays supports common USD data types including bool, int, float, point3f, and matrix4d. The implementation provides explicit guidance on shapes and semantics for each type.

Does reading USD attributes into tensors support asynchronous workflows?

Yes, reading USD attributes into tensors supports asynchronous variants through the Operation workflow. This allows you to fetch scalar values or per-prim arrays without blocking downstream pipeline execution.

What is the best way to get scalar values from a USD stage for simulation pipelines?

The best way to get scalar values from a USD stage is using read_attribute to extract render settings or transforms. It converts the results into CPU or GPU tensors for immediate use in simulation pipelines.