TextureSwitchΒΆ

An attribute-based texture switch.

This node is used to switch between different textures, using an user attribute. The Files parameter is a list of texture files, and the Attr parameter is the name of the user attribute to read for the proper texture index.

4 squares, named Plane1 to Plane4, rendered with a TextureSwitch, using the implicit id attribute.

The Files parameter specifies the possible textures, and the Attr parameter specifies the name of the attribute to read as index. Note that Index is set to -1 because the Planes id starts at 1, while the texture index is expected to start at 0.

All other parameters are identical to the basic Texture attribute shader.

This node is compatible with udim textures, but will need you to specify manually the position of the udim index in the bitmap file name. For instance, 'c:/my/udim_texture_1001.tiff' should be replaced with 'c:/my/udim_texture_%d.tiff'.

Use the 'Color Correction' tab to control the output hue, saturation and value of the texture.

Rotate, scale, translate

Use the 'Coordinates' tab to offset, scale or rotate the texture over the surface.

Adjust the color

Use the 'Color Correction' tab to shift the hue, saturation and value of the texture.

Use an image sequence

You can directly use the '$f' specifier in the texture file name. For instance, c:/my/animated_texture_$03f.tiff assumes a 3-digits frame number.

Alternatively, you can use the 'Image Sequence' tab. In that case, you must use '%d' syntax, as for udims. for instance, 'c:/my/udim_texture_%d_%03d.tiff' to use a udim-texture with 3-digits frame numbering.