A way to open/close a window by a single hotkey
Hi everyone!
I'm new to scripting in Maya, so my apologies if thats a stupid question but I can't find any working solution for me in Google. I've recently tried to customise my UI and I encountered a problem. I wanted to make Tool Settings to appear by a hotkey, and if the window is already opened, to close it. First I tried to make a hotkey for Tool Settings window itself, but it only opens it, I can't close it that way. Next I tried to write a simple script to do this, but I can't find any way to close a window in either MEL or Python. Is there any expression to close this particular window? Many thanks in advance! |
I was finally able to find it. If anyone's intrested, this is the expression:
ToggleToolSettings; getUIComponentDockControl("Tool Settings", false); |
All times are GMT. The time now is 12:56 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018