This file contains hidden or 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) { |
This file contains hidden or 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
try { | |
m = thisLayer.marker.nearestKey(time); | |
linear(time, m.time, outPoint, 0, outPoint - m.time); | |
} catch(e) { | |
value | |
} |
This file contains hidden or 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
tell application "Finder" | |
set x to (folder of (front window)) as alias | |
set y to get POSIX path of (x as text) | |
end tell | |
tell application "LaunchBar" | |
set selection to y | |
end tell |
This file contains hidden or 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
// Ease and Wizz 2.0.7 : outExpo : All keyframes | |
// Ian Haigh (http://ianhaigh.com/easeandwizz/) | |
// Last built: 2015-07-09T10:37:52+10:00 | |
// some defaults | |
var p = 0.81; // period for elastic | |
var a = 50; // amplitude for elastic | |
var s = 1.70158; // overshoot amount for "back" | |
function easeandwizz_outExpo(t, b, c, d) { | |
var CORRECTION = 1.037204526; |
This file contains hidden or 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
#target premierepro-8.0 | |
// 2014-09-08 Ian Haigh (ianhaigh.com) | |
// Give it a list of times in seconds, and it'll bosh a whole lot of markers into the active sequence. Useful in combination with "List marker times in active sequence.jsx" | |
m = app.project.activeSequence.markers; | |
var times = [55.68,87.88,165.16,205.32,258.12,337.76,379.56,442.04,509,600,705.72,828.32,940.32,984.32,1023.04,1084.32,1170.08,1225.76,1313.28,1454.64,1563.32,1664.76,1951.48,2353.68]; | |
for (var c=0; c < times.length; c++) { |
This file contains hidden or 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
#target premierepro-8.0 | |
// 2014-09-08 Ian Haigh (ianhaigh.com) | |
// Simply lists all the markers' times in seconds, for the active sequence. | |
m = app.project.activeSequence.markers; | |
var first = m.getFirstMarker(); | |
var current = first; |
This file contains hidden or 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/env ruby -wU | |
# markerbeat.rb by Ian Haigh 2015 | |
# distributed under the MIT license, more info here | |
# http://opensource.org/licenses/MIT | |
require 'optparse' | |
class FrameMarker | |
attr_accessor :bpm, :duration, :framesPerSecond |
This file contains hidden or 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
// Count up to a specified value in a given amount of time. | |
// With commas! If you're into that kind of thing. | |
// how to set up … | |
// start : this layer's name (i.e. call it an integer like "0") | |
// duration: add an expression slider called "duration" | |
// total: add a marker with a comment, that's the number to count up to | |
// delay: edit the value below | |
var DELAY = 0; // time to begin counting |
This file contains hidden or 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
// Ease and Wizz 2.0.4 : outElastic : All keyframes | |
// Ian Haigh (http://ianhaigh.com/easeandwizz/) | |
// Last built: 2013-07-05T11:46:51+10:00 | |
// some defaults | |
var p = 0.81; // period for elastic | |
var a = 50; // amplitude for elastic | |
var s = 1.70158; // overshoot amount for "back" | |
function easeandwizz_outElastic(t, b, c, d, a, p) { | |
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; | |
if (!a || a < Math.abs(c)) { a=c; var s=p/4; } |
This file contains hidden or 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/env python | |
import vobject | |
import sys | |
for fname in sys.argv[1:]: | |
f = open(fname) | |
v = vobject.readComponents(f) | |
while True: |