A python Cinema 4D script for parsing .MTL files that contain material descriptions for scenes imported from .OBJ files. I released this a couple of years ago (not on GitHub), user @mredig improved on it and published it on GitHub, now I forked it back :-)
Python
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 7 commits ahead of mredig:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
LICENSE
Parse_MTL.py
README.md

README.md

Parse_MTL.py

Version 1.1.3

Usage

  1. Open Cinema 4D.
  2. Go to "Script -> User Scripts -> Script Folder..."
  3. Place Parse_MTL.py in that folder.
  4. You will probably need to restart C4D, but afterwards, goto "Script -> User Scripts -> Import .mtl file..."
  5. Select the mtl file you wish to import.
  6. The script will import the materials from the file.

Credits

(Written by mredig [https://github.com/mredig])

This is NOT my script. I merely edited a couple lines to turn off the specular channel if the settings in the mtl were 0 for specularity and to link to absolute values for paths. The original script is found at http://www.c4d-jack.de/site/

Note (by fwilleke80): www.c4d-jack.de is not available anymore, but the script can now also be found at: https://github.com/fwilleke80/Parse-MTL-C4D

License

Parse_MTL.py is published under GPL 3.0.

ToDos

I'd like to add a toggle to change between absolute paths and relative paths.

Links

Some links that could come in handy when extending/improving the script: