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 _sourceColor, _hslColor, _hue, _saturation, _lightness; _sourceColor = effect("Fill")("Color"); _hslColor = rgbToHsl(_sourceColor); _hue = _hslColor[0]; _saturation = _hslColor[1]; _lightness = _hslColor[2] - .2; // Here you go hslToRgb([_hue, _saturation, _lightness, 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
# Creates folder structure from plain text. | |
# Based on this stackoverflow question and answer http://stackoverflow.com/questions/12642260/better-bash-script-to-create-directory-structure | |
mkdirs($file) { | |
sed -f mkdirs.sed $file | xargs mkdir -p | |
} |
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
// Replace _slider by your own slider | |
// Parsing single string | |
// Paste this expression in Source Text attribute | |
// Source Text: "French | English | Spanish" | |
_slider = comp("# Animation").layer("CONTROLLER").effect("Language")("Slider"); | |
value.split(" | ")[Math.floor(_slider)]; | |
// Navigating through frames | |
// Time remap composition containing multiple single frames layers |
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
// Link with expression | |
l = thisComp.layer("Layer Name"); | |
p = l.toWorld(l.anchorPoint) | |
// Opacity jittering in | |
transitionTime = 1; | |
if (time < transitionTime) { | |
(random() < 0.5 ? 0 : 100); | |
} else { | |
100; |
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("Demo Script"); | |
// Creating project | |
var currentProject = (app.project) ? app.project : app.newProject(); | |
// Creating comp | |
var compSettings = cs = [1280, 720, 1, 10, 24]; | |
var defaultCompName = "Demo" | |
var currentComp = (currentProject.activeItem) ? currentProject.activeItem : currentProject.items.addComp(defaultCompName, cs[0], cs[1], cs[2], cs[3], cs[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
{ | |
app.beginUndoGroup("Script"); | |
compSettings = cs = [1280, 720, 1, 1, 24]; | |
currentProject = (app.project) ? app.project : app.newProject(); | |
currentComp = (currentProject.activeItem) ? currentProject.activeItem : currentProject.items.addComp("Timeline", cs[0], cs[1], cs[2], cs[3], cs[4]); | |
currentComp.openInViewer(); | |
textLayer = currentComp.layers.addText("Range"); | |
textLayerSourceTextProperty = textLayer.property("Source Text"); |
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 to call views with self contained javascript function using backend | |
(function(){ | |
$("[data-ajax-url]:not(.disabled)").on("click", function(e){ | |
callAjaxScript( | |
$(this).attr("data-ajax-url"), | |
$(this).attr("data-ajax-type") || "get", | |
$(this).attr("data-ajax-data") || ""); | |
}); | |
})(); |
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
# Adobe After Effects command line aliases | |
# Change this according to your version | |
AEVERSION="CS6" | |
# OSX | |
AEPATH="/Applications/Adobe After Effects ${AEVERSION}/aerender" | |
# Windows | |
AEPATH="C:/Program Files/Adobe/Adobe After Effects ${AEVERSION}/Support Files/aerender.exe" |
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
UPDATE wp_posts SET wp_posts.guid=REPLACE(wp_posts.guid, | |
'olddomain.com', | |
'newdomain.com' | |
); | |
UPDATE wp_options SET wp_options.option_value='http://newdomain.com' WHERE wp_options.option_name='siteurl' OR wp_options.option_name='home'; |
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
# Run from source folder’s root. | |
find . -type d -exec mkdir ../destination-folder-name/{} \; |
OlderNewer