Updated as of 08 March 2019
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"clipname": { | |
"description": "The unique identifier for a product", | |
"type": "string" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:local w = tonumber( comp:GetPrefs("Comp.FrameFormat.Width")) | |
local h = tonumber(comp:GetPrefs("Comp.FrameFormat.Height")) | |
-- add the colon at the start of first line to allow multiline expression | |
if (w / h) > 1 then return Point(0.0, 0.0) | |
elseif (w / h) < 1 then return Point(0.5, 0.5) | |
else return Point(1, 1) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript | |
// 2022-11-04 | |
// returns target of front window if no actual selection | |
// prints the active Finder selection as POSIX paths, | |
// separated by newlines, ready to be eaten up by some other process | |
// I use in Fish shell like: | |
// for f in (finderselection.js) … etc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# demo code for youtube tutorial (https://youtu.be/9SrJ3mznVlY) | |
# note: tweaked for Python2 compatibility | |
# only works on a mac | |
# should be saved here: | |
# /Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Deliver | |
import os | |
# edit this variable so that it points to the sound you'd like to play | |
PATH_TO_SOUND = "~/macossounds/AIFF/Wild Eep.aiff" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
csvjson IAN\'S\ Scavenger\ hunt\ data\ merge\ -\ August\ 10\ update.csv > data.json | |
echo -n "Converting to json - " | |
node index.js > br.json | |
echo -n "Delete data.json" | |
echo -n "Converting to CSV - " | |
json2csv -i br.json > yay.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
# choice script by IAN | |
function prores() { | |
select choice in proxy LT regular HQ; do | |
case $choice in | |
proxy) | |
echo Setting profile to proxy | |
profile=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// auto fade text, IN | |
// http://ianhaigh.com/ | |
try { | |
var fadeDuration = effect("fade duration")("Slider"); | |
} catch(e) { | |
var fadeDuration = 1; | |
} | |
ease(time, inPoint, inPoint + fadeDuration, 100, -100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ian Haigh : http://ianhaigh.com/ | |
// automatic motion for After Effects with expo easing | |
// set up sliders to easily change the values | |
function easeandwizz_inExpo(t, b, c, d) { | |
var IN_EXPO_CORRECTION = 0.000976; | |
return t==0 ? b : c * (Math.pow(2, 10 * (t/d - 1)) - IN_EXPO_CORRECTION) + b; | |
} | |
function easeandwizz_outExpo(t, b, c, d) { |
NewerOlder