Author Topic: batch processing files with converter script  (Read 3049 times)

2017-12-11, 17:34:26

busseynova

  • Active Users
  • **
  • Posts: 21
    • View Profile
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 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.

2017-12-11, 19:53:59
Reply #1

busseynova

  • Active Users
  • **
  • Posts: 21
    • View Profile
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

2017-12-11, 20:14:17
Reply #2

Alex Abarca

  • Active Users
  • **
  • Posts: 422
  • Corona Certified Instructor
    • View Profile
    • Instagram
Is this possible? to run the converter and proxy script?

2017-12-11, 22:37:11
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8869
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures


2017-12-12, 13:09:46
Reply #5

busseynova

  • Active Users
  • **
  • Posts: 21
    • View Profile
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