Message 1 of 3
Disable double click time slider select all. (Python/2017)

Not applicable
11-07-2019
09:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have been trying to disable the double click select all function of the Time Slider, because it is more irritating than useful.
I have gone down two paths with this and come up blank each time.
I have tried using timeControl:
import maya.mel as mel time_control = mel.eval('$tempMelVar = $gPlayBackSlider') cmds.timeControl(time_control, q=1, var)
But there are not functions, or callbacks to help with the double click functionality here.
And I have tried the more obscure Qt route:
import maya.mel as mel from PySide2 import QtWidgets, QtCore, QtGui import maya.OpenMayaUI as omui import shiboken2 as shiboken MAYAWINDOW = shiboken.wrapInstance(long(omui.MQtUtil.mainWindow()), QtWidgets.QWidget) time_control = mel.eval('$tempMelVar = $gPlayBackSlider')
time_control_path = cmds.timeControl(time_control, q=1, fullPathName=True) qt_frame = MAYAWINDOW.findChildren(QtWidgets.QWidget) for i in qt_frame: if i.objectName() == time_control_path.split("|")[-2]: qt_widget = i
I am using Maya 2017.
Any ideas on this would be appreciated.