glaxnimate

Constants:

name type value docs
__version__ str '0.2.0-24-ga2110fe'

glaxnimate.utils

glaxnimate.utils.Color

Properties:

name type notes docs
red int Red component between 0 and 255
green int Green component between 0 and 255
blue int Blue component between 0 and 255
alpha int Transparency component between 0 and 255
name str

glaxnimate.utils.Point

Properties:

name type notes docs
x float
y float
length float Read only

glaxnimate.utils.Size

Properties:

name type notes docs
width float
height float

to_point()

to_point(self: glaxnimate.utils.Size) -> glaxnimate.utils.Point

glaxnimate.utils.IntSize

Properties:

name type notes docs
width int
height int

to_point()

to_point(self: glaxnimate.utils.IntSize) -> glaxnimate.utils.Point

glaxnimate.utils.Vector2D

Properties:

name type notes docs
x float
y float

normalize()

normalize(self: glaxnimate.utils.Vector2D) -> None

normalized()

normalized(self: glaxnimate.utils.Vector2D) -> glaxnimate.utils.Vector2D

to_point()

to_point(self: glaxnimate.utils.Vector2D) -> glaxnimate.utils.Point

length()

length(self: glaxnimate.utils.Vector2D) -> float

length_squared()

length_squared(self: glaxnimate.utils.Vector2D) -> float

glaxnimate.utils.Rect

Properties:

name type notes docs
left float
right float
top float
bottom float
center Point
top_left Point
top_right Point
bottom_right Point
bottom_left Point
size Size

glaxnimate.log

Logging utilities

info()

info(arg0: str) -> None

warning()

warning(arg0: str) -> None

error()

error(arg0: str) -> None

glaxnimate.io

Input/Output utilities

Constants:

name type value docs
registry IoRegistry

glaxnimate.io.MimeSerializer

Properties:

name type notes docs
slug str Read only
name str Read only
mime_types List[str] Read only

serialize()

serialize(self: glaxnimate.io.MimeSerializer, arg0: List[glaxnimate.model.DocumentNode]) -> bytes

glaxnimate.io.IoRegistry

importers()

importers(self: glaxnimate.io.IoRegistry) -> List[glaxnimate.io.ImportExport]

exporters()

exporters(self: glaxnimate.io.IoRegistry) -> List[glaxnimate.io.ImportExport]

from_extension()

from_extension(self: glaxnimate.io.IoRegistry, arg0: str) -> glaxnimate.io.ImportExport

from_filename()

from_filename(self: glaxnimate.io.IoRegistry, arg0: str) -> glaxnimate.io.ImportExport

serializers()

serializers(self: glaxnimate.io.IoRegistry) -> List[glaxnimate.io.MimeSerializer]

serializer_from_slug()

serializer_from_slug(self: glaxnimate.io.IoRegistry, arg0: str) -> glaxnimate.io.MimeSerializer

glaxnimate.io.ImportExport

Sub classes:

Properties:

name type notes docs
name str Read only
extensions List[str] Read only
can_open bool Read only
can_save bool Read only

can_handle_extension()

Signature:

can_handle_extension(self, extension: str) -> bool

can_handle_filename()

Signature:

can_handle_filename(self, filename: str) -> bool

save()

Signature:

save(self, document: glaxnimate.model.Document, setting_values: dict, filename: str) -> bytes
save(self, document: glaxnimate.model.Document, setting_values: dict) -> bytes
save(self, document: glaxnimate.model.Document) -> bytes

name_filter()

Signature:

name_filter(self) -> str

warning()

Signature:

warning(self, message: str) -> None

information()

Signature:

information(self, message: str) -> None

error()

Signature:

error(self, message: str) -> None

progress_max_changed()

progress_max_changed(self: glaxnimate.io.ImportExport, arg0: int) -> None

progress()

progress(self: glaxnimate.io.ImportExport, arg0: int) -> None

glaxnimate.io.GlaxnimateFormat

Base classes:

Constants:

name type value docs
instance GlaxnimateFormat

glaxnimate.io.IoFormat

Base classes:

glaxnimate.model.defs

glaxnimate.model.defs.Asset

Base classes:

Sub classes:

glaxnimate.model.defs.BrushStyle

Base classes:

Sub classes:

glaxnimate.model.defs.NamedColor

Base classes:

Properties:

name type notes docs
color Color Read only

glaxnimate.model.defs.GradientColors

Base classes:

Properties:

name type notes docs
colors List[Tuple[float, Color]] Read only

glaxnimate.model.defs.Gradient.Type

Properties:

name type notes docs
name str Read only

Constants:

name type value docs
Linear Type 1
Radial Type 2

glaxnimate.model.defs.Gradient

Base classes:

Properties:

name type notes docs
colors GradientColors Reference
type Type
start_point Point Read only
end_point Point Read only
highlight Point Read only

radius()

Signature:

radius(self, t: FrameTime) -> float

glaxnimate.model.defs.Bitmap

