Instantly share code, notes, and snippets.

View MeshInfo.cs
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(MeshFilter))]
public class MeshInfo : Editor {
protected MeshFilter meshFilter;
protected Mesh mesh;
protected Vector3[] lines;
public void OnEnable() {
View io_fbx_target.py
import os
import bpy
import bpy_extras
import mathutils as mu
bl_info = {
'name': 'Autoexport FBX Target (.fbx)',
'author': 'Tamas Kemenczy',
'blender': (2, 80, 0),
'description': 'Autoexport an FBX file to a specified target path',
View AutoHotkey.ahk
; Capslock remapping should be done in the registry to avoid key repeat issues in here
; Capslock::Ctrl
; WheelUp::
; Send {WheelDown}
; Return
; WheelDown::
; Send {WheelUp}
; Return
View log.py
import os
import sys
import bpy
output = None
input = None
info = None
error = None
write = None
View export_beziers.py
import os
import bpy
import math
import mathutils
bl_info = {
'name': 'Export Beziers (.svg)',
'author': 'Tamas Kemenczy',
'version': (0, 1),
'blender': (2, 6, 9),
View plot.py
import bpy
import bmesh
NAME = '(Plot)'
def line(gen):
scene = bpy.context.scene
objects = bpy.data.objects
if NAME in objects:
View AutoHotKey.ahk
; Capslock remapping should be done in the registry to avoid key repeat issues in here
; Capslock::Ctrl
WheelUp::
Send {WheelDown}
Return
WheelDown::
Send {WheelUp}
Return
View light_vertex_colors.py
import bpy
import math
import mathutils
bl_info = {
'name': 'Light Vertex Colors',
'author': 'Tamas Kemenczy',
'version': (0, 1),
'blender': (2, 6, 3),
'location': 'View3D > Specials > Light Vertex Colors',
View light_vertices.py
import bpy
import math
import mathutils
def magnitude(v):
return math.sqrt(v.x ** 2 + v.y ** 2 + v.z ** 2)
COLOR = mathutils.Color((1, 1, 1))
RADIUS = 10
View acronym.py
#!/usr/bin/env python
import sys
last = ''
punc = ','
while True:
c = sys.stdin.read(1)
if c: