こんな方法しか思いつかなかった
もっと素直な方法があるんじゃないかな
–階層構造を全て取得
objectStructure = #()
allObj = for i in objects collect i
objRoot = selection[1]
obj = undefined
while objRoot.parent != undefined do
(
objRoot = objRoot.parent
)–while end
append objectStructure objRoot
for i in allObj do
(
obj = i
while obj.parent != undefined do
(
obj = obj.parent
)–while end
if obj == objRoot then append objectStructure i
)–for end
select objectStructure
まぁでも色々と使えそうかな
タブン使えると思う
Pingback: 選択 親・親子階層を全て取得 « sakaiden