Base classes:

Properties:

name type notes docs
data bytes
filename str
format str Read only
width int Read only
height int Read only
embedded bool

refresh()

Signature:

refresh(self, rebuild_embedded: bool) -> None

embed()

Signature:

embed(self, embedded: bool) -> None

glaxnimate.model.defs.Defs

Base classes:

Properties:

name type notes docs
colors List[NamedColor] Read only
images List[Bitmap] Read only
gradient_colors List[GradientColors] Read only
gradients List[Gradient] Read only

find_by_uuid()

Signature:

find_by_uuid(self, n: uuid.UUID) -> glaxnimate.model.ReferenceTarget

add_color()

Signature:

add_color(self, color: glaxnimate.utils.Color, name: str) -> glaxnimate.model.NamedColor
add_color(self, color: glaxnimate.utils.Color) -> glaxnimate.model.NamedColor

add_image_file()

Signature:

add_image_file(self, filename: str, embed: bool) -> glaxnimate.model.Bitmap

add_image()

Signature:

add_image(self, image: PIL.Image.Image, store_as: str) -> glaxnimate.model.Bitmap
add_image(self, image: PIL.Image.Image) -> glaxnimate.model.Bitmap

add_gradient()

add_gradient(self: glaxnimate.model.defs.Defs, index: int = -1) -> glaxnimate.model.defs.Gradient

add_gradient_colors()

add_gradient_colors(self: glaxnimate.model.defs.Defs, index: int = -1) -> glaxnimate.model.defs.GradientColors

glaxnimate.model.shapes

glaxnimate.model.shapes.ShapeElement

Base classes:

Sub classes:

glaxnimate.model.shapes.Shape

Base classes:

Sub classes:

glaxnimate.model.shapes.Modifier

Base classes:

glaxnimate.model.shapes.Styler

Base classes:

Sub classes:

Properties:

name type notes docs
color Color Read only
opacity float Read only
use BrushStyle Reference

glaxnimate.model.shapes.Rect

Base classes:

Properties:

name type notes docs
position Point Read only
size Size Read only
rounded float Read only

glaxnimate.model.shapes.Ellipse

Base classes:

Properties:

name type notes docs
position Point Read only
size Size Read only

glaxnimate.model.shapes.PolyStar.StarType

Properties:

name type notes docs
name str Read only

Constants:

name type value docs
Star StarType 1
Polygon StarType 2

glaxnimate.model.shapes.PolyStar

Base classes:

Properties:

name type notes docs
type StarType
position Point Read only
outer_radius float Read only
inner_radius float Read only
angle float Read only
points int Read only

glaxnimate.model.shapes.Path

Base classes:

Properties:

name type notes docs
shape Bezier Read only
closed bool

glaxnimate.model.shapes.PointType

Properties:

name type notes docs
name str Read only

Constants:

name type value docs
Corner PointType 0
Smooth PointType 1
Symmetrical PointType 2

glaxnimate.model.shapes.Group

Base classes:

Sub classes:

Properties:

name type notes docs
shapes List[ShapeElement] Read only
transform Transform Read only
opacity float Read only

add_shape()

add_shape(self: glaxnimate.model.shapes.Group, type_name: str, index: int = -1) -> glaxnimate.model.shapes.ShapeElement

Adds a shape from its class name

glaxnimate.model.shapes.Layer

Base classes:

Properties:

name type notes docs
animation AnimationContainer Read only
parent Layer Reference
start_time float
render bool

glaxnimate.model.shapes.Fill.Rule

Properties:

name type notes docs
name str Read only

Constants:

name type value docs
NonZero Rule 1
EvenOdd Rule 0

glaxnimate.model.shapes.Fill

Base classes:

Properties:

name type notes docs
fill_rule Rule

glaxnimate.model.shapes.Stroke.Cap

Properties:

name type notes docs
name str Read only

Constants:

name type value docs
ButtCap Cap 0
RoundCap Cap 32
SquareCap Cap 16

glaxnimate.model.shapes.Stroke.Join

Properties:

name type notes docs
name str Read only

Constants:

name type value docs
MiterJoin Join 0
RoundJoin Join 128
BevelJoin Join 64

glaxnimate.model.shapes.Stroke

Base classes:

Properties:

name type notes docs
width float Read only
cap Cap
join Join
miter_limit float

glaxnimate.model.shapes.Image

Base classes:

Properties:

name type notes docs
transform Transform Read only
image Bitmap Reference

glaxnimate.model

glaxnimate.model.Object

Sub classes:

glaxnimate.model.UndoMacroGuard

Context manager that creates undo macros

start()

start(self: glaxnimate.model.UndoMacroGuard) -> None

finish()

finish(self: glaxnimate.model.UndoMacroGuard) -> None

glaxnimate.model.Document

Properties:

name type notes docs
filename str Read only
main MainComposition Read only
current_time float
record_to_keyframe bool
defs Object Read only
size IntSize Read only
rect Rect Read only

find_by_uuid()

