Skip to content

hkb_editor.gui.dialogs.mirror_skeleton_dialog

mirror_skeleton_dialog

Bases: DpgItem

Build the left/right bone pairings of a hkbMirroredSkeletonInfo.

Loads bone names from a Skeleton.xml and, optionally, existing pairings from a Character file. Pairings can be guessed from the bone names or edited per row, then copied out as CSV/XML or written back to a file.

Parameters:

Name Type Description Default
skeleton_path str

Skeleton.xml to load right away.

None
character_path str

Character file to load existing pairings from.

None
title str

Window title bar label.

'Mirror Skeleton'
tag int or str

Explicit tag; auto-generated if None.

None

mirrors property

mirrors: list[str]

The mirror bone name currently entered for each bone.

auto_mirror

auto_mirror() -> None

Guess the mirror bones from their left/right affixes.

fill_table

fill_table() -> None

Rebuild the bone table from the loaded skeleton and character.

show_message

show_message(
    msg: str = None, color: RGBA = style.red
) -> None

Show or hide the notification label. Pass msg=None to hide.

update_mirror_info

update_mirror_info() -> bool

Write the table back into the character's bonePairMap.

Ko-fi donations