AutodeskRoboticsLab / Mimic

An open-source Maya plugin for controlling Industrial Robots. Written in Python 3.
https://www.mimicformaya.com/
172 stars 39 forks source link

Accurately report time index when saving 'Keyframes Only' #12

Closed swgrayson closed 4 years ago

swgrayson commented 4 years ago

The previous method of calculating 'Time Index' was sufficient for time interval exports, but Keyframe Only exports were known to have incorrect values in that field. By calculating the time from the starting frame, current frame, and animation framerate, we can give an accurate value for the Time Index in both time interval and keyframe only modes.

Accurate timestamps for the keyframes lets us correlate a full export and a keyframe only export and would allow controllers to do things like start motion from any Keyframe. It could also allow Mimic to import previously saved keyframes into the current session (if that is ever desired).