Change Maya Python Timeline

Change Timeline in Maya

GUI Change the value of TimeLine at the top of Window 160405_mayaFrame_001.png

Python

Reference

playbackOptions

python

playbackOptionsSample.py



import maya.cmds

# Get Info
animStart = cmds.playbackOptions(query=True,animationStartTime=True)
animEnd = cmds.playbackOptions(query=True,animationEndTime=True) 

min = cmds.playbackOptions(query=True,min=True) 
max = cmds.playbackOptions(query=True,max=True) 

print animStart
print animEnd
print min 
print max

# Set Info
cmds.playbackOptions( ast='1', aet='4', min='1', max='4' )

reference

Output Maya Animation Data to .csv file

Recommended Posts

Change Maya Python Timeline
Python interpreter prompt change
mayapy --Python in Maya
Modify Maya Python FPS
Get Twitter timeline with python
Website change monitoring using python
How to change Python version
Post from python to facebook timeline
[Python] Variable (definition, output, value change)
Change python default encoding to utf-8
Change the Python version of Homebrew
[Python] Change the alphabet to numbers
Did not change from Python 2 to 3
Change Python 64bit environment to 32bit environment with Anaconda
Change the length of Python csv strings
[python] Get Twitter timeline for multiple users
Python interpreter in Maya, Houdini, blender, Nuke
Use pathlib in Maya (Python 2.7) for upcoming Python 3.7
How to run a Maya Python script