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 | |
from mathutils import Color | |
bl_info = { | |
'name': 'Select By Color', | |
'author': 'Tamas Kemenczy', | |
'version': (0, 1), | |
'blender': (2, 6, 1), | |
'location': 'View3D > Specials > Select By Color', | |
'description': 'Select all faces with the same vertex color of the selected face', |
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 | |
bl_info = { | |
'name': 'Vertex Data Map', | |
'author': 'Tamas Kemenczy', | |
'version': (0, 1), | |
'blender': (2, 6, 3), | |
'location': 'View3D > Specials > Vertex Data Map', | |
'description': 'Generate vertex data map UV texture', | |
'category': 'Mesh' |
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 | |
bl_info = { | |
'name': 'Map Vertex Colors', | |
'author': 'Tamas Kemenczy', | |
'version': (0, 1), | |
'blender': (2, 6, 1), | |
'location': 'View3D > Specials > Map Vertex Colors', | |
'description': 'Bake vertex colors to active uv texture image', | |
'category': 'Mesh' |
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 os | |
import bpy | |
bl_info = { | |
'name': 'Unity Lines (.js)', | |
'author': 'Tamas Kemenczy', | |
'version': (0, 1), | |
'blender': (2, 6, 3), | |
'location': 'File > Import-Export > Unity Lines (.js)', | |
'description': 'Export loose edges of a mesh as Unity GL immediate-mode commands', |
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 mathutils | |
bl_info = { | |
'name': 'Set Loose Vertex Colors', | |
'author': 'Tamas Kemenczy', | |
'version': (0, 1), | |
'blender': (2, 6, 3), | |
'location': 'View3D > Specials > Set Loose Vertex Colors', | |
'description': 'Store loose vertex colors via vertex groups', |
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 | |
bl_info = { | |
'name': 'Map Loose Vertex Colors', | |
'author': 'Tamas Kemenczy', | |
'version': (0, 1), | |
'blender': (2, 6, 3), | |
'location': 'View3D > Specials > Map Loose Vertex Colors', | |
'description': 'Bake vertex colors to active uv texture image', | |
'category': 'Mesh' |
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
function arc(x, y, rx, ry, from, to) { | |
var ar = from * Math.PI / 180; | |
var ax = x + rx * Math.cos(ar); | |
var ay = y + ry * Math.sin(ar); | |
var br = to * Math.PI / 180; | |
var bx = x + rx * Math.cos(br); | |
var by = y + ry * Math.sin(br); | |
var sweep = (to - from) > 180 ? 1 : 0; |
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 re | |
import sys | |
import json | |
import math | |
from lxml import etree | |
# TODO | |
# - text nodes | |
# - image nodes | |
# - transforms |
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
var Preloader = function(sources, oncomplete, onload) { | |
this.init(sources, oncomplete, onload); | |
} | |
Preloader.prototype = { | |
init: function(sources, oncomplete, onload) { | |
this.sources = sources; | |
this.oncomplete = oncomplete | |
this.onload = onload; | |
this.images = []; |
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
Boxfill = function(el) { | |
this.init(el); | |
}; | |
Boxfill.prototype = { | |
init: function(el) { | |
this.el = el; | |
this.el.style.overflow = 'hidden'; | |
if (!this.el.style.position) |