Skip to content

Instantly share code, notes, and snippets.

View NathanLovato's full-sized avatar
:octocat:
Preparing a lot of Free content!

Nathan Lovato NathanLovato

:octocat:
Preparing a lot of Free content!
View GitHub Profile
@NathanLovato
NathanLovato / power_sequencer.py
Last active August 19, 2017 11:52
Blender VSE keymap
import bpy
import os
def kmi_props_setattr(kmi_props, attr, value):
try:
setattr(kmi_props, attr, value)
except AttributeError:
print("Warning: property '%s' not found in keymap item '%s'" %
(attr, kmi_props.__class__.__name__))
except Exception as e:
@NathanLovato
NathanLovato / godot_docs_redirects.py
Created September 18, 2018 00:25
Pyautogui script to add redirects in batch in the Godot docs
"""
Pyautogui script to add redirects in batch in the Godot docs
"""
import pyautogui
import time
replace = {
"/old/url": "/new/url",
"/community/tutorials/3d/inverse_kinematics.html": "/tutorials/3d/inverse_kinematics.html", #example
}
@tool
extends EditorScenePostImport
const SUFFIXES = ["-anim", "-col"]
const AABB_SIZE := "aabb_size"
func _post_import(scene: Node) -> Object:
for node in scene.find_children("*"):
if node.name.ends_with("-anim") and node is MeshInstance3D: