12 import maya.OpenMayaMPx
as OpenMayaMPx
13 import maya.OpenMayaAnim
as OpenMayaAnim
15 interpZeroId = OpenMayaAnim.MFnAnimCurve.kTangentShared3
18 class interpZero(OpenMayaMPx.MPxAnimCurveInterpolator):
20 OpenMayaMPx.MPxAnimCurveInterpolator.__init__(self)
21 def evaluate(self, time):
26 return OpenMayaMPx.asMPxPtr( interpZero() )
29 def initializePlugin(mobject):
30 mplugin = OpenMayaMPx.MFnPlugin(mobject)
32 mplugin.registerAnimCurveInterpolator(
"InterpZero", interpZeroId, creator )
34 sys.stderr.write(
"Failed to register type: InterpZero" )
38 def uninitializePlugin(mobject):
39 mplugin = OpenMayaMPx.MFnPlugin(mobject)
41 mplugin.deregisterAnimCurveInterpolator( interpZeroId )
43 sys.stderr.write(
"Failed to deregister type: InterpZero" )