Skip to content

Instantly share code, notes, and snippets.

View from_markers_to_sequence_and_fcpxml.py
from collections import namedtuple
from functools import reduce
import os
from shlex import split
from subprocess import check_output
import bpy
import re
bl_info = {
'name': 'Generate Sequence from Markers',
@tin2tin
tin2tin / shot_detect.py
Created Jan 18, 2021
Shot detection and split strips accordingly in Blender VSE
View shot_detect.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
@tin2tin
tin2tin / render_strips.py
Created Jan 17, 2021
Render selected strips
View render_strips.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
@tin2tin
tin2tin / otio_export.py
Created Nov 30, 2020
Otio export example code
View otio_export.py
import opentimelineio as otio
timeline = otio.schema.Timeline('Project 1', metadata={"fcp_xml": {
"@id": "sequence-1",
"media": {
"audio": {
"format": {
"samplecharacteristics": {
"depth": "16",
"samplerate": "48000"
@tin2tin
tin2tin / restore_menus.py
Created Nov 28, 2020
Restore menus after unregistering a menu-altering-addon. Add this to unregister:
View restore_menus.py
bpy.ops.script.python_file_run(filepath= bpy.utils.resource_path(type="LOCAL")+"\\scripts\\startup\\bl_ui\\space_sequencer.py")
bpy.ops.script.reload()
@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 / Export_OTIO.py
Last active Nov 26, 2020
Testing OTIO export from Blender. Needs OTIO module installed. Currently only one channel of video with no gaps exported as .edl, seems to be working.
View Export_OTIO.py
bl_info = {
"name": "Export Video Sequence Editor",
"author": "tintwotin",
"version": (1, 0),
"blender": (2, 80, 0),
"location": "File > Export > Video Sequence Editor",
"description": "Export to various OTIO supported formats",
"warning": "",
"doc_url": "",
"category": "Sequencer",
View Export_Strips.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
View TextFX.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
View OpenGL_Lights.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