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
# ***** 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
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 |
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
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 |
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 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' |
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 | |
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') |
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 | |
from mathutils import Vector | |
bl_info = { | |
'name': 'Add Empties', | |
'author': 'Dealga McArdle (zeffii)', | |
'version': (1, 1, 2), | |
'blender': (2, 7, 3), | |
'location': 'Add > Empties', |
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
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() |
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
# 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 |
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
# 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 |