Skip to content

Instantly share code, notes, and snippets.

View FreshlyBrewedCode's full-sized avatar
🤘

Karl Möller FreshlyBrewedCode

🤘
View GitHub Profile
@FreshlyBrewedCode
FreshlyBrewedCode / auto_rig_hierarchy.py
Created May 12, 2021 13:45
Blender Auto Rig Hierarchy Operator
import bpy
from mathutils import Vector, Matrix
#Create the armature
def create_armature(object, collection):
armature_data = bpy.data.armatures.new(object.name)
armature = bpy.data.objects.new(object.name, armature_data)
armature.matrix_basis = object.matrix_basis
collection.objects.link(armature)
return armature
{
"asset" : {
"generator" : "Khronos glTF Blender I/O v1.3.48",
"version" : "2.0"
},
"scene" : 0,
"scenes" : [
{
"name" : "Scene",
"nodes" : [
@FreshlyBrewedCode
FreshlyBrewedCode / SceneOverlayWindow.cs
Last active January 6, 2021 22:13
Unity Editor utility class to hack a native overlay window into the scene view.
using System;
using System.Reflection;
using UnityEditor;
using UnityEngine;
public class SceneOverlayWindow
{
private object sceneOverlayWindow;
private MethodInfo showWindow;
public UnityEngine.Object target;
@FreshlyBrewedCode
FreshlyBrewedCode / commandbar.json
Last active May 6, 2021 01:31
Dark theme for the VSCode Kanba extension (https://github.com/mkloubert/vscode-kanban). Screenshot in comments. The commandbar.json can be used with the vscode-commandbar extension (https://github.com/ppatotski/vscode-commandbar) to add a shortcut for the Kanban board to the status bar.
{
"skipTerminateQuickPick": true,
"skipSwitchToOutput": false,
"skipErrorMessage": true,
"commands": [
{
"text": "$(project) Kanban",
"tooltip": "Open Kanban Board",
"color": "white",
"command": "extension.kanban.openBoard",