Skip to content

Instantly share code, notes, and snippets.

View zeffii's full-sized avatar

Dealga McArdle zeffii

View GitHub Profile
@zeffii
zeffii / NodeTree
Created September 3, 2016 14:15 — forked from anonymous/NodeTree
to do later?
{
"export_version": "0.062",
"framed_nodes": {},
"groups": {},
"nodes": {
"Float": {
"bl_idname": "FloatNode",
"color": [
0.6079999804496765,
0.6079999804496765,
@zeffii
zeffii / matplotlib_fft.py
Last active August 18, 2016 12:23 — forked from hyperconcerto/matplotlib_fft.py
Matplotlib realtime audio FFT
#!/usr/bin/env python
# encoding: utf-8
## Module infomation ###
# Python (3.4.4)
# numpy (1.10.2)
# PyAudio (0.2.9)
# matplotlib (1.5.1)
# All 32bit edition
########################
@zeffii
zeffii / shading.py
Last active January 20, 2016 22:09 — forked from anonymous/shading.py
shading menu for with objects and without objects
class PieRMB(Menu):
bl_idname = "pie.shadingview"
bl_label = "Viewport Shading "
def draw(self, context):
layout = self.layout
obj = context.object
pie = layout.menu_pie()
bl_info = {
"name": "FILL ME MO",
"author": "",
"version": (0, 1),
"blender": (2, 7, 6),
"category": "3D View"
}
import os
import bpy
@zeffii
zeffii / blender_loft2.py
Last active December 4, 2015 12:23 — forked from anonymous/blender_loft2.py
test
# filename = "PWD/blender_loft.py"
# exec(compile(open(filename).read(), filename, 'exec'))
import bpy
import bpy_extras
import numpy
from mathutils import Matrix
# Create a spline/bezier from a list of points
def new_curve_from_points(pLists, name_prefix):
@zeffii
zeffii / numvia.py
Last active November 29, 2015 20:49 — forked from anonymous/numvia.py
test
from enum import Enum
import bgl as GL
Triangles = 0
NumVAOs = 1
ArrayBuffer = 0
NumBuffers = 1
@zeffii
zeffii / fraaLsystem3.py
Last active October 25, 2015 15:11 — forked from anonymous/fraaLsystem3.py
test
"""
NO this doesn't work yet.
lifted from: http://www.4dsolutions.net/ocn/lsystems.html
"F": Move forward a step of length d. A line segment between
points (X,Y,Z) and (X',Y',Z') is drawn.
"["
and
@zeffii
zeffii / foobar.py
Created October 24, 2015 12:41 — forked from anonymous/foobar.py
test
import bpy
class SimpleCallback(bpy.types.Operator):
bl_idname = "object.variable_callback"
bl_label = "Simple Callback"
variable_name = bpy.props.StringProperty()
ops_kind = bpy.props.FloatProperty()
import bpy
bl_info = {
"name": "Refresh Images",
"version": (0, 1),
"blender": (2, 76, 0),
"description": "Refresh images",
"category": "3D View"
}
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you may redistribute it, and/or
# modify it, under the terms of the GNU General Public License
# as published by the Free Software Foundation - either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the