I want to select the top most parent and then run through its children putting them all into an array.
Forum topic · General Scripting
heirarchy to array
By JokerMartini · 2011-04-29
Description
Comments (2)
select $* arr = selection as
Graph · 2011-05-02
select $*
arr = selection as array
that should do it
Got this
JokerMartini · 2011-04-29
fn getAllChildren obj &arr:#() =
(
for c in obj.children do
(
append arr c
getAllChildren c arr:arr
)
arr
)
select (getAllChildren $ arr:(selection as array))