is_ancestor_prim_type
- omni.fabric.commands.scripts.utils.is_ancestor_prim_type(stage: Stage, prim_path: Path, prim_type: SchemaBase)
Checks if any ancestor prims of the given prim at the provided path are of the specified prim type.
- Parameters
stage (usdrt.Usd.Stage) – The stage in which to search for ancestor prims.
prim_path (usdrt.Sdf.Path) – The path to the starting prim to check its ancestors.
prim_type (usdrt.Usd.SchemaBase) – The type of the prim to check for among the ancestors.
- Returns
True if any ancestor prims are of the specified prim type, False otherwise.
- Return type
bool