Skip to content

MaterialRaySwitch

MaterialRaySwitch#

(Ray Switch)

Go to User page.

Description#

Switch material according to the ray type.

Public Attributes#

Type Name Visual Hint Description
reference (Material) camera VISUAL_HINT_DEFAULT Define the material visible by cameras.
reference (Material) shadow VISUAL_HINT_DEFAULT Define the material visible by shadows.
reference (Material) gi VISUAL_HINT_DEFAULT Define the material visible by global illumination.
reference (Material) reflection VISUAL_HINT_DEFAULT Define the material visible by reflections.
reference (Material) refraction VISUAL_HINT_DEFAULT Define the material visible by refractions.
reference (Material) sss VISUAL_HINT_DEFAULT Define the material visible by sub surface scattering.
reference (Material) previz VISUAL_HINT_DEFAULT Define the material visible in previz mode.

Inherited Public Attributes#

Type Name Visual Hint Description
bool export_aovs VISUAL_HINT_DEFAULT Compute and write Aovs defined in the shading graph
reference (AovStore) arbitrary_output_variables VISUAL_HINT_DEFAULT Set the list of extra channels to write to the image.

CID#

class "MaterialRaySwitch" "MaterialSwitch" {
    #version 0.9
    icon "../icons/object_icons/material_ray_switch.iconrc"
    doc "Switch material according to the ray type."
    attribute_group "materials" {
        reference "camera" {
            doc "Define the material visible by cameras."
            filter "Material"
            value ""
        }
        reference "shadow" {
            doc "Define the material visible by shadows."
            filter "Material"
            value ""
        }
        reference "gi" {
            doc "Define the material visible by global illumination."
            filter "Material"
            value ""
        }
        reference "reflection" {
            doc "Define the material visible by reflections."
            filter "Material"
            value ""
        }
        reference "refraction" {
            doc "Define the material visible by refractions."
            filter "Material"
            value ""
        }
        reference "sss" {
            doc "Define the material visible by sub surface scattering."
            filter "Material"
            value ""
        }
        reference "previz" {
            doc "Define the material visible in previz mode."
            filter "Material"
            value ""
        }
    }
}