Skip to content

Instantly share code, notes, and snippets.

View zeffii's full-sized avatar

Dealga McArdle zeffii

View GitHub Profile
@zeffii
zeffii / tt_operators.py
Created April 11, 2015 06:42 — forked from anonymous/tt_operators.py
good tubemodal minim
# ***** 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 / tt_operators.py
Created April 10, 2015 19:33 — forked from anonymous/tt_operators.py
modal curve ops
# ***** 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 / flunkbar
Created April 9, 2015 14:02 — forked from anonymous/flunkbar
links on drive symbolics
https://github.com/nortikin/sverchok
mkdir ~/BioBlender
git clone https://github.com/MonZop/BioBlender.git ~/BioBlender
ln -s ~/BioBlender ~/.config/blender/%BLENDER_VERSION_NUM%/scripts/addons/BioBlender
cd ~/BioBlender
git checkout remotes/origin/BRANCH_NAME
cd C:\some\directory\BioBlender
1098 122 12 122
12 127 1098 127
1098 283 12 283
1098 288 12 288
4 21 4 551
1098 31 1098 524
1084 518 25 518
1001 349 1047 349
957 357 912 357
108 373 62 373
import bpy
import urllib.request
from zipfile import ZipFile
import shutil
import os
from os.path import basename
from os.path import dirname
url = 'https://github.com/nortikin/sverchok/archive/master.zip'
@zeffii
zeffii / Text.001
Created March 22, 2015 17:37 — forked from anonymous/Text.001
import bpy
wm = bpy.context.window_manager
if True:
km = wm.keyconfigs.default.keymaps['Console']
new_shortcut = km.keymap_items.new('console.do_action', 'RET', 'PRESS', ctrl=True)
print('complete')
import bpy
import bmesh
from mathutils import Vector
bl_info = {
'name': 'Add Empties',
'author': 'Dealga McArdle (zeffii)',
'version': (1, 1, 2),
'blender': (2, 7, 3),
'location': 'Add > Empties',
def specific_remap_dict(path_to_pdb):
sd = {}
idx = 0
with open(path_to_pdb) as pdb_file:
for line in pdb_file:
if line.startswith('ATOM'):
annotated = line[12].strip()
specific_element = line[13:16].strip()
@zeffii
zeffii / MLP_mod.py
Last active August 29, 2015 14:16 — forked from anonymous/MLP_mod.py
# kdArrange v.005
import bmesh
import bpy
import mathutils
from mathutils import Vector
from collections import defaultdict
from BioBlender.table_values import values_fi
from BioBlender.BioBlender import scale_vdw
@zeffii
zeffii / MLP_mod.py
Last active August 29, 2015 14:16 — forked from anonymous/MLP_mod.py
# kdArrange v.003
import bmesh
import bpy
import mathutils
from mathutils import Vector
from collections import defaultdict
from BioBlender.table_values import values_fi
from BioBlender.BioBlender import scale_vdw