CC

CG study (After Effects, Nuke, Maya...), English study and more.

Sunday, May 3, 2009

[After effects]-expression03

----------------------------
var rot=15;
rot+=10;
----------------------------
var rot=15;
rot ++;
rot ++;
rot ++;
rot ++;
rot ++;
rot;
//rot=20
----------------------------
var rot=15;
rot --;
rot --;
rot --;
rot --;
rot --;
rot;
//rot=10
----------------------------
var rot=15;
rot *=2
//rot=30
----------------------------
var rot=15;
rot /=2
//rot=7.5
----------------------------
var X=100;
var Y=0;
var seconds=Math.floor(time);
if (seconds !=1) Y=200;
[X,Y];
----------------------------
var X=100;
var Y=0;
var seconds=Math.floor(time);
if (seconds ==0 || seconds==2) Y=200;
[X,Y];
----------------------------
posterizeTime(10);//10 times per second
var randomNumber=random(48,122);
var myText=String.fromCharCode(randomNumber);
myText;
//ASCII code http://ja.wikipedia.org/wiki/ASCII

//String.fromCharCode(83)="S"
----------------------------
w=wiggle(1,20);
[value[0],w[1]]
----------------------------
----Set time and parent----
//position
pickuptime = 1;
dropofftime = 2; layertofollow = "bluestar"
ticker =Math.min(Math.max(pickuptime, time), dropofftime);
this_comp.layer(layertofollow).position.value_at_time(ticker)

//rotate
pickuptime = 1;
dropofftime = 2;
layertofollow = "bluestar";
ticker = Math.min(Math.max(pickuptime, time), dropofftime);
this_comp.layer(layertofollow).rotation.value_at_time(ticker)

----------------------------
Radius = effect("Radius")("スライダ");
Speed = effect("Speed")("スライダ");
RotationOffset = effect("Rotation Offset")("角度");

//

center = [this_comp.width/2,this_comp.height/2,0];
radius = 200;
angle = time * Speed + RotationOffset;
x = Radius * Math.cos(degreesToRadians(angle));
z = Radius * Math.sin(degreesToRadians(angle));
add(center, [x,z,0]);


-----------------------------
Radius = effect("Radius")("スライダ");
Speed = effect("Speed")("スライダ");
RotationOffset = effect("Rotation Offset")("角度");

//

center = [this_comp.width/2,this_comp.height/2,0];
radius = 200;
angle = time * Speed + RotationOffset;
x = Radius * Math.cos(degreesToRadians(angle));
z = Radius * Math.sin(degreesToRadians(angle));
add(center, [x,0,z]);
-----------------------------


---wiggle parameter---

wiggle(freq, amp, octaves = 1, amp_mult = .5, t = time)
=(freq, amp, how much extra detail, how crazy is the extradetail)
-----------------------------
var startPosition;
var endPosition;
seedRandom(1,true);
startPosition=random([thisComp.width,thisComp.height]);
endPosition=random([thisComp.width,thisComp.height]);
ease(time,0,5,startPosition,endPosition);
-----------------------------
var changeRate=1;
-----------------------------
var seedNumber=Math.floor(time/changeRate);
seedRandom(seedNumber,true);
random([0,0],[500,500])
-----------------------------
seedRandom(2,true);
random()
-----------------------------
str = "ABCDEFGHIJKLMNOPQRTSUVWXYZ";
str[timeToFrames(time)];
-----------------------------
L = thisComp.layer("star");
L.toComp(L.transform.anchorPoint)

L = thisComp.layer("source point");
L.toComp(L.anchorPoint)

No comments:

Post a Comment