@@ -279,6 +279,7 @@ def doIt(self, args):
279
279
280
280
# select the export set for export, if it exists,
281
281
# otherwise take what is currently selected
282
+ origSelection = maya .cmds .ls (sl = True )
282
283
if self .setExists (self ._exportSet ):
283
284
maya .cmds .select (self ._exportSet , r = True , ne = True )
284
285
@@ -310,6 +311,9 @@ def doIt(self, args):
310
311
self .displayDebug ('doIt({0})' .format (melCommand ))
311
312
312
313
maya .mel .eval (melCommand )
314
+
315
+ if origSelection :
316
+ maya .cmds .select (origSelection , add = True )
313
317
314
318
@classmethod
315
319
def invoke (cls ):
@@ -359,6 +363,7 @@ def doIt(self, args):
359
363
360
364
# select the export set for export, if it exists,
361
365
# otherwise take what is currently selected
366
+ origSelection = maya .cmds .ls (sl = True )
362
367
if self .setExists (self ._exportSet ):
363
368
maya .cmds .select (self ._exportSet , r = True , ne = True )
364
369
@@ -372,6 +377,9 @@ def doIt(self, args):
372
377
self .displayDebug ('doIt {0}' .format (strCmd ))
373
378
maya .mel .eval (strCmd )
374
379
380
+ if origSelection :
381
+ maya .cmds .select (origSelection , add = True )
382
+
375
383
@classmethod
376
384
def invoke (cls ):
377
385
"""
0 commit comments