Skip to content

Instantly share code, notes, and snippets.

@lyuma
lyuma / compact_godot_editor_theme.tres
Created October 15, 2023 21:27
Editor theme for Godot 4 which makes the inspector and tree view compact, removing unnecessary spaces between items.
[gd_resource type="Theme" load_steps=32 format=3]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fnqu7"]
content_margin_left = 4.0
content_margin_top = 1.0
content_margin_right = 4.0
content_margin_bottom = 1.0
bg_color = Color(0.1, 0.1, 0.1, 0.3)
corner_radius_top_left = 3
corner_radius_top_right = 3
@lyuma
lyuma / calibrated_tracker.gd
Last active July 7, 2024 08:58
Godot calibration system from raw XRNode3D to calibrated bone offset / IK target. (MIT License)
# Copyright 2024 V-Sekai contributors
# SPDX-License-Identifier: MIT
@tool
extends Node3D
#@export_node_path("Node3D") var raw_tracker: NodePath:
#set(value):
#raw_tracker = value
#raw_tracker_node = get_node_or_null(raw_tracker)
@export var raw_tracker_node: Node3D

License: CC-BY-4.0

Handles

For example, in BlueSKy, a handle is a display name, for example lyuma2d.bsky.app.

See Basis documentation: <>

Conceptually, a handle is a username.

@lyuma
lyuma / node_animation_recorder.gd
Last active May 25, 2025 02:36
Records position and rotation changes to a node tree.
# node_animation_recorder.gd
# Copyright (c) 2025- Lyuma and V-Sekai developers
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#