makeDir name from a list of strings

65 Views Asked by At

I'm trying to use makeDir to create three directories inside another directory that the user chooses, but the name of this new directories came from a list of strings:

_renderPath = getSavePath

_dirNames = ["THUMBNAIL", "NORMALS", "WIREFRAMES"]

for i in _dirNames do(

    makeDir (_renderPath + "\\" + i)

)

But the scripting listener always says "Unable to convert: "THUMBNAIL" to type: Float".

enter image description here

2

There are 2 best solutions below

1
Lucas Costanski On

The correct way to make a list is:

_dirNames = #("THUMBNAIL","NORMALS","WIREFRAME")
0
PePeTD On

lists = array in max

Array Literals

[ ] is a 2d or 3d point literal