TransformHelper

class omni.usd.TransformHelper

Bases: object

Internal. Helper to handle transform attributes.

Methods

__init__()

add_to_attr_order(attr_order, path[, ...])

get_transform_attr(attrs)

Finds all transform attributes from list.

is_common_attr(source_attr)

is_transform(source_path)

If the source name is an attribute path with xformOp.

order_attrs(attrs, order)

__init__()
get_transform_attr(attrs: List[Attribute]) Tuple[Attribute, List[Attribute], Attribute, Attribute]

Finds all transform attributes from list.

Parameters

attrs (List[Usd.Attribute]) – A list of attributes.

Returns

A tuple that includes

tranlate, list of rotations, scale, and order attributes. It’s None or empty if corresponding attribute is not found.

Return type

Tuple[Usd.Attribute, List[Usd.Attribute], Usd.Attribute, Usd.Attribute]

is_transform(source_path: str) bool

If the source name is an attribute path with xformOp.

Parameters

source_path (str) – The attribute name.

Returns

True if the source name is an transform attribute, or False otherwise.

Return type

bool