Skip to content

Instantly share code, notes, and snippets.

@tin2tin
tin2tin / build_otio_wheel.sh
Created Nov 26, 2020 — forked from Celeborn2BeAlive/build_otio_wheel.sh
Shell script to build a wheel of OpenTimelineIO 0.12.1
View build_otio_wheel.sh
#!/bin/bash
# This script generate a wheel for OpenTimelineIO in dist folder
# We need it has a patch to install otio 0.12.1 in Windows Blender because it requires compilation
# This wheel should be distributed with code that depends on otio 0.12.1 and installed using Blender's python -m pip
# You need python (3.7.*) and Visual Studio 2017+
CURRENT_DIR=`dirname $0`
ROOT_DIR=$CURRENT_DIR/
@tin2tin
tin2tin / transcode_for_avid.sh
Created May 26, 2020 — forked from bradcordeiro/transcode_for_avid.sh
FFmpeg Command to Transcode DNxHR for Avid Media Composer
View transcode_for_avid.sh
# Change number following -profile:v to encode different flavors of DNxHR
# 1: DNxHR 444
# 2: DNxHR HQX
# 3: DNxHR HQ
# 4: DNxHR SQ
# 5: DNxHR LB
ffmpeg -i ${INPUT} -c:v dnxhd -profile:v 3 -c:a pcm_s24le ${OUTPUT}
@tin2tin
tin2tin / basic_ui_documented.py
Last active Oct 15, 2021 — forked from AzureDVBB/basic_ui_documented.py
A commented template for making simple UI in blender using the bpy python API
View basic_ui_documented.py
#import the bpy module to access blender API
import bpy
#WARNING: this is written and tested for blender 2.79
#blender 2.8 and newer will likely have a different python API
#create a property group, this is REALLY needed so that operators
#AND the UI can access, display and expose it to the user to change
#in here we will have all properties(variables) that is neccessary
class CustomPropertyGroup(bpy.types.PropertyGroup):
@tin2tin
tin2tin / log.py
Created Jun 18, 2019 — forked from tamask/log.py
Route system output (stdout/stderr) of Blender to the app console (put in scripts/startup)
View log.py
import os
import sys
import bpy
output = None
input = None
info = None
error = None
write = None
View blender-filebrowser-display-override.py
# ##### 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