AttributeGroupGreasePencil(bpy_prop_collection)

base classes — bpy_prop, bpy_prop_collection

class bpy.types.AttributeGroupGreasePencil(bpy_prop_collection)

Group of geometry attributes

active

Active attribute

Type:

Attribute

active_index

Active attribute index or -1 when none are active (in [-1, inf], default 0)

Type:

int

new(name, type, domain)

Add attribute to geometry

Parameters:
  • name (str) – Name, Name of geometry attribute (never None)

  • type (Literal[Attribute Type Items]) – Type, Attribute type

  • domain (Literal[Attribute Domain Items]) – Domain, Type of element that attribute is stored on

Returns:

New geometry attribute

Return type:

Attribute

remove(attribute)

Remove attribute from geometry

Parameters:

attribute (Attribute) – Geometry Attribute (never None)

domain_size(domain)

Get the size of a given domain

Parameters:

domain (Literal[Attribute Domain Items]) – Domain, Type of element that attribute is stored on

Returns:

Size, Size of the domain (in [0, inf])

Return type:

int

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