LineStyleTextureSlot(TextureSlot)

base classes — bpy_struct, TextureSlot

class bpy.types.LineStyleTextureSlot(TextureSlot)

Texture slot for textures in a LineStyle data-block

alpha_factor

Amount texture affects alpha (in [-inf, inf], default 1.0)

Type:

float

diffuse_color_factor

Amount texture affects diffuse color (in [-inf, inf], default 1.0)

Type:

float

mapping

(default 'FLAT')

  • FLAT Flat – Map X and Y coordinates directly.

  • CUBE Cube – Map using the normal vector.

  • TUBE Tube – Map with Z as central axis.

  • SPHERE Sphere – Map with Z as central axis.

Type:

Literal[‘FLAT’, ‘CUBE’, ‘TUBE’, ‘SPHERE’]

mapping_x

(default 'X')

Type:

Literal[‘NONE’, ‘X’, ‘Y’, ‘Z’]

mapping_y

(default 'Y')

Type:

Literal[‘NONE’, ‘X’, ‘Y’, ‘Z’]

mapping_z

(default 'Z')

Type:

Literal[‘NONE’, ‘X’, ‘Y’, ‘Z’]

texture_coords

Texture coordinates used to map the texture onto the background (default 'ALONG_STROKE')

  • WINDOW Window – Use screen coordinates as texture coordinates.

  • GLOBAL Global – Use global coordinates for the texture coordinates.

  • ALONG_STROKE Along stroke – Use stroke length for texture coordinates.

  • ORCO Generated – Use the original undeformed coordinates of the object.

Type:

Literal[‘WINDOW’, ‘GLOBAL’, ‘ALONG_STROKE’, ‘ORCO’]

use_map_alpha

The texture affects the alpha value (default False)

Type:

bool

use_map_color_diffuse

The texture affects basic color of the stroke (default True)

Type:

bool

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References