Hi I was just messing with the Maya MEL script and somehow I created a small script for my workflow but there is one error. I don't to where to paste this line if ( `window -exists nameWindow` ) { deleteUI nameWindow; } HERE IS MY SCRIPT.......... // create a window with a menu bar window -title "3DGhost" -menuBar true -w…
You were really close. See below in red. You need to specify a name for the window object in order to access it specifically. So when you create the window, note that I added a name for the window object, "jayantsWindow". In this way, you can now run the check command if that window exists, and if so then delete it at the…