Importing a Material File

Started by rvcanning, June 27, 2018, 08:37:31 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

rvcanning

I am trying to use Python to import a .mtl file.  I get a "Unsupported file format." error.  I can import it via Keyshot in the Library ->Material menu without issue.  I am using the lux.importFile command.  Do I need to do something else to read in the file?  Is there a way of doing a Material Refresh from a Python?

Morten Kristensen

Hi Robert,

It is not supported to import MTL or KMP files like that. If you want to access new textures in scripting then you can place them in KeyShot's known folder structures so it detects them at startup. Or you can import/open a CAD/KSP/BIP file. Material refresh is not possible via scripting at this time.

Thanks!