Skip to content

Commit 3ea3768

Browse files
committed
select only animated objects
when exporting only animation TODO: figure out how to select only animated objects in a specific set
1 parent ddfebee commit 3ea3768

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ proc unityExport(int $exportAnim){
271271

272272
select -r -ne $unitySet;
273273

274+
if($exportAnim){
275+
string $animCurveSelect[] = `ls -typ animCurve`;
276+
string $animatedTransforms[] = `listConnections -t transform $animCurveSelect`;
277+
select -r $animatedTransforms;
278+
}
279+
274280
$pathAttr = $UnityFbxFilePathAttr;
275281
$nameAttr = $UnityFbxFileNameAttr;
276282

0 commit comments

Comments
 (0)