Used for background layer operations.
Background settings are composed of 0 or more layers; background_layer expresses one of those layers.
| xshade |
| ↑ |
| scene |
| ↑ |
| background |
| ↑ |
| background_layer |
| anisotropic | Anisotropic |
| area | Area used by the mapping image |
| blend_mode | Blend Mode |
| density | Density |
| horizontal_flip | Horizontal Flip on/off |
| image | The mapping image |
| mapping_color | The mapping color |
| mapping_size | The mapping size |
| orientation | Orientation |
| phase | Phase |
| premultiplied | Premultiplied Alpha on/off |
| projection | Projection map type |
| swap_axes | Swap axes on/off |
| target | Target area of the background layer |
| texture | Texture pattern type |
| vertical_flip | Vertical Flip on/off |
| weight | Mapping blend weight |
anisotropic
Anisotropic.
Type :
float
print xshade.scene().background.background_layer(0).anisotropic
area
Area used by the mapping image.
Type :
rectangle
print xshade.scene().background.background_layer(0).area
blend_mode
Blend Mode.
Type :
int :
| 0 | Normal |
| 1 | Alpha Blend |
| 2 | Add |
| 3 | Subtract |
| 4 | Multiply |
| 5 | Max |
| 6 | Min |
print xshade.scene().background.background_layer(0).blend_mode
density
Density.
Type :
float
print xshade.scene().background.background_layer(0).density
horizontal_flip
Horizontal Flip on/off.
Type :
bool
print xshade.scene().background.background_layer(0).horizontal_flip
image
#Output the mapping image size
print xshade.scene().background.background_layer(0).image.size
mapping_color
The mapping color.
Type :
rgb
print xshade.scene().background.background_layer(0).mapping_color
mapping_size
The mapping size.
Type :
float
print xshade.scene().background.background_layer(0).mapping_size
orientation
Orientation.
Type :
float
print xshade.scene().background.background_layer(0).orientation
phase
Phase.
Type :
float
Phase parameter of Cloud, Wave, and Ocean.
print xshade.scene().background.background_layer(0).phase
premultiplied
Premultiplied Alpha on/off.
Type :
bool
print xshade.scene().background.background_layer(0).premultiplied
projection
Projection map type.
Type :
int :
| 0 | Planar |
| 1 | Spherical |
| 2 | Light Probe |
| 3 | Cube Map |
| 4 | Vertical Cross |
print xshade.scene().background.background_layer(0).projection
swap_axes
Swap axes on/off.
Type :
bool
print xshade.scene().background.background_layer(0).swap_axes
target
Target area of the background layer.
Type :
int :
| 1 | Upper hemisphere |
| 2 | Lower hemisphere |
| 3 | Whole |
print xshade.scene().background.background_layer(0).target
texture
Texture pattern type.
Type :
int :
| 0 | None |
| 1 | Cloud |
| 2 | Ocean |
| 3 | Marble |
| 4 | Spotted |
| 5 | Checked |
| 6 | Haze |
| 7 | Image |
print xshade.scene().background.background_layer(0).texture
vertical_flip
Vertical Flip on/off.
Type :
bool
print xshade.scene().background.background_layer(0).vertical_flip
weight
Mapping blend weight.
Type :
float
print xshade.scene().background.background_layer(0).weight