Skip to content

ImageNodeConstant

ImageNodeConstant#

(Constant)

Go to User page.

Description#

Constant color image.

Public Attributes#

Type Name Visual Hint Description
double[4] color VISUAL_HINT_RGBA
long resolution_mode VISUAL_HINT_DEFAULT Defines the canvas size of the image.
string resolution_preset VISUAL_HINT_ENUM Defines the canvas size of the image.
long[2] resolution VISUAL_HINT_PIXEL Defines the canvas size of the image. The canvas is the visible area of the image.
double display_aspect_ratio VISUAL_HINT_DEFAULT Set the pixel aspect ratio of the image when displayed in the Image View. Please note that this is only a display setting. This doesn't modify the rendered pixel aspect ratio.

Inherited Public Attributes#

Type Name Visual Hint Description
bool thumbnail VISUAL_HINT_DEFAULT Enable/Disable the display of the node thumbnail in the Build View.
double thumbnail_size VISUAL_HINT_DEFAULT Set the size of the thumbnail in the Build View.
long caching VISUAL_HINT_DEFAULT Cache result of this node
action clear_cache VISUAL_HINT_DEFAULT Clear the internal image cached by the node. If you clear the image cache, the node will request an evaluation when displayed by the Image View.

CID#

class "ImageNodeConstant" "ImageNode" {
    #license {
        flavor "advanced"
    }
    #version 0.92
    icon "../icons/object_icons/image.iconrc"
    category "Image"
    doc "Constant color image."
    attribute_group "options" {
        rgba "color" {
            output "image"
            animatable yes
            value 1 1 1 1
        }
        long "resolution_mode" {
            doc "Defines the canvas size of the image."
            preset "Use Project Preferences" "0"
            preset "User-defined" "1"
            value 0
        }
        enum "resolution_preset" {
            doc "Defines the canvas size of the image."
            filter "resolution_preset"
            read_only yes
            value ""
        }
        pixel[2] "resolution" {
            doc "Defines the canvas size of the image. The canvas is the visible area of the image."
            output "image"
            animatable yes
            numeric_range yes 20 16384
            ui_range yes 20 16384
            read_only yes
            value 1280 720
        }
        double "display_aspect_ratio" {
            doc "Set the pixel aspect ratio of the image when displayed in the Image View. Please note that this is only a display setting. This doesn\'t modify the rendered pixel aspect ratio."
            numeric_range yes 0.1 10
            ui_range yes 0.5 2
            dg_active no
            read_only yes
            value 1
        }
    }
    set "pass_through" {
        private no
        hidden yes
        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
        value no
    }
    set "master_input" {
        private no
        hidden yes
        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
        value "a"
    }
}