Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Corona Goodies - User Contributions => Topic started by: Jpjapers on 2016-11-02, 12:42:00

Title: Mass import/export .mat for conversion script [V0.1]
Post by: Jpjapers on 2016-11-02, 12:42:00
Mass material import/export V0.1

I hope some people will find this useful. This will import a folder full of .mat files into your scene so you can convert them and will then save them out back into individual mat files.

Run the script. press import. locate your mats folder.
It will import them all into the scene and apply them to small boxes.
The corona converter will open.
Convert as necessary and then click export.
Choose your export folder. It will save out with the original name and a '_crn' suffix.
If you have an older version of the converter (1.29) open the script in notepad and find the line at the bottom referencing the converter and just change your version in the string.

Let me know if you have any issues.

Enjoy!
Title: Re: Mass import/export .mat for conversion script
Post by: NicolasC on 2016-11-02, 13:32:28
Im working on a script that imports a folder full of .mat files, runs the corona converter and then resaves each of them back in a folder with a "_crn" suffix.
Hopefully this will be useful for quite a few people.

Ill keep you posted. shouldnt be more than a few hours or so as i have a fully functional alpha working at the moment. Ive tested it on importing then exporting 1000+ materials and it works a treat in a few moments :)

-J
Sounds amazing - looking forward to testing that :)
Title: Re: Mass import/export .mat for conversion script
Post by: Jpjapers on 2016-11-02, 13:58:57
Ive added a download link in the first post. Its pretty simple :)
Title: Re: Mass import/export .mat for conversion script [V0.1]
Post by: NicolasC on 2016-11-02, 14:09:53
Great ! thanks a lot for sharing this :)
Title: Re: Mass import/export .mat for conversion script [V0.1]
Post by: Jpjapers on 2016-11-02, 14:19:34
Great ! thanks a lot for sharing this :)

No problem, let me know how you get on :)
Title: Re: Mass import/export .mat for conversion script [V0.1]
Post by: NicolasC on 2016-11-02, 14:52:04
Well, not much time for testing for now, but be sure I'll give it a try when I can find some time ;)
Title: Re: Mass import/export .mat for conversion script [V0.1]
Post by: Monkeybrother on 2016-11-03, 22:34:27
Sounds great, thanks. I'll give it a try when I'm back at work.