Build musical samplers with blender, splended helps you!
put splended.py into ~/Application Support/Blender/2.xx/scripts/
import bpy | |
from pdb import set_trace | |
# quick handy little lambdas | |
first = lambda l : l[0] | |
last = lambda l : l[-1] | |
def chunks(lst, n): | |
for i in range(0, len(lst), n): | |
yield lst[i:i+n] |
import bpy | |
text = bpy.context.edit_text | |
def has_selection(text): | |
return not (text.select_end_line == text.current_line and \ | |
text.current_character == text.select_end_character) | |
print(has_selection(text)) |
import bpy | |
from bpy_extras import keyconfig_utils | |
import sys | |
# Dump Blender keyconfig as HTML. | |
# How to use | |
# 1. Open this file in Blender's Text Editor. | |
# 2. Do "Run Script". | |
# 3. New Text "keyconfigs.html" will be added. | |
# save it somewhere and open in web browser (recommends Safari, Chrome or Firefox). |
#!/usr/bin/python | |
''' | |
Author: Thomas Goodwin | |
Company: Geon Technologies, LLC, 2014 | |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 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 GNU General Public License for more details. | |
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. |
Blenderで動画作った際の副産物置き場。
''' | |
installation | |
- from a fresh Blender start | |
- drop ufkoot.py into your scripts/addons(_contrib) folder | |
- in User Preferences / addons / Testing (or community..) / Development | |
- tick 'Info To Text' | |
- press Save User Settings | |
- close the User Preferences Panel | |
- press Ctrl + U , (this will store this preference in the startup.blend) |
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can 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 |
# made in response to | |
# http://blender.stackexchange.com/q/44983/935 | |
bl_info = { | |
"version": (1, 0), | |
"blender": (2, 75, 0), | |
"name": "testing play pause", | |
"description": """testing addon""" , | |
"category": "test", |
# ##### BEGIN GPL LICENSE BLOCK ##### | |
# | |
# This program is free software; you can 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 |