Skip to content

Commit 100d59c

Browse files
committed
allow user to select set dummy for export
- print message about where we are exporting to
1 parent e0defcc commit 100d59c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Assets/Integrations/Autodesk/max/scripts/UnityFbxForMaxPlugin.ms

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ struct UnityExportHelpers (
283283

284284
if exportFileName != undefined then (
285285
exportFile exportFileName #noPrompt selectedOnly:true using:FBXEXP
286+
print ("Result: " + exportFileName)
286287
)
287288
),
288289

@@ -308,7 +309,9 @@ struct UnityExportHelpers (
308309
local setsToExport = #()
309310
for expSet in unityExportSets do (
310311
for obj in origSelection do (
311-
if (findItem expSet obj > 0) do (
312+
-- append export set as set to export if obj is in the set or obj is
313+
-- dummy for this set
314+
if (findItem expSet obj > 0) or (obj.name == expSet.name and (isProperty obj "modelFilePath")) do (
312315
appendIfUnique setsToExport expSet
313316
break
314317
)

0 commit comments

Comments
 (0)