QQ聊天

MaxScript判断一个模型是否存在骨骼动画

View Code
Fn HasBoneAnimation inputObject =
(
local skinModifier,resultState
resultState
= false

for tempModifier in inputObject.Modifiers where
(
Physique
== ClassOf tempModifier or Skin == ClassOf tempModifier
)
do
(
skinModifier
= tempModifier
boneList
= refs.dependsOn skinModifier
for tempBone in boneList where tempBone.transform.isAnimated == true do resultState = true
)
resultState
)

HasBoneAnimation $
posted @ 2011-03-27 19:50  SITT  阅读(616)  评论(0编辑  收藏  举报
QQ聊天