Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions switching between 2 characters

  • switching between 2 characters

    Posted by Ryan Biercewicz on November 27, 2014 at 10:59 am

    Hi all,

    I’m trying to find an expression that I can add to source text, perhaps linked to a slider, that will enable me to switch between 2 alphabetical character values (so, between A & B, for example).

    My expression knowledge is fairly limited so I have given up trying to come up with the expression myself as I keep getting errors.

    Thanks in advance for any help…

    Ryan

    Graham Macfarlane replied 11 years, 5 months ago 2 Members · 3 Replies
  • 3 Replies
  • Graham Macfarlane

    November 27, 2014 at 11:30 am

    Hi Ryan,

    Create the Slider on your text layer.

    Expand the “Source text” parameter of the text layer than Alt click the stop watch to enable the script field.

    Add this code and you’re ready to go:

    S = effect("Slider Control")("Slider");
    if (S>50) "A" else "B"

    Graham Macfarlane – CGI specialist
    Elyarch Ltd – London UK

    3D Studio Max | Vray | Pflow | PhoenixFD | After effects | Mocha

  • Ryan Biercewicz

    November 27, 2014 at 12:03 pm

    Hi Graham,

    That’s absolutely perfect, thanks for your help!

    Cheers,
    Ryan

  • Graham Macfarlane

    November 27, 2014 at 12:07 pm

    Glad it helps!

    Graham Macfarlane – CGI specialist
    3D Studio Max | Vray | Pflow | PhoenixFD | After effects | Mocha

    Elyarch.com – London UK

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy