option "Sample keyframes only" was looking for IK key frames set also with an FK keyframe on axis 1. This meant that:
user must set both IK and FK keyframes to have these exported
IK only or FK only animations could not be exported via this method
This PR updates the _get_frames_using_keyframes_only function so that it will look for any ik frames set on tool_CTRL, but also will look for any FK keyframes set on the timeline on any of the 6 joint handles FK_CTRL. I initially entirely removed the check for FK keyframes but then realized FK-only animations would not be possible, or mix of FK-IK animations would also export only half the path. It nows grab any IK/FK keyframes as lists, then merge and deduplicates the frames before returning it. I also noticed if you would manually keyframe FK handles individually it was only checking for FK keyframes on joint 1, which made any manual FK keyframe set by using s shortcut while rotating the handles was missed.
Here showing an animation with beginning as IK, switch to FK with individual joint keyframed, then back to IK, all exported as one ABB RAPID program.
option "Sample keyframes only" was looking for IK key frames set also with an FK keyframe on axis 1. This meant that:
This PR updates the
_get_frames_using_keyframes_only
function so that it will look for any ik frames set ontool_CTRL
, but also will look for any FK keyframes set on the timeline on any of the 6 joint handles FK_CTRL. I initially entirely removed the check for FK keyframes but then realized FK-only animations would not be possible, or mix of FK-IK animations would also export only half the path. It nows grab any IK/FK keyframes as lists, then merge and deduplicates the frames before returning it. I also noticed if you would manually keyframe FK handles individually it was only checking for FK keyframes on joint 1, which made any manual FK keyframe set by usings
shortcut while rotating the handles was missed.Here showing an animation with beginning as IK, switch to FK with individual joint keyframed, then back to IK, all exported as one ABB RAPID program.