Skip to content

Commit a0a3e99

Browse files
inwoodsvkovec
authored andcommitted
Export FBX camera nodeatttribute w/ animation.
Maya don't import camera and light when importing animation
1 parent 335663d commit a0a3e99

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Packages/Integrations/Autodesk/maya/scripts/unityCommands.mel

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,16 @@ proc importFile(string $filePathStr){
396396
storeAttribute($unityExportSet, $UnityFbxFileNameAttr, "");
397397
storeAttribute($unityExportSet, $UnityFbxNamespaceAttr, "");
398398
}
399+
else
400+
{
401+
// Update animation only
402+
FBXImportMode -v exmerge;
399403

404+
// Don’t change the static values on the cameras and lights
405+
FBXImportCameras -v false;
406+
FBXImportLights -v false;
407+
}
408+
400409
if(`namespaceInfo -cur -an` != $targetNamespace){
401410
namespace -set $targetNamespace;
402411
}

0 commit comments

Comments
 (0)