Article View: adobe.after.effects.expressions
Article #463pausing within slider expression
From: patrick_j_collins
Date: Tue, 19 Dec 2006 05:11
Date: Tue, 19 Dec 2006 05:11
24 lines
1474 bytes
1474 bytes
Hi,
This is related to Terry's posting earlier regarding the 'word processor' function...
I am trying to have an expression determine if a return character exists in the current character being displayed.. If so, I would like it to stop outputting text for a moment, and allow the cursor to blink for a second, and then continue (hence Z).
This is what I have written so far, but I am having a problem with Slider.value, as depending on the length of sourceText, it could end up having 3 characters for every number... So i am just curious how I would solve this mathmatical issue...
var y;
var z;
if (z==null)
{z=0};
if (y!=null)
{z++; y;}
else
{
x=text.sourceText.charCodeAt(Slider.value);
if (x==13)
{y=Slider.value;}
else
{linear(value, key(1).value, (key(2).value)+z, key(1).value, (text.sourceText.length-2))+z;}
}
Thank you.
Technical Details
Message-ID:
<3bc29ced.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f450a,88b1e9d02fd8c678,start X-Google-Attributes: gidf450a,public X-Google-Language: ENGLISH,ASCII-7-bit From: patrick_j_collins@adobeforums.com Newsgroups: adobe.after.effects.expressions Subject: pausing within slider expression Message-ID: <3bc29ced.-1@webcrossing.la2eafNXanI> Date: Mon, 18 Dec 2006 21:11:08 -0800 Lines: 32 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing