Skip to content

Commit 3f174ff

Browse files
committed
Import FBX with import menu item
1 parent a59a16f commit 3f174ff

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Assets/FbxExporters/Integrations/Autodesk/max/scripts/unityOneClickPlugin.ms

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
-- MacroScripts that will perform actions
22
macroScript Import category:"Unity"
33
(
4-
print "I do nothing, but I should Import!"
4+
-- Make sure the FbxImporter plugin is loaded
5+
pluginManager.loadClass FbxImporter
6+
fbxFileName = getOpenFileName caption:"Import FBX from Unity" filename:"C:/" types:"FBX (*.fbx)|*.fbx|"
7+
if fbxFileName != undefined then
8+
(
9+
importFile fbxFileName using:FBXIMP
10+
)
511
)
612
macroScript Preview category:"Unity"
713
(

0 commit comments

Comments
 (0)