Skip to content

Instantly share code, notes, and snippets.

@deathponta
Created October 5, 2017 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deathponta/1d9374f12eaed4e9544a93c4f79def75 to your computer and use it in GitHub Desktop.
Save deathponta/1d9374f12eaed4e9544a93c4f79def75 to your computer and use it in GitHub Desktop.
すべての子のうち、ボーンジオメトリのみを取得する
/*
選択以下のすべての子からBoneオブジェクトのみを取得する
*/
childrens = #() -- 子を入れる箱を用意
fn GetChild _p =(
for c in _p.children do(
if (ClassOf c) == BoneGeometory do(
Append childrens c
)
GetChild c
)
)
GetChild $ -- 初回呼び出し
Select childrens -- 上で集めたオブジェクトをすべて選択
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment