can_prim_have_children
- omni.fabric.commands.scripts.utils.can_prim_have_children(stage: Stage, new_path: Path, prim: Prim)
Determines if a given Fabric prim can have children based on its type and the types of its ancestors.
- Parameters
stage (usdrt.Usd.Stage) – The stage containing the Fabric prims to evaluate.
new_path (usdrt.Sdf.Path) – The path to the prim being evaluated.
prim (usdrt.Usd.Prim) – The prim to evaluate.
- Returns
False if the prim is of type usdrt.UsdGeom.Gprim and any of its ancestors are also of type usdrt.UsdGeom.Gprim, True otherwise.
- Return type
bool