Skip to content

Instantly share code, notes, and snippets.

View HannesBleicher's full-sized avatar

Hannes Bleicher HannesBleicher

View GitHub Profile
@HannesBleicher
HannesBleicher / blender_join_obj_toplevel.py
Last active February 21, 2025 14:48
This Blender Python script processes a collection named "Collection" by iterating over all top-level objects (those without a parent) within the collection. For each top-level object, it identifies and joins all of its direct child objects into the parent. The script includes detailed debug logging and displays a progress bar in the console to t…
import bpy
import sys
def print_progress_bar(progress, total, prefix='Processing', suffix='Complete', length=30):
"""
Prints a progress bar to the console.
"""
percent = progress / total if total else 1
filled_length = int(length * percent)
bar = '#' * filled_length + '-' * (length - filled_length)
@HannesBleicher
HannesBleicher / backupy.py
Last active July 14, 2025 12:34
Backaupy - my backup solution that just works
# uses rclone as backend
# install and rclone and cerate add romote named storagebox (reminder for me -> hetzner storage box using WebDAV)
# run script -> backupy.py dir_to_backup
# example -> backupy.py C:\Users\david\Documents\Projects\CS_IAA_HoloFace
import os
import subprocess
import argparse
from pathlib import Path
@HannesBleicher
HannesBleicher / Mixamo.js
Created July 8, 2022 17:38 — forked from gnuton/Mixamo.js
Script which downloads all mixamo animations for one character.
// Mixamo Animation downloadeer
//
// Author: Antonio Aloisio <[email protected]>
// Contributions: kriNon
//
// The following script make use of mixamo2 API to download all anims for a single character that you choose.
// The animations are saved with descriptive long names instead of the short ones used by default by mixamo UI.
//
// This script has been written by [email protected] and the author is not responsible of its usage
//