Show Open Scene window when opening BLANK Maya

How can i setup Maya s.t. "Open Scene..."'s box/window 'll be popped up when opening blank Maya?
When added:    'if (file -q -sn == "") {    OpenScene;"   }  to userSetup.mel, it shows even when opening Maya by double-clicking a scene file. But i need Open Scene window to be shown only when i open a blank Maya.

Yes see you have a faulty presumntion going on here. And that is that the userSetup is run after things get loaded. Well it isnt it get intialized early on in the gui loadup process. Anbd since the gui is still oading theres no point in having teh scene leaded because theres no gui to feedback from.

Put your commands inside a a eval deferred block that should take care of things as it will get RUN AFTER the scene is loaded.

evalDeferred -lp "if (file -q -sn == \"\") {    OpenScene;   }";

  • This worked. Thnx!