image-20240919-141331.png

The DataMaterialIndex plug-in changes the material of the controlled container. The scene must have a DataMaterialTable scene plug-in with a defined material table. 

DataMaterialIndex uses the indices of the defined materials in the DataMaterialTable to change the material on the containers. Data format is an index number (integer). DataMaterialIndex copies the material related to the given index from the table to the controlled container. The controlled container must have material attached to it.

Note: This plug-in is located in: Plugins -> Container plug-ins -> Data

Information: DataPool plug-ins only work properly on a single channel on the same machine.

Example

To apply the index to a series of subcontainers, place DatamaterialIndex on the parent container and enter a Field Name (for example, matindex[0-9]). This means it changes the material color of the first ten containers to the given values (1-7).
MatIndex[0-9]=1,2,3,4,5,6,7;

The material on the first child is changed to the material defined in entry 1 in the material table, the second is changed to the material defined in entry 2 of the material table, and so on. The last containers (index 7-9) are set to the material defined in index 7 of the table.