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
// For making a Videowall in After Effects | |
// Needs a Scale Layer ("scale") on top | |
var i = thisLayer.index - 2; | |
var videosInRow = 1920 / ((1920 / 100) * thisComp.layer("scale").transform.scale[0]); | |
var row = Math.floor(i / videosInRow); | |
if (row >= 1) { | |
var x = ((i - (videosInRow * row)) * 1920) * thisComp.layer("scale").transform.scale[0]/100; | |
var y = (Math.floor(i / videosInRow)*(1080*thisComp.layer("scale").transform.scale[0]/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
// used for Adonia Herzschlag Animation to spread many hearts randomly over the Screen as a Circle | |
// needs a slider-control with name "Schieberegler" on a layer named "Null Crowd" | |
m = thisComp.layer("Null Crowd").effect("Spread")("Schieberegler")*100; | |
circleCentre = [960,540+m]; | |
seedRandom(index,true); | |
circleRadius = random(90,m); | |
tRnd = degreesToRadians(random(thisComp.layer("Null Crowd").effect("Anordnung im Kreis")("Winkel"))); | |
circleCentre + circleRadius*[Math.cos(tRnd)*2, Math.sin(tRnd)]; |