Return-Path: Received: from moutng.kundenserver.de ([212.227.17.9] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5373116 for AE-List@media-motion.tv; Tue, 11 Feb 2014 12:30:00 +0100 Received: from oxbaltgw55.schlund.de (oxbaltgw55.schlund.de [172.19.246.179]) by mrelayeu.kundenserver.de (node=mreue005) with ESMTP (Nemesis) id 0LdZfa-1VUoBU3T5G-00igwg; Tue, 11 Feb 2014 12:34:42 +0100 Date: Tue, 11 Feb 2014 12:34:42 +0100 (CET) From: "mylenium@mylenium.de" Reply-To: "mylenium@mylenium.de" To: After Effects Mail List Message-ID: <1782000635.222344.1392118482831.open-xchange@email.1und1.de> In-Reply-To: References: Subject: Re: [AE] Optical Flares light intensity expression bug? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_222343_2061921304.1392118482769" X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.4.0-Rev27 X-Provags-ID: V02:K0:zZ0VOdF3KKOYQrzq7LAmclwvcTOMOMqjy12J0BbiUC6 x6tMcGcrmOEtuHTfsSyj02S2Lj65DEQxCnJ86UNckzJKFigOL9 qw+DKo/AhB/RIz9SX7UiVt9pYcqn6gEDLY8szl5rAD4pJ86ETR tFcaSOHJLIDy+IyMs5nbOEdy92kLQyswa0gYpDOL78IEuoeFqt rT/bBfJf6iBnV6VYMc3gD0bPCZqzGmmjK+FWcJvorethzunJxU 7i/9PqWxEVA9PKCgvED1mec2+Z9ohj17sZSDzolyjBRS3RFVnI l3g3QqQfGtWJ7h63qrcYLRRjb/tMu9cAyoX2xfRkI0CUaUGgoU 7mrrYAMzaoTG55tupJQ8ChrkTcAfsj1PqAVHkFkQUIsEgFPGYM 3ojxXQYcn3WJvbuIwFeINGIlx9TUm5Yo2s= ------=_Part_222343_2061921304.1392118482769 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Unlikely it's OF. You are using a while() loop to test for a specific condi= tion 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 tak= e to run through all previous values. There is also redundant code like the seco= nd seedRandom() that serves no discernable purpose. The expression is simply n= ot 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 wi= ggles or manually knitted sinus functions to make it periodic... Mylenium [Pour Myl=C3=A8ne, ange sur terre] ----------------------------------------- www.mylenium.de > Phil Bearman hat am 11. Februar 2014 um 11:57 > geschrieben: >=20 > Hi all, >=20 > I've been encountering what appears to be a bug in VC Optical Flares, an= d was > wondering if anyone else could replicate it to confirm whether it's speci= fic > to my setup, as Video Copilot haven't heard of this problem before. >=20 > If I set up a comp with Optical Flares on a layer, set it to track 3D li= ghts, > 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. >=20 > 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. >=20 > Can anybody else replicate the problem? If so, could you report AE versi= on > and graphics card model to see if we have something in common? (I'm using= AE > CS6 on Win 7 with GTX 670) >=20 > Any help much to pin down the problem much appreciated. >=20 > Phil >=20 > EXPRESSION: >=20 > minSeg =3D 0.5; //minimum interval (must be > 0) > maxSeg =3D 2.5; //maximum interval (must be > minSeg) > minFlicker =3D 0.04; //must be less than minSeg > maxFlicker =3D 0.04; // must be less than minSeg >=20 > segStartTime =3D 0; //initial conditions > segEndTime =3D 0; > i =3D 1; >=20 > while (time >=3D segEndTime){ > i +=3D 1; > seedRandom(i,true); > segStartTime =3D segEndTime; > segEndTime =3D segEndTime + random(minSeg,maxSeg); > } >=20 > flickerDur =3D random(minFlicker,maxFlicker); > seedRandom(1,false); > if (time > segEndTime - flickerDur) 100 else 0 >=20 > EXPRESSION ENDS > -- >=20 > Phil Bearman >=20 > Phil Bearman Creative Media Solutions > Motion Graphics Design >=20 > NEW! Video DJ Toolkit Volume 2 - Occasions: > >=20 > : Nightclub & Bar ~ Production, Corpora= te & > Events ~ DVD Products > >=20 > 0161 236 2581 - 9am-5pm, Monday-Friday >=20 > 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 del= ete > 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 ther= efore > 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. >=20 ------=_Part_222343_2061921304.1392118482769 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
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.


 
------=_Part_222343_2061921304.1392118482769--