Synopsis


highlightTimelineRange([range=list,int])


This command will highlight Maya's timeline for a given range.


Flags


NameArgument typesDescription
rangelist, intSets the range to be highlighted. If no argument is passed it will use the playback range.
Besides passing a list [startFrame, endFrame], it's possible to pass pre-defined ranges: 

kAnimationRange

kPlaybackRange

kAllKeys


kAnimationRange will highlight the timeline animation range.

kPlaybackRange will highlight the timeline playback range, which sometimes is shorter than the animation range.
kAllKeys will highlight all keyframes displayed in the timeline, even if they are out of the animation range.


Examples



This selects the playback range:

from animBot import OpenAnimBot as OA

OA.highlightTimelineRange(OA.kPlaybackRange)
Python


This selects the playback range:

from animBot import OpenAnimBot as OA

OA.highlightTimelineRange()
Python


This also selects the playback range:

from animBot import OpenAnimBot as OA

OA.highlightTimelineRange()
Python


This selects the animation range:

from animBot import OpenAnimBot as OA

OA.highlightTimelineRange(OA.kAnimationRange)
Python


This selects all keys in the timeline:

from animBot import OpenAnimBot as OA

OA.highlightTimelineRange(OA.kAllKeys)
Python


This selects the range from 10 to 24:

from animBot import OpenAnimBot as OA

OA.highlightTimelineRange([10, 24])
Python