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…
// create a window with a menu bar window -title "3DGhost" -menuBar true -w 220 -h 200;// two frame layouts will be laid out in a columnacolumnLayout;// create a collapsible frame layoutframeLayout -collapsable true -label "Shapes";{ // create a tearOff menumenu -label "File" -tearOff true;// add the menu itemsmenuItem…
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…