Skip to content

Instantly share code, notes, and snippets.

@pcote
pcote / keyframe_point_swapper.py
Created September 2, 2012 02:58
Blender test script that swaps pairs of selected keyframe points.
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]
@zeffii
zeffii / has_selection.py
Created September 23, 2012 23:20
checking if text has selection
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))
@Pentan
Pentan / keyconf_html.py
Last active November 24, 2018 06:54
Dump Blender key config as HTML.
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).
@lennart
lennart / README.md
Last active June 24, 2019 19:11
Splended, a simple Sampler Builder based on Blender… It is, though, just a script.

splended

Build musical samplers with blender, splended helps you!

Installation

OS X

put splended.py into ~/Application Support/Blender/2.xx/scripts/

@btgoodwin
btgoodwin / fcpxml_parse
Last active October 21, 2022 17:26
Final Cut Pro X FCPXML Parser
#!/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/.
@ugai
ugai / .swlg_scripts.md
Last active October 6, 2018 06:44
Blenderで動画作った際の副産物置き場

Blenderで動画作った際の副産物置き場。

  • EC2向けのネットワークレンダ用サービススクリプト
  • Blenderマクロ(Python)
  • OpenEXR連番から動画作成
@zeffii
zeffii / ufkoot.py
Last active February 12, 2024 02:00 — forked from anonymous/ufkoot.py
'''
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)
@p2or
p2or / blender-frame-hold.py
Last active February 8, 2024 14:42
FrameHold #Blender
# ##### 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",
@p2or
p2or / blender-toggle-simplify.py
Last active May 21, 2023 18:01
Blender - Toggle Simplify using Shift+Q, for http://blender.stackexchange.com/a/46864/3710 #Blender
# ##### 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