omni.fabric.commands.scripts.utils#

Functions Summary:

can_prim_have_children

Determines if a given Fabric prim can have children based on its type and the types of its ancestors.

compute_extent_from_points

Computes the axis-aligned bounding box (extent) of a given Fabric prim based on its ‘points’ attribute at a specific time.

compute_visibility

Computes the visibility state of a given Fabric prim.

convert_matrix4_type

Converts a matrix to the specified matrix type.

get_local_transform_matrix_from_xform_attrs

Computes the local transformation matrix for a given Fabric prim at a specific time.

get_rotation_from_order

Composes a rotation based on a given order and corresponding angles.

get_stage_next_free_path

Generates a unique path for a new prim on the given stage by incrementing a numerical suffix until a free path is found.

has_prefix

Checks if the given Fabric path has the specified prefix.

is_ancestor_prim_type

Checks if any ancestor prims of the given prim at the provided path are of the specified prim type.

remove_descendent_paths

Removes descendant paths from a sorted list of Fabric paths, effectively deduplicating the list by retaining only the highest ancestor paths.