Mailing List AE-List@media-motion.tv ? Message #52772
From: mylenium@mylenium.de <mylenium@mylenium.de>
Subject: Re: [AE] Optical Flares light intensity expression bug?
Date: Tue, 11 Feb 2014 12:34:42 +0100 (CET)
To: After Effects Mail List <AE-List@media-motion.tv>
Unlikely it's OF. You are using a while() loop to test for a specific condition and this means your comp is evaluated over and over again from beginning to end with each new frame. The further in you are in time, the longer it will take to run through all previous values. There is also redundant code like the second seedRandom() that serves no discernable purpose. The expression is simply not particularly well thought through. Using a for() loop would be much more efficient but even that seems unnecessary, since you probably could just as well drive the random by a noise 3D or even a simple combination of modulated wiggles or manually knitted sinus functions to make it periodic...
 
Mylenium
 
[Pour Mylène, ange sur terre]
-----------------------------------------
www.mylenium.de
 
Phil Bearman <phil@philbearman.co.uk> hat am 11. Februar 2014 um 11:57 geschrieben:

Hi all, 
 
I've been encountering what appears to be a bug in VC Optical Flares, and was wondering if anyone else could replicate it to confirm whether it's specific to my setup, as Video Copilot haven't heard of this problem before.
 
If I set up a comp with Optical Flares on a layer, set it to track 3D lights, and create a light with the following expression applied to Intensity (to achieve a random strobing effect), AE becomes very unresponsive, with me having to wait 20-30 seconds for it to stabilise, and "(Not Responding)" appearing in the title bar.
 
Other expressions don't cause a problem with Optical Flares (eg. Wiggle), so there must be something specific to this expression that OF doesn't like.  
 
Can anybody else replicate the problem? If so, could you report AE version and graphics card model to see if we have something in common? (I'm using AE CS6 on Win 7 with GTX 670)
 
Any help much to pin down the problem much appreciated.
 
Phil
 
EXPRESSION:
 
minSeg = 0.5; //minimum interval (must be > 0) 
maxSeg = 2.5; //maximum interval (must be > minSeg) 
minFlicker = 0.04; //must be less than minSeg 
maxFlicker = 0.04; // must be less than minSeg 
 
segStartTime = 0; //initial conditions 
segEndTime = 0; 
i = 1; 
 
while (time >= segEndTime){ 
i += 1; 
seedRandom(i,true); 
segStartTime = segEndTime; 
segEndTime = segEndTime + random(minSeg,maxSeg); 
 
flickerDur = random(minFlicker,maxFlicker);
seedRandom(1,false); 
if (time > segEndTime - flickerDur) 100 else 0
 
EXPRESSION ENDS
--

Phil Bearman

Phil Bearman Creative Media Solutions
Motion Graphics Design

NEW!  Video DJ Toolkit Volume 2 - Occasions: http://philbearman.co.uk/shop/vdj-toolkit-2/

www.PhilBearman.co.uk : Nightclub & Bar ~ Production, Corporate & Events ~ DVD Products

0161 236 2581 - 9am-5pm, Monday-Friday

This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this E-Mail. Please notify the sender immediately by E-Mail if you have received this E-Mail by mistake and delete the E-Mail from your system. E-Mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message or attached documents or for any damage suffered by your computer system caused by any errors or viruses contained in the E-Mail message or any attached documents.


 
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster