File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Assets/Integrations/Autodesk/maya2017/scripts/unityOneClick Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -295,17 +295,15 @@ def doIt(self, args):
295
295
296
296
if not self .loadUnityFbxExportSettings ():
297
297
return
298
-
299
- unity_fbx_file_path = self .getAttribute (self ._exportSet , self ._unityFbxFilePathAttr )
300
- unity_fbx_file_name = self .getAttribute (self ._exportSet , self ._unityFbxFileNameAttr )
301
-
302
298
303
299
# select the export set for export, if it exists,
304
300
# otherwise take what is currently selected
305
- allSets = maya .cmds .listSets (allSets = True )
306
- if self ._exportSet in allSets :
301
+ if self .setExists (self ._exportSet ):
307
302
maya .cmds .select (self ._exportSet , r = True , ne = True )
308
303
304
+ unity_fbx_file_path = self .getAttribute (self ._exportSet , self ._unityFbxFilePathAttr )
305
+ unity_fbx_file_name = self .getAttribute (self ._exportSet , self ._unityFbxFileNameAttr )
306
+
309
307
if unity_fbx_file_path and unity_fbx_file_name :
310
308
strCmd = r'file -force -options "" -typ "FBX export" -pr -es "{0}{1}"' .format (unity_fbx_file_path , unity_fbx_file_name );
311
309
else :
You can’t perform that action at this time.
0 commit comments