Maya C ++ API相当于MEL setKeyframe

时间:2016-01-25 12:53:50

标签: c++ maya mel maya-api

Maya C ++ API中是否有等效的MEL setKeyframe命令?它似乎存在于python(maya.cmds.setKeyframe)但我抓住了C ++ include目录并且没有找到任何相关内容。我也没有在SDK文档中找到任何提示。

1 个答案:

答案 0 :(得分:1)

你有没有尝试过MFnAnimCurve类?它有像addKey和addKeyframe()http://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__cpp_ref_class_m_fn_anim_curve_htmlhttp://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__cpp_ref_class_m_fn_anim_curve_html这样的函数,它们就是我想要的那个......在python中有一个python例子maya group https://groups.google.com/forum/#!topic/python_inside_maya/0QIopdTL5G0 ..希望有所帮助