Timeline hotkeys
# set playback range start to current frame
import pymel.core as pm
current_frame = pm.currentTime(q=True)
pm.playbackOptions(min=current_frame)
# set playback range end to current frame
import pymel.core as pm
current_frame = pm.currentTime(q=True)
pm.playbackOptions(min=current_frame)