Log inGet started
Package

entityOps.toolbox

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

entityOps.roots

Find the root ancestor of one or many entities — walks each up its parent chain to the top-level entity.

entityOps.roots("player_hand")
entityOps.roots({ "wheel_fl", "wheel_fr" })

Targets are entity names or ids (a single one, an array, or scene.find records). Returns one { target, targetName, root, rootName, depth } per target; an entity that is already a root reports itself with depth = 0.