I am trying to add the timeline and range sliders from Maya to a UI in Python. According to the docs, this would be the rangeControl and timePort commands. However, when I build this small UI example I get an empty window:
from maya import cmds cmds.window(w=500, h=75, title="Timeline Controls UI") clayt = cmds.columnLayout(adjustableColumn=True) cmds.rangeControl('myRangeSlider', parent=clayt) cmds.timePort('myTimePort', parent=clayt) cmds.showWindow()
Thoughts?