GPencilFrames(bpy_struct)

base class — bpy_struct

class bpy.types.GPencilFrames(bpy_struct)

Collection of grease pencil frames

new(frame_number, active=False)

Add a new grease pencil frame

Parameters
  • frame_number (int in [-1048574, 1048574]) – Frame Number, The frame on which this sketch appears

  • active (boolean, (optional)) – Active

Returns

The newly created frame

Return type

GPencilFrame

remove(frame)

Remove a grease pencil frame

Parameters

frame (GPencilFrame, (never None)) – Frame, The frame to remove

copy(source)

Copy a grease pencil frame

Parameters

source (GPencilFrame, (never None)) – Source, The source frame

Returns

The newly copied frame

Return type

GPencilFrame

classmethod bl_rna_get_subclass(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The RNA type or default when not found.

Return type

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The class or default when not found.

Return type

type

Inherited Properties

Inherited Functions

References