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
# This shell function will convert a Quicktime file and convert it to a H.264 file using FFMPEG. | |
# Make sure you have FFMPEG installed. See https://superuser.com/questions/624561/install-ffmpeg-on-os-x for instructions. | |
mp4() { | |
ffmpeg -i "$1" -c:v libx264 -c:a aac -vf format=yuv420p -movflags +faststart "${1%.mov}.mp4" | |
open "${1%.mov}.mp4" | |
} |
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
var data = [] | |
$("tbody.has-clickable-table-rows tr").each(function() { | |
var $t = $(this) | |
var line = { | |
date: $t.find(".col-issue-date").text().trim(), | |
name: "#" + _cleanText($t.find(".col-id")) + "-" + _cleanText($t.find(".col-client")), | |
amount: _cleanNumber($t.find(".col-amount")), |
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
// The action to be performed. Next is 1, Prev is -1. | |
concat = 1; | |
activeComp = app.project.activeItem | |
// Propery is selected | |
if(activeComp.selectedProperties.length > 0) { | |
updateProperties() | |
} | |
// First layer has Frame |
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
var _comp; | |
for (var i = 1; i <= app.project.numItems; i ++) { | |
if ((app.project.item(i) instanceof CompItem) && (app.project.item(i).name === '# Main')) { | |
_comp = app.project.item(i); | |
break; | |
} | |
} | |
var _checkbox = _comp.layer("Controller").Effects.property("Dev?")("Checkbox"); | |
var _newValue = _checkbox.value == 1 ? 0 : 1; |
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
// Found here http://www.motion-graphics-exchange.com/after-effects/Wiggle-rubber-bounce-throw-inertia-expressions/4ad0f32a944ad | |
fps=15; //frequency | |
amount=50; //amplitude | |
wiggle(fps,amount,octaves = 1, amp_mult = 0.5,(Math.round(time*fps))/fps); | |
Jumpy Wiggle 1 makes wiggle skip and hold rather than move fluidly. | |
// Jumpy Wiggle 1 (moves at a random FPS) |
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
cp **/*.(jpg|jpeg|png|JPG|JPEG|PNG|mov|MOV|mp4|MP4|gif|GIF) ~/Desktop/ |
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
// MultiExporter.jsx | |
// Version 0.1 | |
// Version 0.2 Adds PNG and EPS exports | |
// Version 0.3 Adds support for exporting at different resolutions | |
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
// Version 0.5 Fixed cropping issues | |
// Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
// | |
// Copyright 2013 Tom Byrne | |
// Comments or suggestions to [email protected] |
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
app.beginUndoGroup("Add character") | |
var activeComp = app.project.activeItem; | |
var wiggleExpression = 'seedRandom(index);wiggle(thisComp.layer("Controller").effect("Freq")("Slider"), thisComp.layer("Controller").effect("Amp")("Slider"))' | |
// Adding controller layer | |
var controllerLayer = activeComp.layers.addNull(activeComp.duration); | |
controllerLayer.name = "Controller"; | |
effect = controllerLayer.Effects.addProperty("Slider Control"); | |
effect.name = "Freq" |
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
# 1. Install mp4box via homebrew (or howerver you want). | |
# 2. Make sure you have a m4a file. You can take any audio .mp4 and just change the extension. | |
# 3. Adjust the chunk length (300 seconds in this case) and run this: | |
mp4box -split 300 source-file.m4a |
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
// Use if there is *no* time remapping in parent comp. | |
parentComp = comp("# Main"); | |
compStartTimeInParent = parentComp.layer(thisComp.name).startTime; | |
audioStartTimeInParent = parentComp.layer(thisLayer.name).startTime; | |
fullStartTime = this.startTime; | |
fullEndTime = this.source.duration+startTime; | |
linear(time, fullStartTime, fullEndTime, fullStartTime+compStartTimeInParent-audioStartTimeInParent, fullEndTime+compStartTimeInParent-audioStartTimeInParent) |
NewerOlder