File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Integrations/Autodesk/maya/scripts Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -696,7 +696,7 @@ global proc unityOnCreateExportSet(
696
696
$origSelection = `ls -sl`;
697
697
if(size($origSelection) <= 0){
698
698
// nothing selected
699
- print ("Nothing selected");
699
+ error ("Unity FBX Export Set Creation: Nothing selected");
700
700
return;
701
701
}
702
702
@@ -724,6 +724,17 @@ global proc unityOnCreateExportSet(
724
724
$animFilename = $animFilename + ".fbx";
725
725
}
726
726
}
727
+
728
+ // make sure all necessary variables are set
729
+ if ($modelFilename == "" && $animFilename == ""){
730
+ error ("Unity FBX Export Set Creation: Missing filename for export.");
731
+ return;
732
+ }
733
+
734
+ if ($modelPath == "" && $animPath == ""){
735
+ error ("Unity FBX Export Set Creation: Missing filepath for export.");
736
+ return;
737
+ }
727
738
728
739
setupNewExportSet(
729
740
$namespace,
You can’t perform that action at this time.
0 commit comments