File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Assets/Integrations/Autodesk/max/scripts Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -52,23 +52,22 @@ macroScript UnityImport category:"Unity" tooltip:"Import an FBX file from a Unit
52
52
undefined
53
53
)
54
54
55
- fn getOrCreateRootDummy = (
56
- unityDummy = getNodeByName (rootDummyName )
55
+ fn getOrCreateDummy name = (
56
+ unityDummy = getNodeByName (name )
57
57
if (unityDummy == undefined ) do (
58
58
unityDummy = Dummy()
59
- unityDummy.name = rootDummyName
59
+ unityDummy.name = name
60
60
unityDummy.boxsize = [1 ,1 ,1 ]
61
61
)
62
62
unityDummy -- return dummy
63
63
)
64
64
65
+ fn getOrCreateRootDummy = (
66
+ getOrCreateDummy rootDummyName
67
+ )
68
+
65
69
fn getOrCreateSettingsDummy name = (
66
- unityDummy = getNodeByName (name)
67
- if (unityDummy == undefined ) do (
68
- unityDummy = Dummy()
69
- unityDummy.name = name
70
- unityDummy.boxsize = [1 ,1 ,1 ]
71
- )
70
+ unityDummy = getOrCreateDummy name
72
71
73
72
if not (isProperty unityDummy " filePath" ) do (
74
73
unitySetData = attributes unityData
You can’t perform that action at this time.
0 commit comments