I am looking for any hint to the following two-step task using PythonScript :
- loading an .rmtl file
(as e.g. rs.Command("_RenderLoadMaterialFromFile MyMaterial.rmtl"))
- assigning this material to an object
(as e.g. rs.ObjectMaterialIndex(MyObject, IndexValue)
Unfortunately I am unable to determine the proper value for IndexValue;
How is it possible to manage the material table in order to know it ?