Skip to content

Instantly share code, notes, and snippets.

View agoose77's full-sized avatar
🏠
Working from home

Angus Hollands agoose77

🏠
Working from home
View GitHub Profile
4.80E-01
4.80E-01
-6.40E-01
-6.00E-01
-6.00E-01
-5.60E-01
-6.00E-01
-6.00E-01
-6.00E-01
-5.60E-01
5.60E-01
5.60E-01
5.20E-01
5.20E-01
5.20E-01
5.20E-01
5.20E-01
5.20E-01
5.20E-01
5.20E-01
0.25,-19.33697148,1.25E-01
0.289,-18.32537056,4.55E-02
0.309,-17.63222338,2.27E-02
0.335,-16.69791415,8.93E-03
0.357,-15.87123557,3.91E-03
0.396,-14.34483965,8.49E-04
0.418,-13.48836742,3.60E-04
0.466,-11.61828598,5.56E-04
0.458,-11.26606539,3.91E-04
0.483,-10.94420836,2.83E-04
{
"metadata": {
"name": "",
"signature": "sha256:37a992b67dcefc90d2e6c2b7333d2aed2e465f4053f120da258f9a664cbbb6e9"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@agoose77
agoose77 / nodes.py
Created May 4, 2015 15:08
Custom Nodes
import bpy
import re
from bpy.types import NodeTree, Node, NodeSocket
import nodeitems_utils
from nodeitems_utils import NodeCategory, NodeItem
# Implementation of custom nodes from Python
from bpy import types
from contextlib import contextmanager
from __future__ import print_function
import sys
import os
current_directory = os.path.split(os.path.abspath(__file__))[0]
sys.path.append(current_directory + "/" + "..")
import hive
from __future__ import print_function
import sys
import os
current_directory = os.path.split(os.path.abspath(__file__))[0]
sys.path.append(current_directory + "/" + "..")
import hive
# Begin Boilerplate
from __future__ import print_function
import sys
import os
current_directory = os.path.split(os.path.abspath(__file__))[0]
sys.path.append(current_directory + "/" + "..")
import hive
import hive
def build_foo_hive(i, ex, args):
i.foo_mod = hive.modifier(lambda h: print("Foo Plugin called!")
ex.plugin_foo = hive.plugin(i.foo_mod)
FooHive = hive.hive("FooHive", build_foo_hive)
def build_bar_hive(i, ex, args):
@agoose77
agoose77 / polar.py
Last active September 1, 2015 13:10
from math import acos, atan, cos, sin
from mathutils import Vector
def vect_to_polar(vect):
x, y, z = vect
r = vect.length
phi = acos(z / r)
theta = atan(y / x)