can_prim_have_children#
- omni.usd.can_prim_have_children(
- stage: Stage,
- new_path: Path,
- prim: Prim,
Internal. If a prim can have children authored.
It’s recommended from Pixar USD that UsdGeom.Gprim is better to be the leaf node instead of having children attached. This function will check if it’s a UsdGeom.Gprim or it’s already under a UsdGeom.Gprim node.
- Parameters:
stage (Usd.Stage) – The stage of the prim.
new_path (Sdf.Path) – New prim path to create under the parent.
prim (Usd.Prim) – The parent prim.