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
layer = thisComp.layer('whihihiggle_ctrl'); // <-- THE CONTROL LAYER | |
/* ------------------------------- */ | |
/* -----THE SLIDER CONTROLS------- */ | |
freq = layer.effect('freq')('ADBE Slider Control-0001'); | |
amp = layer.effect('amp')('ADBE Slider Control-0001'); | |
seed = layer.effect('seed')('ADBE Slider Control-0001'); | |
octaves = layer.effect('octaves')('ADBE Slider Control-0001'); | |
amp_mult = layer.effect('amp_mult')('ADBE Slider Control-0001'); | |
t = layer.effect('t')('ADBE Slider Control-0001'); | |
framesPerSecond = layer.effect('framesPerSecond')('ADBE Slider Control-0001'); |
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 illustrator | |
var docRef = app.activeDocument; | |
with (docRef) { | |
var layerlist = new Array(); | |
for (var i = layers.length-1; i >= 0; i--) { | |
if (layers[i].visible == true){ |
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
osascript -e 'tell application "Adobe InDesign CS5" to do script alias "Users:fabiantheblind:Desktop:test:test.jsx" language javascript ''' |
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
// based on knowledge by redefinery http://www.redefinery.com/ae/fundamentals/masks/ | |
// and the AECS6 scripting guide also written by redefinery | |
var layer = app.project.activeItem.selectedLayers[0]; | |
var masksGroup = layer("Masks"); | |
if (masksGroup != null){ | |
var my_maskShape = layer.mask(1).property("ADBE Mask Shape").value; | |
alert (my_maskShape.vertices.length); |
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
// based on knowledge by redefinery http://www.redefinery.com/ae/fundamentals/masks/ | |
// and the AECS6 scripting guide also written by redefinery | |
var layer = app.project.activeItem.selectedLayers[0]; | |
var masksGroup = layer("Masks"); | |
var masksOnLayer = new Array(); // Store masks in an array; starts as empty | |
if (masksGroup != null) | |
{ | |
// Iterate through properties of masksGroup |
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
// select all position properties of selected layers | |
var layers = app.project.activeItem.selectedLayers; | |
for (var i = 0; i < layers.length; i++){ | |
layers[i].position.selected = true; | |
} |
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 count = 0; | |
for (var i =0; i < app.activeDocument.selection.length;i++){ | |
try{count+=app.activeDocument.selection[i].pathPoints.length;}catch(e){} | |
}; | |
alert("you have "+count+ " pathpoints in your selection"); |
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
// swap position of two layers | |
var layers = app.project.activeItem.selectedLayers; | |
var pos1, pos2; | |
for (var i = 0; i < 2; i++){ | |
if(i ==0) pos1 = layers[i].position.value; | |
if(i ==1) pos2 = layers[i].position.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
// [FILENAME].jsx | |
// written by [YOURNAME] | |
// [URL] | |
// [DESCRIPTION] | |
// [LICENSE] | |
main(); | |
function main(){ | |
app.beginUndoGroup("XXXXXXXXXXXX"); | |
var curComp = app.project.activeItem; |
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
<a href="javascript:(function(){var currURL=document.URL;var dataSetID=currURL.match('([0-9]+)');var dataSetURL='http://geocommons.com/overlays/'+dataSetID[0]+'/features.json?geojson=1';dataSetJSON=window.open(dataSetURL,'GeoCommonsJSON');}());">The-Geo-Beast Bookmarklet</a> |