Is there any callback for Maya autoKeyframe function?

Is there any callback for Maya autoKeyframe function?

seve.lee
Participant Participant
612 Views
2 Replies
Message 1 of 3

Is there any callback for Maya autoKeyframe function?

seve.lee
Participant
Participant

I want to trigger a function when maya auto keyframe. Is there any callback for Maya autoKeyframe function?

image

0 Likes
613 Views
2 Replies
Replies (2)
Message 2 of 3

chaneyx
Advocate
Advocate

Seve, 

 

There is a callback when autoKeyFrame is enabled. That can be accessed via a scriptJob with MEL or python. 

 

The API MMessage class gives you more robust control over callbacks and messages. For example http://help.autodesk.com/view/MAYAUL/2018/ENU/?guid=__cpp_ref_class_m_anim_message_html

 

Chris

0 Likes
Message 3 of 3

seve.lee
Participant
Participant

Yes I know the scriptjob and MAnimMessage class. But a question is that they only provides events when keys are edited.But you won't knew whether the key is modified, deleted, or added. And you won't know the key is changed/added by setkeyframe or autokeyframe. 

Is there any way for those information?

0 Likes