下面的脚本选择选定对象的所有子nurbcurve。我遇到的问题是,运行脚本后,子节点中的任何键都不会出现在时间轴中。为什么?我该怎么更正?在
测试脚本。创建几个nurb曲线控件并设置位置动画。然后将它们组合在一起,这样它们的父控件就是同一个主控件。然后选择主控件并运行脚本。在
import maya.cmds as cmds
# Get selected objects
curSel = maya.cmds.ls(sl=True)
# Or, you can also specify a type in the listRelatives command
nurbsNodes = maya.cmds.listRelatives(curSel, allDescendents=True, noIntermediate=True, fullPath=True, type="nurbsCurve", path=True)
cmds.select(nurbsNodes)
您正在选择
nurbsCurve
形状,但动画位于变换上相关问题 更多 >
编程相关推荐