Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Rules with a null value are disabled.

keydescription
texture_type"regular" for generic textures or "envlatl" for environment light textures
texture_formatThe file format of the texture: "pixar", "tiff", "openexr"
resize

Resize image to a power of 2 using given mode: "none", "up", "up-", "down", "down-", "round", "round-".

texture_filter

Filter used for resize: "point", "box", "triangle", "sinc", "gaussian", "gaussian-soft", "catmull-rom", "mitchell", "cubic", "lanczos", "bessel", "blackman-harris"

smode

Repeat mode in s direction: "black", "clamp", "periodic"
tmodeRepeat mode in t direction: "black", "clamp", "periodic"
data_type

"float" (float 32), "half" (float 16), "byte" (int 8), "short" (int 16)

compressionCompression used on texture tiles to save disk space. Texture fomat dependend: see txmake help.
compression_levelCompression level for compressors supporting that parameter: see txmake help.
ociocolorspaceThe destination colorspace, that is the colorspace of the texture
ocioconvertThe source colorspace, that is the colorspace of the image
ocioditherOptionaly dither pixel values when outputing to a non-float texture format. Not recommended.
bumproughA dict containing the bump to roughness conversion values: "factor", "normalmap", "invert", "invertU", "invertV", "refit"
mipfilterThe resizing filter used to create MIP levels. Same as texture_filter.

rules

Rules are Python strings that should evaluate to True or False. They can the following contain substitution tokens:

node_type

PxrTexture, PxrDomeLight, etc

classification

bxdf, pattern, light, lightfilter, etc

img_name

The image name without its extension

img_ext

The image's extension

img_atlas

True if a texture atlas

img_type

'int' or 'float'

img_depth

8, 16 or 32

img_nchan

the number of channels in the image

ocioconfig

full path of OCIO config

ocioconfig_name

name of OCIO config: 'basic', 'ACES-1.2', etc