Quantcast
Viewing all articles
Browse latest Browse all 5786

Loading .rmtl files and assigning materials to objects

@cyl wrote:

Hi,

I am looking for any hint to the following two-step task using PythonScript :
1. loading an .rmtl file
(as e.g. rs.Command("_RenderLoadMaterialFromFile MyMaterial.rmtl"))
2. 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 ?

Thanks,

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5786

Trending Articles