get_local_transform_matrix_from_xform_attrs#
- omni.fabric.commands.scripts.utils.get_local_transform_matrix_from_xform_attrs(
 - prim: Prim,
 - time_code: TimeCode = Usd.TimeCode.Default(),
 Computes the local transformation matrix for a given Fabric prim at a specific time.
This function extracts the transformation attributes (translate, scale, rotate, and transform) based on the xform op order and composes them into a single transformation matrix that represents the local transformation of the prim.
- Parameters:
 prim (usdrt.Usd.Prim) – The Fabric prim to compute the local transform for.
time_code (usdrt.Usd.TimeCode, optional) – The time at which to compute the transformation. Defaults to usdrt.Usd.TimeCode.Default().
- Returns:
 The computed local transformation matrix representing the prim’s transform at the specified time.
- Return type:
 usdrt.Gf.Matrix4d