Viz Plug-ins User Guide

Version 5.2 | Published December 12, 2023 ©

DataMaterialIndex

images/download/attachments/95401953/plugins_datamaterialindex-icon.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.

The DataMaterialIndex plug-in 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 plug-in 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 the DatamaterialIndex plugin on the parent container and use e.g. matindex[0-9] as Field Name. 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.