Skip to content

Instantly share code, notes, and snippets.

View zeffii's full-sized avatar

Dealga McArdle zeffii

View GitHub Profile
@zeffii
zeffii / gifenc.sh
Created May 8, 2015 17:33 — forked from anonymous/gifenc.sh
ffmpeg
#!/bin/sh
# chmod u+x program_name
# % ./gifenc.sh video.mkv anim.gif
palette="/tmp/palette.png"
# filters="fps=15,scale=320:-1:flags=lanczos"
filters="fps=15"
# ##### 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
'''
Dealga McArdle (2015) | GPL3 license.
'''
import math
from collections import defaultdict
import bpy
import bmesh
import mathutils
@zeffii
zeffii / ctm_export.py
Last active August 29, 2015 14:20 — forked from anonymous/ctm_export.py
note..this doen't work yet. go away
import os
from ctypes import *
from ctm.openctm import *
from contextlib import contextmanager
import bpy
import bmesh
# http://openctm.sourceforge.net/
# gleaned from http://prideout.net/blog/?p=44
>>> list-sinks
2 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_01_00.0.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause:
priority: 9059
volume: 0: 78% 1: 78%
@zeffii
zeffii / flunkbar
Last active August 29, 2015 14:19 — forked from anonymous/flunkbar
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
== or ==
# in a folder wich contains BioBlender.
git clone https://github.com/MonZop/BioBlender.git BioBlender
@zeffii
zeffii / fafafufu.py
Created April 14, 2015 14:10 — forked from anonymous/fafafufu.py
scriptnig grease pencli
'''
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
@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)
import bpy
class InfoToTextBlock(bpy.types.Operator):
"""Tooltip"""
bl_idname = "info.to_text_block"
bl_label = "Simple Copy To TextBlock Operator"
def execute(self, context):
bpy.ops.info.report_copy()
@zeffii
zeffii / bl_props.txt
Last active August 29, 2015 14:19 — forked from anonymous/bl_props.txt
bl_props, props
bl_<prop> | allowed
---------------+-------------------------------------
bl_space_type | 'CLIP_EDITOR', 'CONSOLE', 'DOPESHEET_EDITOR', 'EMPTY',
| 'FILE_BROWSER', 'GRAPH_EDITOR', 'IMAGE_EDITOR', 'INFO',
| 'LOGIC_EDITOR', 'NLA_EDITOR', 'NODE_EDITOR', 'OUTLINER',
| 'PROPERTIES', 'SEQUENCE_EDITOR', 'TEXT_EDITOR', 'TIMELINE',
| 'USER_PREFERENCES', 'VIEW_3D'
---------------+-------------------------------------
bl_region_type | 'CHANNELS', 'HEADER', 'PREVIEW', 'TEMPORARY', 'TOOLS',
| 'TOOL_PROPS', 'UI', 'WINDOW'