Skip to content

Instantly share code, notes, and snippets.

View cedricduriau's full-sized avatar
🌊

Cédric Duriau cedricduriau

🌊
View GitHub Profile
@cedricduriau
cedricduriau / fusion_renamenodesfromclip.py
Last active November 9, 2020 20:51
Fusion Comp Script, renames all loader and saver nodes inside the active comp with the filename, without extension, of their Clip.
# stdlib module
import os
if __name__ == "__main__":
# get all loaders in current comp
loaders = comp.GetToolList(False, "Loader").values()
savers = comp.GetToolList(False, "Saver").values()
nodes = []
@cedricduriau
cedricduriau / pianotiles2bot.py
Last active February 12, 2022 10:22
Piano Tiles 2 auto clicker bot.
"""
Piano Tiles 2 auto clicker bot.
This is an auto clicker bot for the online Piano Tiles 2 game.
I wrote this on a late night after watching a video of a similar project and
decided to give it a go myself. I'm fun at parties, trust me.
Dependencies:
- pyautogui
- fastgrab 0.2.0
@cedricduriau
cedricduriau / progressbar.py
Created October 25, 2020 13:57
CLI/GUI Progress Bar
# stdlib modules
import sys
import time
# third party modules
from PySide2 import QtCore, QtWidgets
class AbstractProgressBar(QtCore.QObject):
# signals
reg_map = fusion:GetRegList() -- dict[int, Registry]
for _i, reg in ipairs(reg_map) do
comp:AddTool(reg.ID)
end
@cedricduriau
cedricduriau / fusion_getallregistryattributes.lua
Last active March 18, 2021 12:42
Fusion Comp Script to dump all registry attributes into a json file.
local json = require("dkjson")
function get_registry_info()
local data = {}
for _i, registry in ipairs(fusion:GetRegList()) do
data[registry.ID] = {}
for k, v in pairs(fusion:GetRegAttrs(registry.ID)) do
table.insert(data[registry.ID], k)
end
end