This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |