Skip to content

Instantly share code, notes, and snippets.

View AndrewHazelden's full-sized avatar

Andrew Hazelden AndrewHazelden

View GitHub Profile
Composition {
CurrentTime = 2,
RenderRange = { 1, 144 },
GlobalRange = { 1, 144 },
CurrentID = 81,
HiQ = true,
PlaybackUpdateMode = 0,
StereoMode = false,
Version = "Fusion Studio 19.0 build 44",
SavedOutputs = 1,
@AndrewHazelden
AndrewHazelden / Camera Sensor Database.lua
Last active May 29, 2024 20:38
A Resolve Studio/Fusion Studio Lua script to apply camera sensor information to Camera3D, uCamera, CameraTracker, Renderer3D, and uRenderer nodes.
--[[--
Camera Sensor Database v1 - 2024-05-29 05.30 PM (UTC -3)
Database By: Jacob Danell <[email protected]>
Fusion Studio GUI By: Andrew Hazelden <[email protected]>
Overview:
Apply camera sensor information to BMD Fusion Studio based Camera3D, uCamera, CameraTracker, Renderer3D, and uRenderer nodes.
--[[--
__ ___ __ _
/ |/ /___ / /_ (_)_ _______
/ /|_/ / __ \/ __ \/ / / / / ___/
/ / / / /_/ / /_/ / / /_/ (__ )
/_/ /_/\____/_.___/_/\__,_/____/
KartaVP Mobius Transform - 2024-01-28 05.08 PM
Ported by Andrew Hazelden ([email protected])
@AndrewHazelden
AndrewHazelden / Valkyrie-Server.js
Last active November 19, 2023 15:02
A NodeJS "Valkyrie-Server.js" WebUI Example
#!/usr/bin/env node
// Valkyrie-Server.js 2023-11-19
// By Andrew Hazelden ([email protected]
const http = require("http");
const host = "localhost";
const port = 6761;
const requestListener = function (req, res) {
@AndrewHazelden
AndrewHazelden / TestModifer.fuse
Created April 21, 2023 22:47
A BMD Fusion Studio Fuse that probes an image for values
FuRegisterClass("TestModifier", CT_Modifier, {
REGS_Name = "TestModifier",
REGS_Category = "Modifiers",
REGS_OpDescription = "Test Modifier",
REGID_DataType = "Point",
REGID_InputDataType = "Point",
})
function Create()
@AndrewHazelden
AndrewHazelden / gist:08afb80fac8aa7d03fa4843666ab06fe
Created July 22, 2022 02:01
Fusion Studio | ScriptVal and ScriptViewShader Registry Entries
_ScriptVal___gc
_ScriptVal___new
_ScriptVal__newDef
_ScriptVal__newScriptVal
_ScriptVal_Type
_ScriptValListControl___gc
_ScriptValListControl__cast
_ScriptValListControl__GetAttr_bool
_ScriptValListControl__GetAttr_float64
_ScriptValListControl__GetAttr_ID
@AndrewHazelden
AndrewHazelden / Copy to Clipboard.lua
Created March 13, 2017 09:47
A Blackmagic Design Fusion LUA script example to copy items into the clipboard using xclip (Linux), clip (Windows), and pbcopy (macOS)
------------------------------------------------------------------------------
-- Copy to Clipboard Script for Fusion - 2017-03-13 06.27 AM
-- by Andrew Hazelden
-- www.andrewhazelden.com
-- [email protected]
------------------------------------------------------------------------------
-- Display the extra debugging verbosity detail in the console log
printStatus = true
-- printStatus = false
@AndrewHazelden
AndrewHazelden / FusionFileSelection.lua
Created February 11, 2016 12:05
A Blackmagic Design Fusion LUA script example to check the current comp's flow area for the currently selected Loader/Saver nodes.
-- Find out if we are running Fusion 6, 7, or 8
local fu_major_version = math.floor(tonumber(eyeon._VERSION))
-- Find out the current operating system platform. The platform local variable should be set to either "Windows", "Mac", or "Linux".
local platform = ""
if string.find(fusion:MapPath("Fusion:\\"), "Program Files", 1) then
-- Check if the OS is Windows by searching for the Program Files folder
platform = "Windows"
elseif string.find(fusion:MapPath("Fusion:\\"), "PROGRA~1", 1) then
@AndrewHazelden
AndrewHazelden / getMayaPaneInspector.mel
Created January 9, 2016 11:57
A MEL script to inspect the pane element under the cursor.
// Find out the name of the Maya GUI pane element under the cursor
string $pointedPaneElement = `paneLayout -paneUnderPointer`;
string $paneConfig = `paneLayout -query -configuration $pointedPaneElement`;
int $paneChildren = `paneLayout -query -numberOfChildren $pointedPaneElement`;
string $docTag = `paneLayout -query -docTag $pointedPaneElement`;
int $visible = `paneLayout -query -visible $pointedPaneElement`;
int $manage = `paneLayout -query -manage $pointedPaneElement`;
int $enable = `paneLayout -query -enable $pointedPaneElement`;
int $width = `paneLayout -query -width $pointedPaneElement`;
int $height = `paneLayout -query -height $pointedPaneElement`;
@AndrewHazelden
AndrewHazelden / getMayaPaneName.mel
Created January 9, 2016 11:33
A MEL script to find out the name of the panel GUI element under the cursor
// Find out the name of the Maya GUI pane element under the cursor
paneLayout -paneUnderPointer;