mmSolver.tools.navigaterootframes#

Navigate the Root frames currently defined.

Tool#

User facing root frame navigation functions.

This function may be called in a UI context.

mmSolver.tools.navigaterootframes.tool.main_next_frame()#

Move the current time to the next user frame.

If no User Frames are available, use Maya’s native “Next Keyframe” tool.

mmSolver.tools.navigaterootframes.tool.main_prev_frame()#

Move the current time to the previous user frame.

If no User Frames are available, use Maya’s native “Previous Keyframe” tool.

Library#

Library functions for navigating the root frames defined in the active Collection.

This module should not have any UI code.

mmSolver.tools.navigaterootframes.lib.get_next_frame_maya()#

Get the next keyframe from the timeslider.

This function uses the current Maya scene state, for example selection and current frame.

Return type:

int

mmSolver.tools.navigaterootframes.lib.get_prev_frame_maya()#

Get the previous keyframe from the timeslider.

This function uses the current Maya scene state, for example selection and current frame.

Return type:

int

mmSolver.tools.navigaterootframes.lib.get_next_frame(cur_frame, int_list)#

Get the next frame in the frame number sequence given.

Parameters:
  • cur_frame (int or float) – The current time number.

  • int_list ([int, ..]) – The frames number sequence as a list.

Returns:

The next frame number, or None if no next frame can be found.

Return type:

int or None

mmSolver.tools.navigaterootframes.lib.get_prev_frame(cur_frame, int_list)#

Get the previous frame in the frame number sequence given.

Parameters:
  • cur_frame (int or float) – The current time number.

  • int_list ([int, ..]) – The frames number sequence as a list.

Returns:

The previous frame number, or None if no previous frame can be found.

Return type:

int or None