@@ -694,7 +694,6 @@ proc string[] getUnityExportSets(){
694
694
}
695
695
696
696
proc setupNewExportSet(
697
- string $namespace,
698
697
string $modelPath,
699
698
string $modelFilename,
700
699
string $animPath,
@@ -739,10 +738,6 @@ proc setupNewExportSet(
739
738
740
739
string $origNamespace = `namespaceInfo -cur -an`;
741
740
742
- if($namespace != ":" && !(`namespace -exists $namespace`)){
743
- namespace -add $namespace;
744
- }
745
-
746
741
// Get or create the Unity Fbx Export Set
747
742
$setCreated = getOrCreateExportSet($unityExportSet, $origNamespace);
748
743
@@ -784,19 +779,6 @@ proc setupNewExportSet(
784
779
}
785
780
}
786
781
787
- // add to the targetNamespace
788
- // iterate over all selected objects and rename
789
- if ($namespace != ":"){
790
- // remove the colon from the beginning of the namespace
791
- // because the $object name does not start with a colon.
792
- $namespace = `substring $namespace 2 (size($namespace))`;
793
- for($object in $selectedObjects){
794
- if(!startsWith($object, $namespace)){
795
- rename $object ($namespace + ":" + $object);
796
- }
797
- }
798
- }
799
-
800
782
// switch project if file exported to a different Unity project
801
783
switchUnityProject($modelPath);
802
784
}
@@ -805,7 +787,6 @@ proc setupNewExportSet(
805
787
806
788
global proc unityOnCreateExportSet(
807
789
string $window,
808
- string $namespaceField,
809
790
string $modelPathField,
810
791
string $modelFileField,
811
792
string $animPathField,
@@ -819,11 +800,6 @@ global proc unityOnCreateExportSet(
819
800
return;
820
801
}
821
802
822
- string $namespace = `textField -q -text $namespaceField`;
823
- if ($namespace == ""){
824
- $namespace = ":";
825
- }
826
-
827
803
string $modelPath = "";
828
804
string $modelFilename = "";
829
805
if($modelPathField != 0){
@@ -858,7 +834,6 @@ global proc unityOnCreateExportSet(
858
834
int $stripNamespaces = `checkBox -q -value $stripNamespaceCheckbox`;
859
835
860
836
setupNewExportSet(
861
- $namespace,
862
837
$modelPath,
863
838
$modelFilename,
864
839
$animPath,
@@ -980,10 +955,6 @@ proc createExportSetDialog(int $exportType){
980
955
981
956
int $labelSize = 150;
982
957
int $textFieldSize = 300;
983
-
984
- // get namespace
985
- string $namespaceField = createTextFieldWithLabel("Namespace", $mainOptions, $labelSize, $textFieldSize);
986
- textField -e -text $commonNamespace $namespaceField;
987
958
988
959
string $modelFilePath = " 0 0";
989
960
if(!$exportAnimOnly){
@@ -1010,7 +981,7 @@ proc createExportSetDialog(int $exportType){
1010
981
-columnWidth3 $buttonWidth $buttonWidth $buttonWidth
1011
982
-columnAlign3 "center" "center" "center" -p $container`;
1012
983
1013
- string $createExportSetCommand = "unityOnCreateExportSet " + $window + " " + $namespaceField + $ modelFilePath + $animFilePath + " " + $stripNamespaceCheckbox;
984
+ string $createExportSetCommand = "unityOnCreateExportSet " + $window + " " + $modelFilePath + $animFilePath + " " + $stripNamespaceCheckbox;
1014
985
1015
986
button -label "Create Set and Export"
1016
987
-width $buttonWidth
0 commit comments