Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: busseynova on 2017-12-11, 17:34:26

Title: batch processing files with converter script
Post by: busseynova on 2017-12-11, 17:34:26
Good afternoon,

my company has a lot of model packs of Evermotion trees, interior models etc, which I am trying to make more easily and readily accessible on our system. It would look really good to my boss if I was able to convert copies of our existing files to Corona, and maybe turn them to proxies.

I am aware of the page detailing maxscript converter commands, so I guess what I really need is a 3rd party programme or a script that could be set to run on a whole folder of files, open and run a script on them, then save and close (as a previous version of max as some in our office are on 2013). I found this:http://www.scriptspot.com/3ds-max/scripts/batch-it-max (http://www.scriptspot.com/3ds-max/scripts/batch-it-max) but it appears quite out-dated and I can't get it to run.

I am an absolute novice with maxscript by the way, otherwise I'd probably have this nailed by now.

Has anyone had success in anything similar?

Thanks.
Title: Re: batch processing files with converter script
Post by: busseynova on 2017-12-11, 19:53:59
I found this from the max help pages, but no luck with it so far...

Code: [Select]
thePath = getSavePath()--get a path dialog to specify the path
if thePath != undefined do--if the user did not cancel
(
  theFiles = getFiles (thePath+"\\*.max") --collect all max files in the dir.
  for f intheFiles do-- go through all of them
  (
    loadMaxFile f--load the next file
 
-----------------------------------------------------------
-- MAKE SOME SCRIPTED CHANGES TO THE SCENE HERE...
-----------------------------------------------------------
 
    saveMaxFile f --save the file back to disk
  )--end f loop
  resetMaxFile #noPrompt --at the end, you can reset
)--end if

http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/index.html?url=files/GUID-D5AC3BA8-6808-48A3-88DA-227ED8743E0-259.htm,topicNumber=d28e91277 (http://docs.autodesk.com/3DSMAX/14/ENU/MAXScript%20Help%202012/index.html?url=files/GUID-D5AC3BA8-6808-48A3-88DA-227ED8743E0-259.htm,topicNumber=d28e91277)
Title: Re: batch processing files with converter script
Post by: Alex Abarca on 2017-12-11, 20:14:17
Is this possible? to run the converter and proxy script?
Title: Re: batch processing files with converter script
Post by: romullus on 2017-12-11, 22:37:11
Have you seen this topic: https://forum.corona-renderer.com/index.php?topic=18201.0
Title: Re: batch processing files with converter script
Post by: Christa Noel on 2017-12-12, 08:34:25
how about this?
https://forum.corona-renderer.com/index.php?topic=13920.0
and this https://forum.corona-renderer.com/index.php/topic,13734.0.html
Title: Re: batch processing files with converter script
Post by: busseynova on 2017-12-12, 13:09:46
Have you seen this topic: https://forum.corona-renderer.com/index.php?topic=18201.0

Thanks! I'd missed that one somehow. The Pixamoon script looks perfect, he's just testing with the new Corona for me and I'll then purchase a copy.

Thanks