Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

falling calendar sheeets

Cow Forums : Adobe After Effects Expressions
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


falling calendar sheeets
by Ryan Fannon on Oct 9, 2008 at 4:41:32 pm

Point control expression


life = 1.2; //life of particle

seedRandom(1,true);
delay = random(life);
if(time < delay){
age = 0;
seed = 0;
}else{
age = (time - delay)%life;
seed = Math.floor((time - delay)/life) + 3;
}
[seed,age]

Add this expression to the position property:


minSpeed = 100; //minimum speed in y direction (pixels per second)
maxSpeed = 150;
maxDrift = 100; // maximum drift in x direction

seed = Math.round(effect("Point Control").param("Point")[0]);
age = effect("Point Control").param("Point")[1];
if(seed == 0){
[0,-10,0]
}else{
seedRandom(seed,true);
currSpeed = random(minSpeed,maxSpeed);
drift = random(-maxDrift,maxDrift);
origin = [random(0,thisComp.width),-10,0];
origin + [age*drift,age*currSpeed,0];
}

Add this expression to the orientation property:


m = 360; //max rotation speed in degrees per second

seed = Math.round(effect("Point Control").param("Point")[0]);
age = effect("Point Control").param("Point")[1];
if (seed == 0){
[0,0,0]
}else{
seedRandom(seed,true);
rotSpeed = random([-m,-m,-m],[m,m,m])
initOrient = random([360,360,360]);
initOrient + rotSpeed*age
}

Finally, add this expression to the z-rotation property:


m = 360; //max rotation speed in degrees per second

seed = Math.round(effect("Point Control").param("Point")[0]);
age = effect("Point Control").param("Point")[1];
if (seed == 0){
0
}else{
seedRandom(seed,true);
rotSpeed = random(-m,m)
rotSpeed*age
}


I'm trying to create a calendar where the individual days of the month fall of the calendar. i've check out dan's confetti tutorial on his site, but i'm having trouble placing the layers into the shape of a calendar.

i need the calendar sheets to fall from the calendar and land on a "floor".

any ideas?


Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:




Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:



Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Please post Expressions Code in the box below:


Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]