Skip to content

Instantly share code, notes, and snippets.

View GuyMicciche's full-sized avatar

Guy Micciche GuyMicciche

View GitHub Profile
@BigRoy
BigRoy / fusion_save_active_view_image.py
Last active October 13, 2024 03:29
Blackmagic Design Fusion save image from active comp view
import itertools
def iter_viewers(comp):
"""Iterate GLPreview views for Composition.
It prefers the active view first, then yields views
from the current frame (active window), then from the comp,
then from floating views last.
@jeremybep
jeremybep / fusion_studio-snippets.md
Last active October 13, 2024 06:33
Fusion studio - snippets

Module ScriptLib (scriptapp) de BMD

Python binding de BlackMagic, utile pour traiter une IHM hors fusion ou passer par un Terminal.

  • Fusion 7
import PeyeonScript as eyeon
fusion = eyeon.scriptapp("Fusion")
print fusion
@zlovatt
zlovatt / getLayerType.jsx
Last active December 29, 2025 02:24
ExtendScript: Get AE Layer Type
(function getSelectedLayerType() {
/**
* Gets the type of a given layer
*
* @param {Layer} layer Layer to check
* @return {string} Layer type
*/
function getLayerType(layer) {
switch (layer.matchName) {
case "ADBE Vector Layer":
@zlovatt
zlovatt / getSetTemplatePath.jsx
Last active December 29, 2025 02:23
Extendscript: Get & Set After Effects Template Path
function getTemplatePath () {
if (parseFloat(app.version) < 14.0) return;
try {
if (app.preferences.havePref("Template Project", "Location", PREFType.PREF_Type_MACHINE_INDEPENDENT)) {
return app.preferences.getPrefAsString("Template Project", "Location", PREFType.PREF_Type_MACHINE_INDEPENDENT);
} else {
throw new Error("Template Project Location preference does not exist.");
}
} catch(e) {
@zlovatt
zlovatt / getFocusedComp.jsx
Last active December 29, 2025 02:22
Extendscript: Gets currently open comp from timeline, as opposed to selected comp in project panel
(function () {
/**
* Gets currently open comp from timeline, as opposed to
* selected comp in project panel
*
* @returns {CompItem | null} Active comp, or null if none
*/
function getFocusedComp() {
var activeItem = app.project.activeItem;
@zlovatt
zlovatt / getEnums.jsx
Last active December 29, 2025 02:21
Extendscript: AE enum values (17.7)
(function () {
var allEnums = {
AlphaMode: {},
AutoOrientType: {},
BlendingMode: {},
ChannelType: {},
CloseOptions: {},
FastPreviewType: {},
FeetFramesFilmType: {},
FieldSeparationType: {},
@kaimi-
kaimi- / gist:6b3c99538dce9e3d29ad647b325007c1
Last active December 24, 2025 05:19
Possible IP Bypass HTTP Headers
CACHE_INFO: 127.0.0.1
CF_CONNECTING_IP: 127.0.0.1
CF-Connecting-IP: 127.0.0.1
CLIENT_IP: 127.0.0.1
Client-IP: 127.0.0.1
COMING_FROM: 127.0.0.1
CONNECT_VIA_IP: 127.0.0.1
FORWARD_FOR: 127.0.0.1
FORWARD-FOR: 127.0.0.1
FORWARDED_FOR_IP: 127.0.0.1
@X-Raym
X-Raym / DaVinci Resolve Scripting Doc.txt
Last active December 9, 2025 13:05
DaVinci Resolve Scripting API Doc v20.3
Last Updated: 7 Oct 2025
-------------------------
In this package, you will find a brief introduction to the Scripting API for DaVinci Resolve Studio. Apart from this README.txt file, this package contains folders containing the basic import
modules for scripting access (DaVinciResolve.py) and some representative examples.
From v16.2.0 onwards, the nodeIndex parameters accepted by SetLUT() and SetCDL() are 1-based instead of 0-based, i.e. 1 <= nodeIndex <= total number of nodes.
Overview
--------
As with Blackmagic Fusion scripts, user scripts written in Lua and Python programming languages are supported. By default, scripts can be invoked from the Console window in the Fusion page,