AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sat Nov 01, 2014 6:40 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: random appearance of layers
PostPosted: Wed Jan 30, 2008 6:05 am 
Offline

Joined: Mon Jan 07, 2008 1:57 pm
Posts: 7
i have for example 150 layers (like a pattern) that i want to appear randomlike on different time and stays. does anybody has a script for that?
thanks alot.

p.s.: i just found a script:

seedRandom(index, true);
theStart = random(0,2);
linear(time, theStart, theStart+1, 0, 100);

but how can i change that the layer fades in? i´d like to have visible from one frame to the other...
and can i set the startpoint framewise? (begin fade in on frame 15)?

sorry for this maybe stupid questions...


Top
 Profile  
 
 Post subject: Re: random appearance of layers
PostPosted: Wed Jan 30, 2008 12:27 pm 
Offline
Enhancement master
User avatar

Joined: Thu Jun 17, 2004 9:27 am
Posts: 460
Location: New York City, NY
Code:
fadeDurationInFrames = 1;
startRangeInFrames = 15;
endRangeInFrames = 60;

sr=startRangeInFrames*thisComp.frameDuration;
er=endRangeInFrames*thisComp.frameDuration;
seedRandom(index, true);
theStart = random(sr,er);
numFrames = fadeDurationInFrames*thisComp.frameDuration;
linear(time, theStart, theStart+numFrames, 0, 100);

_________________
http://aescripts.com


Top
 Profile  
 
 Post subject: Re: random appearance of layers
PostPosted: Wed Jan 30, 2008 12:40 pm 
Offline

Joined: Mon Jan 07, 2008 1:57 pm
Posts: 7
yeah. thanks alot. working great.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group