newton.usd#

Utilities for working with the Universal Scene Description (USD) format.

Functions

convert_warp_type(v)

Determine the Warp type, e.g. wp.quat, wp.vec3, or wp.float32, from a USD value.

convert_warp_value(v[, warp_dtype])

Convert a USD value (such as Gf.Quat, Gf.Vec3, or float) to a Warp value.

get_attribute()

Get an attribute value from a USD prim, returning a default if not found.

get_attributes_in_namespace(prim, namespace)

Get all attributes in a namespace from a USD prim.

get_custom_attribute_declarations(prim)

Get custom attribute declarations from a USD prim, typically from a PhysicsScene prim.

get_custom_attribute_values(prim, ...)

Get custom attribute values from a USD prim and a set of known custom attributes.

get_float()

Get a float attribute value from a USD prim, validating that it's finite.

get_gprim_axis(prim[, name, default])

Get an axis attribute from a USD prim and convert it to an Axis enum.

get_mesh(prim[, load_normals, load_uvs, ...])

Load a triangle mesh from a USD prim that has the UsdGeom.Mesh schema.

get_quat()

Get a quaternion attribute value from a USD prim, validating that it's finite and non-zero.

get_scale(prim)

Extract the scale component from a USD prim's local transformation.

get_transform(prim[, local, invert_rotation])

Extract the transform (position and rotation) from a USD Xform prim.

has_attribute(prim, name)

Check if a USD prim has a valid and authored attribute.