Skip to content

TextureObjectSwitch

TextureObjectSwitch#

(Object Switch)

Go to User page.

Description#

Switch between two colors, based on wether the current scene object is part of a given geometry set or not.

Public Attributes#

Type Name Visual Hint Description
double[3] default_color VISUAL_HINT_COLOR Color for everything not included in the three groups geometry lists below.
bool enable_group_1 VISUAL_HINT_DEFAULT Enables/disables the first group.
double[3] group_1_color VISUAL_HINT_COLOR Color for everything included in the first group geometry list.
reference (SceneObject) group_1_geometry VISUAL_HINT_DEFAULT First list of geometries: each element can either be an actual geometry, or group of geometries.
bool enable_group_2 VISUAL_HINT_DEFAULT Enables/disables the second group.
double[3] group_2_color VISUAL_HINT_COLOR Color for everything included in the second group geometry list.
reference (SceneObject) group_2_geometry VISUAL_HINT_DEFAULT Second list of geometries: each element can either be an actual geometry, or group of geometries.
bool enable_group_3 VISUAL_HINT_DEFAULT Enables/disables the third group.
double[3] group_3_color VISUAL_HINT_COLOR Color for everything included in the third group geometry list.
reference (SceneObject) group_3_geometry VISUAL_HINT_DEFAULT Third list of geometries: each element can either be an actual geometry, or group of geometries.

Inherited Public Attributes#

Type Name Visual Hint Description
bool pass_through VISUAL_HINT_DEFAULT If checked, the current texture is not evaluated and the value of the attribute selected in Pass Through Attribute is directly forwarded.
string master_input VISUAL_HINT_TAG Name of the attribute that will be used as output if Pass Through is enabled.
bool invert VISUAL_HINT_DEFAULT If checked, the texture is inverted.
double opacity VISUAL_HINT_PERCENTAGE Set the opacity of the texture.

CID#

class "TextureObjectSwitch" "Texture" {
    #version 1
    icon "../icons/object_icons/texture_sideswitch.iconrc"
    category "Texture/Utility"
    doc "Switch between two colors, based on wether the current scene object is part of a given geometry set or not."
    attribute_group "input" {
        color "default_color" {
            doc "Color for everything not included in the three groups geometry lists below."
            texturable yes
            animatable yes
            value 0.0 0.0 0.0
        }
        bool "enable_group_1" {
            doc "Enables/disables the first group."
            value yes
        }
        color "group_1_color" {
            doc "Color for everything included in the first group geometry list."
            texturable yes
            animatable yes
            value 1 0.0 0.0
        }
        list<reference> "group_1_geometry" {
            doc "First list of geometries: each element can either be an actual geometry, or group of geometries."
            filter "SceneObject" "Group"
            dg_cyclic yes
            value <empty>
        }
    }
    attribute_group "input>group_2" {
        collapsed yes
        bool "enable_group_2" {
            doc "Enables/disables the second group."
            value yes
        }
        color "group_2_color" {
            doc "Color for everything included in the second group geometry list."
            texturable yes
            animatable yes
            value 0.0 1 0.0
        }
        list<reference> "group_2_geometry" {
            doc "Second list of geometries: each element can either be an actual geometry, or group of geometries."
            filter "SceneObject" "Group"
            dg_cyclic yes
            value <empty>
        }
    }
    attribute_group "input>group_3" {
        collapsed yes
        bool "enable_group_3" {
            doc "Enables/disables the third group."
            value yes
        }
        color "group_3_color" {
            doc "Color for everything included in the third group geometry list."
            texturable yes
            animatable yes
            value 0.0 0.0 1
        }
        list<reference> "group_3_geometry" {
            doc "Third list of geometries: each element can either be an actual geometry, or group of geometries."
            filter "SceneObject" "Group"
            dg_cyclic yes
            value <empty>
        }
    }
}