ImagePaint(Paint)

base classes — bpy_struct, Paint

class bpy.types.ImagePaint(Paint)

Properties of image and texture painting mode

canvas

Image used as canvas

Type:Image
clone_image

Image used as clone source

Type:Image
dither

Amount of dithering when painting on byte images

Type:float in [0, 2], default 0.0
invert_stencil

Invert the stencil layer

Type:boolean, default False
missing_materials

The mesh is missing materials

Type:boolean, default False, (readonly)
missing_stencil

Image Painting does not have a stencil

Type:boolean, default False, (readonly)
missing_texture

Image Painting does not have a texture to paint on

Type:boolean, default False, (readonly)
missing_uvs

A UV layer is missing on the mesh

Type:boolean, default False, (readonly)
mode

Mode of operation for projection painting

  • MATERIAL Material, Detect image slots from the material.
  • IMAGE Image, Set image for texture painting directly.
Type:enum in [‘MATERIAL’, ‘IMAGE’], default ‘MATERIAL’
normal_angle

Paint most on faces pointing towards the view according to this angle

Type:int in [0, 90], default 0
screen_grab_size

Size to capture the image for re-projecting

Type:int array of 2 items in [512, 16384], default (0, 0)
seam_bleed

Extend paint beyond the faces UVs to reduce seams (in pixels, slower)

Type:int in [-32768, 32767], default 0
stencil_color

Stencil color in the viewport

Type:float array of 3 items in [0, 1], default (0.0, 0.0, 0.0)
stencil_image

Image used as stencil

Type:Image
use_backface_culling

Ignore faces pointing away from the view (faster)

Type:boolean, default False
use_clone_layer

Use another UV map as clone source, otherwise use the 3D cursor as the source

Type:boolean, default False
use_normal_falloff

Paint most on faces pointing towards the view

Type:boolean, default False
use_occlude

Only paint onto the faces directly under the brush (slower)

Type:boolean, default False
use_stencil_layer

Set the mask layer from the UV map buttons

Type:boolean, default False
detect_data()

Check if required texpaint data exist

Return type:boolean

Inherited Properties

Inherited Functions

References