Hello guys. I searched the forums regarding my problem and I still dont know how to do one thing. I don
t know how to script. I want to open and close a window with the same shortcut. For example:
dDoMaterial Manager which I have installed works with shortcut "m" both for opening and closing:
"source ddoMaterialManager_2013.mel; if (window -ex mmWindow
) { deleteUI mmWindow; } else { ddoManager; };dDo Material Manager v2.7.5ModifyDisplacementRelease;artDeactivateScreenSlider;"
I also have installed SpPaint 3d, on a different shortcut.
"spPaint3d;import spPaint3dGui; spPaint3dwin=spPaint3dGui.spPaint3dWin()"
I want is to close it the same as dDoMaterial Manager, by pressing the same key!
Is it possible ? If anyone can help me please and explain so I could do for all the windows I need...
Thank you guys!