Skip to content

SceneAssemblySwitch

SceneAssemblySwitch#

(Switch)

  • Category: SceneAssembly
  • Default object name: switch
  • Inherits from: ProjectItem

Go to User page.

Description#

Provides item selection from a collection.

Public Attributes#

Type Name Visual Hint Description
reference (Group) input VISUAL_HINT_GROUP Items candidate.
string active_input_label VISUAL_HINT_DEFAULT Set the label of the input connection that should be returned by the Switch.
reference active_input VISUAL_HINT_DEFAULT Current output item.
reference (Group) default_input VISUAL_HINT_GROUP Set the default output item returned by the Switch when Active Input Label doesn't match any input label.

CID#

class "SceneAssemblySwitch" "ProjectItem" {
    #license {
        flavor "advanced"
    }
    #version 0.91
    icon "../icons/object_icons/scene_assembly_switch.iconrc"
    category "SceneAssembly"
    doc "Provides item selection from a collection."
    table "inputs" {
        doc "List of items and their associated labels that can be returned by the Switch."
        main_column "input"
        toggle_rows yes
        reorder_rows yes
        group "input" {
            doc "Items candidate."
            filter "Context" "ProjectItem"
            value ""
        }
        string "label" {
            doc "Label associated to item candidate."
            hidden yes
            value ""
        }
    }
    string "active_input_label" {
        doc "Set the label of the input connection that should be returned by the Switch."
        dg_active no
        value ""
    }
    reference "active_input" {
        doc "Current output item."
        filter "Context" "ProjectItem"
        saveable no
        read_only yes
        value ""
    }
    group "default_input" {
        doc "Set the default output item returned by the Switch when Active Input Label doesn\'t match any input label."
        filter "Context" "ProjectItem"
        value ""
    }
}