File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Assets/Integrations/Autodesk/maya2017/scripts/unityOneClick Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,13 @@ def doIt(self, args):
281
281
unity_fbx_file_path = maya .cmds .getAttr ("{0}.{1}" .format (self ._exportSet , self ._unityFbxFilePathAttr ))
282
282
unity_fbx_file_name = maya .cmds .getAttr ("{0}.{1}" .format (self ._exportSet , self ._unityFbxFileNameAttr ))
283
283
284
+
285
+ # select the export set for export, if it exists,
286
+ # otherwise take what is currently selected
287
+ allSets = maya .cmds .listSets (allSets = True )
288
+ if self ._exportSet in allSets :
289
+ maya .cmds .select (self ._exportSet , r = True , ne = True )
290
+
284
291
if unity_fbx_file_path and unity_fbx_file_name :
285
292
strCmd = r'file -force -options "" -typ "FBX export" -pr -es "{0}{1}"' .format (unity_fbx_file_path , unity_fbx_file_name );
286
293
else :
You can’t perform that action at this time.
0 commit comments