Class which expresses MultiPass images. Used for MultiPass image operations.
xshade |
↑ |
image_layer |
get_channel_name | The channel name |
set_channel_name | Sets the channel name |
id_name | The layer ID |
image | The layer image |
maximum_value | Reference value (maximum) when normalizing the layer |
minimum_value | Reference value (minimum) when normalizing the layer |
name | The layer path (name) |
number_of_channels | The number of layer channels |
pixel_depth | The layer color depth |
Used after getting a multi-layer image with a method such as xshade.scene().rendering.image_layer_by_index(1).
get_channel_name
The channel name.
Arguments :
int : The index
Return value :
string
See also :
set_channel_name
print xshade.scene().rendering.image_layer_by_index(1).get_channel_name(0)
set_channel_name
Sets the channel name.
Arguments :
int : The index
Arguments :
string
See also :
get_channel_name
xshade.scene().rendering.image_layer_by_index(1).set_channel_name(0,'red')
id_name
The layer ID.
Type :
string
print xshade.scene().rendering.image_layer_by_index(1).id_name
image
The layer image.
Type :
image
#Open the image in a window
xshade.scene().rendering.image_layer_by_index(1).image.create_window()
maximum_value
Reference value (maximum) when normalizing the layer.
Type :
rgba
See also :
minimum_value
The MultiPass Position, Z Depth, and Normals passes preserve the actual dimensions internally. When drawing or saving to a file, these are normalized between RGBA(0,0,0,0) and RGBA(1,1,1,1) within the range of minimum_value and maximum_value.
When other MultiPass values are set, the intensity changes when drawing or saving to a file.
To reflect changes to a value, redraw manually.
print xshade.scene().rendering.image_layer_by_index(1).maximum_value
minimum_value
Reference value (minimum) when normalizing the layer.
Type :
rgba
See also :
maximum_value
The MultiPass Position, Z Depth, and Normals passes preserve the actual dimensions internally. When drawing or saving to a file, these are normalized between RGBA(0,0,0,0) and RGBA(1,1,1,1) within the range of minimum_value and maximum_value.
When other MultiPass values are set, the intensity changes when drawing or saving to a file.
To reflect changes to a value, redraw manually.
print xshade.scene().rendering.image_layer_by_index(1).minimum_value
name
The layer path (name).
Type :
string
print xshade.scene().rendering.image_layer_by_index(1).name
number_of_channels
The number of layer channels.
Type :
int
print xshade.scene().rendering.image_layer_by_index(1).number_of_channels
pixel_depth
The layer color depth.
Type :
int
print xshade.scene().rendering.image_layer_by_index(1).pixel_depth