Skip to content

Instantly share code, notes, and snippets.

@Diego-Visualma
Diego-Visualma / cineform_to_sequence.sh
Last active September 24, 2021 02:39
Convert CineForm movie exported from Blackmagic Resolve to image sequence using ffmpeg
#! /bin/bash
#######################
## Command for converting Backmagic Resolve encoded CineForm files to tiff sequence
## As of sept. 2021, resolve does not correctly indicate codec id on cineform files
## causing ffmepg to fail. The script forces input codec, and searches for all movies
## within the folder where it is run, adding the sequences to subfolders in ./image_seq
#######################
process_video () {
@Diego-Visualma
Diego-Visualma / bl_evaluate_active_camera.py
Created September 29, 2021 08:21
Make blender set the active camera every frame using handlers, to enable multi-camera switching within a single scene. Works in cli-rendering.
############
# Blender's camera switching system using markers bound to cameras does not work with command line rendering.
# It requires the gui context to exist. Also, it is not very reliable when using multiple computers to render or when
# animating camera visibility.
#
# This script will traverse all existing cameras, evaluating their render_hidden attribute.
# It will switch to the first visible camera it encounters.
#
# The scripts requires enabling allow scripts on load. The "register" optino must be checked for the text data block.
# The cameras render_hidden attribute must have at least one keyframe, and the camera object name must start with "cam_".