This file contains hidden or 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 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] |
This file contains hidden or 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
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 |
This file contains hidden or 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
# ***** 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 |
This file contains hidden or 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 | |
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", |
This file contains hidden or 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 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): |
This file contains hidden or 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
""" | |
load directory as layers | |
export as gif, animated | |
-i -d -f -s | |
""" | |
import math | |
import os | |
# from gimpfu import * |
This file contains hidden or 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
#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"): |
This file contains hidden or 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 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""" |
This file contains hidden or 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 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""" |
This file contains hidden or 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
{'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', |