Subclassing MFnAnimCurve

I’m trying to create a subclass of the various AnimCurve nodes (ie animCurveTL) to override the interpolation behavior between keyframes. When I try and subclass MFnAnimCurve in my python plugin, I get the following message when trying to create an instance of my node subclass.

# Warning: Calling script creator function failed # 
# Warning: Node type 'node' is abstract. Cannot create. # 
# Error: There is no such dependency node type: MyAnimCurveSubclass. # 

I understand that MFnAnimCurve is an abstract type, and MFnAnimCurve.create(kAnimCurveTL) is used to create non-abstract nodes. But the instances of animCurveTL seem to be just be MObjects and I don’t see how I can subclass or extend them.

Please keep us posted with your progress. I dont have an answer but this is a very interesting problem.

This topic was automatically closed after 896 days. New replies are no longer allowed.