Skip to content

ToolPicker

ToolPicker#

(Picker)

  • Category: Select
  • Default object name: picker
  • Inherits from: Tool

Go to User page.

Description#

Pick or Select not only scene objects (like the Select tool) but also layers, materials and colors.

Public Attributes#

Type Name Visual Hint Description
double opacity_threshold VISUAL_HINT_PERCENTAGE Set the threshold value under which the object is considered transparent therefore not selectable.
long left_pick VISUAL_HINT_DEFAULT Define what is picked when picking using the left mouse button.
long middle_pick VISUAL_HINT_DEFAULT Define what is picked when picking using the middle mouse button.

CID#

class "ToolPicker" "Tool" {
    #version 0.9
    icon "../icons/object_icons/tool_object_picker.iconrc"
    category "Select"
    doc "Pick or Select not only scene objects (like the Select tool) but also layers, materials and colors."
    ui_weight 100
    attribute_group "picking" {
        percentage "opacity_threshold" {
            doc "Set the threshold value under which the object is considered transparent therefore not selectable."
            slider yes
            ui_range yes 0.0 1
            value 0.5
        }
        long "left_pick" {
            doc "Define what is picked when picking using the left mouse button."
            preset "Color" "0"
            preset "Layer" "1"
            preset "Scene Object" "2"
            preset "Material" "3"
            preset "Displacement" "4"
            preset "Clip Map" "5"
            value 0
        }
        long "middle_pick" {
            doc "Define what is picked when picking using the middle mouse button."
            preset "Color" "0"
            preset "Layer" "1"
            preset "Scene Object" "2"
            preset "Material" "3"
            preset "Displacement" "4"
            preset "Clip Map" "5"
            value 3
        }
    }
}