@@ -523,12 +523,6 @@ proc string[] getUnityExportSets(){
523
523
}
524
524
525
525
proc setupNewExportSet(string $exportPath, int $exportAnimOnly, string $selectedObjects[]){
526
- // extract name from path
527
- // create export set
528
- // create namespace
529
- // move objects into namespace
530
- // add objects to export set
531
- // add attributes to set
532
526
$isAnimFile = $exportAnimOnly;
533
527
534
528
// Get the export set attributes
@@ -570,10 +564,6 @@ proc setupNewExportSet(string $exportPath, int $exportAnimOnly, string $selected
570
564
571
565
setExportSetAttributes($unityExportSet, $isAnimFile, $setCreated, $exportAttrs, $targetNamespace);
572
566
573
- // add to the targetNamespace
574
- // iterate over all selected objects and rename
575
- // rename FOO:sphere2 :BAR:sphere2;
576
-
577
567
if (setExists($unityExportSet) == true){
578
568
// add newly imported items to set
579
569
if (size($selectedObjects) > 0){
@@ -582,6 +572,12 @@ proc setupNewExportSet(string $exportPath, int $exportAnimOnly, string $selected
582
572
// lock set so it doesn't get deleted when empty
583
573
lockNode -lock true $unityExportSet;
584
574
}
575
+
576
+ // add to the targetNamespace
577
+ // iterate over all selected objects and rename
578
+ for($object in $selectedObjects){
579
+ rename $object ($targetNamespace + ":" + $object);
580
+ }
585
581
}
586
582
587
583
proc unityExport(int $exportType){
0 commit comments