DataMaterialIndex

graphics/plugins_datamaterialindex-icon.png

DataMaterialIndex plugin changes the material of the controlled container. The scene must have a DataMaterialTable scene plugin with a defined material table. The DataMaterialIndex plugin uses the indexes of the defined materials in the DataMaterialTable to change the material on the containers. Data format is an index number (integer). The DataMaterialIndex plugin will copy the material related to the given index from the table to the controlled container. The controlled container must have material attached to it.

graphics/plugins_datamaterialindex.png
Example
MAT[0-9]=1 2 3 4 5 6 7; 

The material on the first child will be changed to the material defined in entry 1 in the material table, the second will be changed to the material defined in entry 2 of the material table, etc.

The last containers (index 7-9) will be set to the material defined in index 7 of the table.