How to assign materials to the object?
Hi,
I have a question.
Is there any way to asign material to the object from the script?
I've done so far:
- adding objects to the scene;
- adding all materials to the document;
- adding material tag to my object by using addTagOfType(SHADERTAG);
- How do I tell this TAG to which material to use?
I checked this SHADERTAG's parameterInfo(), but it seems it does not have a parameter like materialIndex...
Hi,
I have a question.
Is there any way to asign material to the object from the script?
I've done so far:
- adding objects to the scene;
- adding all materials to the document;
- adding material tag to my object by using addTagOfType(SHADERTAG);
- How do I tell this TAG to which material to use?
I checked this SHADERTAG's parameterInfo(), but it seems it does not have a parameter like materialIndex...