ScriptSpot

Forum topic · General Scripting

making simple project scene directory

By dussla · 2014-01-29

Description

i would like to make simple project scene directory

after i put set project folder , i can see many folder

archieve
materier....
almost 10 above

can i make simple folder project folder ?

ex) model
map
down
ies

folder only

Comments (3)

wow wow

dussla · 2014-01-29

you are Genius really really.

really i never acces your area .
always thank you

barigazy · 2014-01-29

Till then you can try something like this
I don't know why max not allow to set default folder to any different name then "Scenes". So U can't use "models" or any other name except "Scenes".
Modify fn to suit your needs ... if you know how ;)

fn createCustomProjectFolder dir: subdirs: =
(
if (makeDir dir) do
(
local sioFile = dotnetclass "System.IO.File"
local dirstrings = #("[Directories]",("ProjectFolder="+dir))
local mxp = pathConfig.appendPath dir ((pathConfig.stripPathToLeaf dir)+".mxp")
for n in subdirs do
(
makeDir (pathConfig.appendPath dir n)
case n of
(
"maps": append dirstrings @"Images=.\maps"
"ies": append dirstrings @"Photometric=.\ies"
"proxy": join dirstrings #(@"Export=.\proxy",@"Import=.\proxy")
"scenes": append dirstrings @"Scenes=.\scenes"
"render": append dirstrings @"RenderOutput=.\render"
)
if finditem subdirs "xrefs" != 0 do join dirstrings #(@"[XReferenceDirs]", @"Dir1=.\xrefs")
if finditem subdirs "maps" != 0 do join dirstrings #(@"[BitmapDirs]",@"Dir1=.\maps")
sioFile.WriteAllLines mxp dirstrings ; pathConfig.setCurrentProjectFolder dir
)
)
)
createCustomProjectFolder dir:@"C:\temp\dussiaProject" subdirs:#("maps", "ies", "proxy", "scenes", "xrefs", "render")

barigazy · 2014-01-29

That will be also included in the script that I told you before. Probably I will finish this tool in a month if I have free time :).