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