Author Topic: Mass import/export .mat for conversion script [V0.1]  (Read 5218 times)

2016-11-02, 12:42:00

Jpjapers

  • Active Users
  • **
  • Posts: 1654
    • View Profile
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!
« Last Edit: 2016-11-02, 16:35:02 by jpjapers »

2016-11-02, 13:32:28
Reply #1

NicolasC

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 539
  • CG supervisor / teacher / artist
    • View Profile
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 :)
Nicolas Caplat
CG supervisor / teacher / artist

2016-11-02, 13:58:57
Reply #2

Jpjapers

  • Active Users
  • **
  • Posts: 1654
    • View Profile
Ive added a download link in the first post. Its pretty simple :)

2016-11-02, 14:09:53
Reply #3

NicolasC

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 539
  • CG supervisor / teacher / artist
    • View Profile
Great ! thanks a lot for sharing this :)
Nicolas Caplat
CG supervisor / teacher / artist

2016-11-02, 14:19:34
Reply #4

Jpjapers

  • Active Users
  • **
  • Posts: 1654
    • View Profile
Great ! thanks a lot for sharing this :)

No problem, let me know how you get on :)

2016-11-02, 14:52:04
Reply #5

NicolasC

  • Primary Certified Instructor
  • Active Users
  • ***
  • Posts: 539
  • CG supervisor / teacher / artist
    • View Profile
Well, not much time for testing for now, but be sure I'll give it a try when I can find some time ;)
Nicolas Caplat
CG supervisor / teacher / artist

2016-11-03, 22:34:27
Reply #6

Monkeybrother

  • Active Users
  • **
  • Posts: 232
    • View Profile
Sounds great, thanks. I'll give it a try when I'm back at work.