Signature:

find_by_uuid(self, n: uuid.UUID) -> glaxnimate.model.ReferenceTarget

find_by_type_name()

Signature:

find_by_type_name(self, type_name: str) -> list

undo()

Signature:

undo(self) -> bool

redo()

Signature:

redo(self) -> bool

get_best_name()

Signature:

get_best_name(self, node: glaxnimate.model.DocumentNode, suggestion: str) -> str
get_best_name(self, node: glaxnimate.model.DocumentNode) -> str

set_best_name()

Signature:

set_best_name(self, node: glaxnimate.model.DocumentNode, suggestion: str) -> None
set_best_name(self, node: glaxnimate.model.DocumentNode) -> None

render_image()

Signature:

render_image(self, time: float, size: glaxnimate.utils.IntSize) -> PIL.Image.Image
render_image(self, time: float) -> PIL.Image.Image
render_image(self) -> PIL.Image.Image

macro()

macro(self: glaxnimate.model.Document, arg0: str) -> glaxnimate.model.UndoMacroGuard

Context manager to group changes into a single undo command

glaxnimate.model.ReferenceTarget

Base classes:

Sub classes:

Properties:

name type notes docs
uuid uuid.UUID Read only
name str

glaxnimate.model.DocumentNode

Base classes:

Sub classes:

Properties:

name type notes docs
group_color Color
visible bool
locked bool
visible_recursive bool Read only
locked_recursive bool Read only
selectable bool Read only

find_by_type_name()

Signature:

find_by_type_name(self, type_name: str) -> list

glaxnimate.model.AnimationContainer

Base classes:

Properties:

name type notes docs
first_frame float
last_frame float
time_visible bool Read only

glaxnimate.model.Transform

Base classes:

Properties:

name type notes docs
anchor_point Point Read only
position Point Read only
scale Vector2D Read only
rotation float Read only

glaxnimate.model.Composition

Base classes:

Sub classes:

Properties:

name type notes docs
animation AnimationContainer Read only
shapes List[ShapeElement] Read only

add_shape()

add_shape(self: glaxnimate.model.Composition, type_name: str, index: int = -1) -> glaxnimate.model.ShapeElement

Adds a shape from its class name

glaxnimate.model.MainComposition

Base classes:

Properties:

name type notes docs
fps float
width int
height int

glaxnimate.model.KeyframeTransition.Descriptive

Properties:

name type notes docs
name str Read only

Constants:

name type value docs
Hold Descriptive 0
Linear Descriptive 1
Ease Descriptive 2
Custom Descriptive 3

glaxnimate.model.KeyframeTransition

Properties:

name type notes docs
hold bool
before Descriptive
after Descriptive
before_handle Point
after_handle Point

set_hold()

Signature:

set_hold(self, hold: bool) -> None

set_before()

Signature:

set_before(self, d: Descriptive) -> None

set_after()

Signature:

set_after(self, d: Descriptive) -> None

set_handles()

Signature:

set_handles(self, before: glaxnimate.utils.Point, after: glaxnimate.utils.Point) -> None

set_before_handle()

Signature:

set_before_handle(self, before: glaxnimate.utils.Point) -> None

set_after_handle()

Signature:

set_after_handle(self, after: glaxnimate.utils.Point) -> None

lerp_factor()

Signature:

lerp_factor(self, ratio: float) -> float

bezier_parameter()

Signature:

bezier_parameter(self, ratio: float) -> float

glaxnimate.model.Keyframe

Properties:

name type notes docs
time float Read only
value <type> Read only
transition KeyframeTransition Read only

glaxnimate.model.AnimatableBase

Properties:

name type notes docs
keyframe_count int Read only
value <type>
animated bool Read only

value_mismatch()

Signature:

value_mismatch(self) -> bool

keyframe_index()

Signature:

keyframe_index(self, time: FrameTime) -> int

keyframe()

keyframe(self: glaxnimate.model.glaxnimate.model.AnimatableBase, arg0: float) -> glaxnimate.model.Keyframe

set_keyframe()

set_keyframe(self: glaxnimate.model.glaxnimate.model.AnimatableBase, arg0: float, arg1: <type>) -> glaxnimate.model.Keyframe

remove_keyframe_at_time()

remove_keyframe_at_time(self: glaxnimate.model.glaxnimate.model.AnimatableBase, arg0: float) -> None

glaxnimate.model.Visitor

visit()

visit(*args, **kwargs)

Overloaded function.

visit(self: glaxnimate.model.Visitor, arg0: glaxnimate.model.Document, arg1: bool) -> None
visit(self: glaxnimate.model.Visitor, arg0: glaxnimate.model.DocumentNode, arg1: bool) -> None

on_visit_document()

on_visit_document(self: glaxnimate.model.Visitor, arg0: glaxnimate.model.Document) -> None

on_visit_node()

on_visit_node(self: glaxnimate.model.Visitor, arg0: glaxnimate.model.DocumentNode) -> None