Skip to content

Instantly share code, notes, and snippets.

View zeffii's full-sized avatar

Dealga McArdle zeffii

View GitHub Profile
import bpy
import numpy as np
def RK4(x, v, n, h, F):
for i in range(n): # written for readability, not speed
kv1 = F(x[:, i])
kx1 = v[:, i]
@zeffii
zeffii / Titles
Created June 17, 2015 12:04 — forked from anonymous/Titles
Lead 1 | Jane Dough
Lead 2 | John Dough
Lead 3 | Ms Smith
Lead 3 | Mr White
|
Support 1 | Mr Pinker
Support 2 | Mr Red
|
Director | Mr Golder
# ***** 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
@zeffii
zeffii / __init__.py
Created June 14, 2015 08:17 — forked from anonymous/__init__.py
Pie menu with custom icons
import os
import bpy
import bpy.utils.previews
from bpy.types import Menu, Operator
from bpy.props import StringProperty
bl_info = {
"name": "ViewPort Navigator Pie Menu (Demo - with custom icons)",
"author": "Dealga McArdle",
import bpy
import bmesh
import random
def deselect(bm):
for f in bm.faces:
f.select = False
def pick_two_random_faces(bm):
for i in random.sample(range(len(bm.faces)), 2):
"""
load directory as layers
export as gif, animated
-i -d -f -s
"""
import math
import os
# from gimpfu import *
#Script to import multiple .obj files into blender
import os
import bpy
# put the location to the folder where the objs are located here in this fashion
path_to_obj_dir = '/home/user/Desktop/brainstem/'
def path_iterator(path_name):
for fp in os.listdir(path_name):
if fp.endswith(".obj"):
import bpy
import os
from bpy_extras.io_utils import ExportHelper
from bpy.props import StringProperty, BoolProperty, EnumProperty, IntProperty
from bpy.types import Operator
class ExportSelectedAsObj(Operator, ExportHelper):
"""This appears in the tooltip of the operator and in the generated docs"""
import bpy
import os
from bpy_extras.io_utils import ExportHelper
from bpy.props import StringProperty, BoolProperty, EnumProperty, IntProperty
from bpy.types import Operator
class ExportSelectedAsObj(Operator, ExportHelper):
"""This appears in the tooltip of the operator and in the generated docs"""
{'categories': {
'Mesh': {
'add_dimensions': {
'last_update': 'unixtime',
'location_remote:': 'addons_contrib',
'module_name': 'add_dimension',
'rev': (0, 0, 1),
'structure': 'file'},
'add_dimensions3d': {
'last_update': 'unixtime',