创建动画曲线并加帧


# 创建动画曲线并加帧
import pymel.core as pm
import maya.api.OpenMayaAnim as oma2

anim_cv = oma2.MFnAnimCurve()
anim_cv.create(7)
anim_cv.addKey(0, 0)
anim_cv.addKey(10, 10)
anim_cv = pm.PyNode(anim_cv.name())

评论
  目录