Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. // Cursor While Typing - Created by Animoplex: www.animoplex.com
  2. // Creates a pipe "|" symbol on a text layer while it types.
  3. // NOTE: Add a Slider Control to your text layer and apply this to the "SourceText" parameter.
  4. // NOTE: Keyframe the Slider Control from 0 to 100 to reveal the text being typed.
  5.  
  6.  
  7. src = effect("Slider Control")("Slider");
  8. txt = text.sourceText.length;
  9. type = linear(src, 0, 100, 0, txt);
  10. blink = Math.round( time % 1 );
  11.  
  12. if (( blink == 1 )) { pipe = "|"; } else { pipe =""; }
  13.  
  14. substr( 0, type ) + pipe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement