Skip to content

Light

Light#

(Light)

No corresponding User page.

Description#

An abstract light.

Public Attributes#

Type Name Visual Hint Description
bool enable VISUAL_HINT_DEFAULT Enable the illumination of the light during the computation of the shading for all objects.

Inherited Public Attributes#

Type Name Visual Hint Description
double[3] translate VISUAL_HINT_DISTANCE Set the XYZ position of the item relative to its parent item.
double[3] rotate VISUAL_HINT_ANGLE Set the XYZ rotation of the item relative to its parent item.
double[3] scale VISUAL_HINT_SCALE Set the XYZ scaling of the item relative to its parent item.
double[3] shear VISUAL_HINT_SCALE Set the XYZ shear of the item relative to its parent item.
long rotation_order VISUAL_HINT_DEFAULT Specify on which order the Euler rotations are composed. By default Clarisse's uses YXZ
reference (SceneItem) parent VISUAL_HINT_DEFAULT Set the parent item of the item.
bool inherit_transform VISUAL_HINT_DEFAULT Does the current object inherits its parent transformation ?
long reference_frame VISUAL_HINT_FRAME Set the reference frame that defines the base transform and deformation state of the item. This reference is used when computing texture projections or when generating point cloud (in Global Base) on the base geometry.
object[] (Constraint) constraints VISUAL_HINT_DEFAULT Stack of constraint operators. Constraints like Target, Point, Orient... are applied to a Scene Item in order to drive the transformation of the item.
double[3] scale_pivot VISUAL_HINT_DISTANCE Set the coordinates of the scale pivot.
double[3] rotate_pivot VISUAL_HINT_DISTANCE Set the coordinates of the rotation pivot.
double[3] translate_offset VISUAL_HINT_DISTANCE Set the XYZ position of the pivot point of the item.
double[3] rotate_offset VISUAL_HINT_ANGLE Set the XYZ rotation of the pivot point of the item.
double[3] scale_offset VISUAL_HINT_SCALE Set the XYZ scaling of the pivot point of the item.
long rotation_offset_order VISUAL_HINT_DEFAULT Set the rotation axis mode.
bool display_visible VISUAL_HINT_DEFAULT Set whether the item is shown in the 3D View or not.
bool display_pickable VISUAL_HINT_DEFAULT Set whether the item is pickable in the 3D View or in the Image View.
long display_color VISUAL_HINT_DEFAULT Set the item color for constant or simple shading display in the 3D View.
double[3] display_custom_color VISUAL_HINT_COLOR Set the item custom color used for display in the 3D View when the Display Color attribute is set to Custom.
bool enable_motion_blur VISUAL_HINT_DEFAULT Set whether the renderer will do motion blur on the item or not.

CID#

class "Light" "SceneItem" {
    abstract yes
    #version 0.9
    icon "../icons/object_icons/light.iconrc"
    category "/Light"
    doc "An abstract light."
    attribute_group "lighting" {
        bool "enable" {
            doc "Enable the illumination of the light during the computation of the shading for all objects."
            output "shading_light"
            animatable yes
            value yes
        }
    }
    set "display_color" {
        output "gl"
        private no
        hidden no
        saveable yes
        texturable no
        animatable no
        slider no
        numeric_range no 0.0 1
        ui_range no 0.0 1
        dg_active yes
        dg_cyclic no
        dirtiness_pass_through no
        read_only no
        shading_variable no
        experimental no
        advanced no
        overriden no
        promote_attribute no
        allow_expression yes
        localizable yes
        preset "Black" "0"
        preset "Dark Red" "1"
        preset "Red" "2"
        preset "Pink" "3"
        preset "Violet" "4"
        preset "Dark Cyan" "5"
        preset "Cyan" "6"
        preset "Dark Green" "7"
        preset "Green" "8"
        preset "Dark Blue" "9"
        preset "Blue" "10"
        preset "Dark Gray" "11"
        preset "Gray" "12"
        preset "Dark Yellow" "13"
        preset "Yellow" "14"
        preset "White" "15"
        preset "Custom" "16"
        value 10
    }
}