Author Topic: Importing a Material File  (Read 3702 times)

0 Members and 2 Guests are viewing this topic.

Offline rvcanning

Importing a Material File
« on: June 27, 2018, 08:37:31 am »
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?

Offline Morten Kristensen

  • root
  • Administrator
  • Full Member
  • *****
  • Posts: 142
  • Total likes: 1
  • Software Engineer, Luxion
Re: Importing a Material File
« Reply #1 on: August 27, 2018, 01:46:52 am »
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.