simvx.editor.panels.animation_editor

Animation Editor Panel – Extended timeline editor with blend tree support.

Supplements the existing AnimationPanel with higher-level editing features:

  • Animation list management (create/rename/delete clips)

  • Track management (add/remove property tracks)

  • Keyframe value editing with easing presets

  • Loop/speed controls per clip

  • Copy/paste keyframe ranges

  • Onion skinning toggle

Integrates with the core AnimationPlayer, AnimationClip, Track, and AnimationTree systems.

Layout: +———————————————————-+ | [clip v][+][-] | Speed [==|–] 1.0x Loop [x] Snap [x] | |———————————————————-+ | Clip Properties | | Duration: [ 1.0 ] Easing: [linear v] | |———————————————————-+ | Track Management | | [+ Add Track] [Copy KF] [Paste KF] [Onion] | |———————————————————-+ | v Tracks (property list with keyframe info) | | position.x 3 keys [insert] [delete] | | position.y 2 keys [insert] [delete] | | rotation 4 keys [insert] [delete] | +———————————————————-+

Module Contents

Classes

AnimationEditorPanel

Advanced animation editor panel with clip management and track editing.

Data

API

simvx.editor.panels.animation_editor.log

‘getLogger(…)’

simvx.editor.panels.animation_editor.__all__

[‘AnimationEditorPanel’]

class simvx.editor.panels.animation_editor.AnimationEditorPanel(editor_state=None, **kwargs)

Bases: simvx.core.Control

Advanced animation editor panel with clip management and track editing.

Provides a property-based view of animation clips: create/rename/delete clips, add/remove tracks, insert keyframes at the current playhead time, adjust easing per-track, and manage loop/speed settings.

Args: editor_state: The central EditorState instance.

Initialization

ready()
set_player(player: simvx.core.AnimationPlayer | None, node=None)

Bind to an AnimationPlayer.

create_clip(name: str, duration: float = 1.0) simvx.core.AnimationClip | None

Create a new animation clip on the active player.

delete_clip(name: str) bool

Delete a clip from the active player.

rename_clip(old_name: str, new_name: str) bool

Rename an animation clip.

set_clip_duration(duration: float)

Set the duration of the active clip.

add_track(property_name: str) bool

Add a property track to the active clip.

remove_track(property_name: str) bool

Remove a property track from the active clip.

insert_keyframe(property_name: str, time: float, value: Any) bool

Insert a keyframe on a track at the given time.

delete_keyframe(property_name: str, keyframe_index: int) bool

Delete a keyframe by index from a track.

copy_keyframes(property_name: str) int

Copy all keyframes from a track to the clipboard. Returns count.

paste_keyframes(property_name: str, time_offset: float = 0.0) int

Paste clipboard keyframes onto a track. Returns count pasted.

set_track_easing(property_name: str, easing_name: str)

Set the easing function for a track.

set_loop(loop: bool)

Toggle loop mode.

set_speed(speed: float)

Set playback speed.

play()

Play the active clip.

pause()

Pause playback.

stop()

Stop playback and reset to start.

seek(time: float)

Seek to a specific time.

property is_playing: bool
property current_time: float
draw(renderer)
get_state() dict

Serialize editor panel state.

restore_state(data: dict)

Restore editor panel state.

size_x

‘Property(…)’

size_y

‘Property(…)’

property size: simvx.core.math.types.Vec2
get_theme() simvx.core.ui.core.Theme
get_rect() tuple[float, float, float, float]
get_global_rect() tuple[float, float, float, float]
is_point_inside(point) bool
set_anchor_preset(preset: simvx.core.ui.core.AnchorPreset)
set_focus()
grab_focus()
release_focus()
has_focus() bool
focus_next_control()
focus_previous_control()
grab_mouse()
release_mouse()
set_drag_preview(control: simvx.core.ui.core.Control)
draw_popup(renderer)
is_popup_point_inside(point) bool
popup_input(event)
dismiss_popup()
z_index

‘Property(…)’

z_as_relative

‘Property(…)’

property absolute_z_index: int
property position: simvx.core.math.types.Vec2
property rotation: float
property rotation_degrees: float
property scale: simvx.core.math.types.Vec2
property global_position: simvx.core.math.types.Vec2
property global_rotation: float
property global_scale: simvx.core.math.types.Vec2
property forward: simvx.core.math.types.Vec2
property right: simvx.core.math.types.Vec2
translate(offset: tuple[float, float] | numpy.ndarray)
rotate(radians: float)
rotate_deg(degrees: float)
look_at(target: tuple[float, float] | numpy.ndarray)
transform_points(points: list[simvx.core.math.types.Vec2]) list[simvx.core.math.types.Vec2]
draw_polygon(renderer, points: list[simvx.core.math.types.Vec2], closed=True, color=None)
wrap_screen(margin: float = 20)
script_error_raised

‘Signal(…)’

classmethod __init_subclass__(**kwargs)
property name: str
property process_mode: simvx.core.descriptors.ProcessMode
reset_error() None
add_child(node: simvx.core.node.Node) simvx.core.node.Node
remove_child(node: simvx.core.node.Node)
reparent(new_parent: simvx.core.node.Node)
get_node(path: str) simvx.core.node.Node
find_child(name: str, recursive: bool = False) simvx.core.node.Node | None
find(node_type: type) simvx.core.node.Node | None
find_all(node_type: type, recursive: bool = True) list
property path: str
add_to_group(group: str)
remove_from_group(group: str)
is_in_group(group: str) bool
enter_tree() None
exit_tree() None
process(dt: float) None
physics_process(dt: float) None
input_event(event: simvx.core.events.InputEvent) None
input(event: simvx.core.events.TreeInputEvent) None
unhandled_input(event: simvx.core.events.TreeInputEvent) None
start_coroutine(gen: simvx.core.descriptors.Coroutine) simvx.core.descriptors.CoroutineHandle
stop_coroutine(gen_or_handle)
destroy()
queue_free

None

property tree: simvx.core.scene_tree.SceneTree
get_tree() simvx.core.scene_tree.SceneTree
__getitem__(key: str)
classmethod get_properties() dict[str, simvx.core.descriptors.Property]
get_settings

None

__repr__()