------------------------------------------
posterizeTime(10);
time;
------------------------------------------
s=wiggle(5,200)[0];
[s,s]
------------------------------------------
Time Warp Animation Expression
effect("Actual Frame Rate")("Slider")/effect("Target Frame Rate")("Slider")*100
------------------------------------------
Focus Distance Expression
(In Focus Distance Prop)
length(thisComp.layer("target layer").transform.position,transform.position)
------------------------------------------
var bothDimentions=wiggle(1,200);
var horizonal=transform.position[0];
var currentY=transform.position[1];
var secondWiggleDimention=bothDimentions[1];
if (secondWiggleDimention>currentY)
{
var vertical=secondWiggleDimention;
}
else
{
var vertical=currentY;
};
[horizonal,vertical];
-----------------------------
effect("4色グラデーション").param(propertyIndex-2).valueAtTime(time-.5)
-----------------------------
param=property
-----------------------------
ease(time,1,5,[100,100],[600,100])
//(position) from 1 sec to 5 sec move X from 100 to 600, move Y from 100 to 100 using easy ease
-----------------------------
ease(time,1,5,0,360)
//(rotation property) from 1 sec to 5 sec rotate from 0 to 360 using easy ease
-----------------------------
var xValue=linear(transform.rotation,0,360,75,640);
var yValue=transform.position[1];
[xValue,yValue]
//if rotate=0, transX=75 if rotate=360, transX=640
//transY=transY
-----------------------------
var scaleX=transform.scale[0];
var scaleY=ease(thisComp.layer("オーディオ振幅").effect("両方のチャンネル")("スライダ"),7,18,10,100);
[scaleX,scaleY]
-----------------------------
var R=thisComp.layer("controller").effect("R")("スライダ");
var G=thisComp.layer("controller").effect("G")("スライダ");
var B=thisComp.layer("controller").effect("B")("スライダ");
[R,G,B,1];
-----------------------------
+=5//add 5 to whatever the value already is.
-----------------------------
value+fromComp(thisComp.layer("深いシアン青 平面 1").transform.position)
-----------------------------
var columns=10;
var rows=3;
var spaceBetweenColums=110;
var x=((index-1)%columns)*spaceBetweenColums;
var y=Math.floor((index-1)%(rows*columns)/columns)*spaceBetweenColums;
var z=Math.floor((index-1)/(rows*columns))*spaceBetweenColums;
var origin=[60,70,0];
origin+[x,y,z];
-----------------------------
"Math.floor" rounds numbers down
"Math.ceil" rounds up
"Math.round" rounds up if the decimal part of the number is greater than 5; otherwise it rounds down.
-----------------------------
COULD USE GRIDS EXPRESSION FOR ALIGNING 3D LAYERS
#chapter6,cmp25
-----------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%
"modulo operator"
-----------------------------
var columns=10;
var spaceBetweenLayers=thisLayer.width+10;
var x= ((index-1) % columns)*spaceBetweenLayers;
var y=Math.floor((index-1)/columns)*spaceBetweenLayers;
var origin=[40,50];
origin+[x,y];
-----------------------------
var checkerboardPosition=transform.position;
var ballPosition=thisComp.layer("circle").transform.position;
var distance=length(checkerboardPosition, ballPosition);
ease(distance,0,500,2,50);
-----------------------------
lookAt(transform.position,thisComp.layer("solidLayer").transform.position)
-----------------------------
var pivotX=thisComp.width/2;
var pivotY=thisComp.height/2;
var distanceFromPivot=200;
var freq=2;
var x=pivotX+(Math.sin(freq*time*2*Math.PI)*distanceFromPivot);
var y=pivotY-(Math.cos(freq*time*2*Math.PI)*distanceFromPivot);
[x,y];
-----------------------------
veloc=7;
amp=80;
decay=.7;
amp*Math.sin(veloc*time)/Math.exp(decay*time);
-----------------------------
var amp=200;
var freq=2;
var decay=.1;
var x=transform.position[0];
var y=transform.position[1]+amp*Math.sin(time*freq*Math.PI)/Math.exp(time*decay);
[x,y];
-----------------------------
var myArray=[11,22,33,44,55,66];
var myIndex=Math.floor(random(myArray.length));
myArray[myIndex];
-----------------------------
function pickRandomNumber(arrayOfNumbers)
{
var randomNumber = random(arrayOfNumbers.length);
var myIndex =Math.floor(randomNumber);
return arrayOfNumbers[myIndex];
}
var myArray =[11,22,33,44,55,66];
pickRandomNumber(myArray);
-----------------------------
function spaceAlienName(planet)
{
if (planet == "Mars")
{
return "Beeper";
}
else
{
return "Booper";
}
}
spaceAlienName("Mars");
-----------------------------
No comments:
Post a Comment