newton.usd#
Utilities for working with the Universal Scene Description (USD) format.
This module provides both low-level USD utility helpers and public schema
resolver types used by newton.ModelBuilder.add_usd().
Classes
Enumeration of USD prim types that can be resolved by schema resolvers. |
|
Base class mapping USD schema attributes to Newton attributes. |
|
Schema resolver for MuJoCo USD attributes. |
|
Schema resolver for Newton-authored USD attributes. |
|
Schema resolver for PhysX USD attributes. |
Functions
Get an attribute value from a USD prim, returning a default if not found. |
|
|
Get all attributes in a namespace from a USD prim. |
Get custom attribute declarations from a USD prim, typically from a |
|
|
Get custom attribute values from a USD prim and a set of known custom attributes. |
Get a float attribute value from a USD prim, validating that it's finite. |
|
|
Get an axis attribute from a USD prim and convert it to an |
|
Load a triangle mesh from a USD prim that has the |
|
Get a quaternion attribute value from a USD prim, validating that it's finite and non-zero. |
|
Extract the scale component from a USD prim's transformation. |
|
Extract the transform (position and rotation) from a USD Xform prim. |
|
Check if a USD prim has an applied API schema, even if the schema is not registered with USD's schema registry. |
|
Check if a USD prim has a valid and authored attribute. |
|
Determine the Warp type, e.g. wp.quat, wp.vec3, or wp.float32, from a USD value. |
|
Convert a USD value (such as Gf.Quat, Gf.Vec3, or float) to a Warp value. |