Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Pseudo Effects Default Expressions

  • Pseudo Effects Default Expressions

    Posted by Brayden Blythe on April 10, 2024 at 12:03 am

    I’ve created a Pseudo Effect that has multiple slider controls, amongst other things. I need the slider controls to have default expressions already applied to the Slider whenever the Effect is applied.

    I am able to apply default values, but is there a way to apply expressions in the same way? Here is part of my XML file for reference:

    <Effect matchname=”Pseudo/TextTool_Offset” name=”$$$/AE/Preset/TextTool_Offset=Text Tool Offset”>

    <Group name=”$$$/AE/Preset/AnimationIn=Animation In” >

    <Slider name=”$$$/AE/Preset/XStartPosition=X Start Position” default=”0″ valid_min=”-1000″ valid_max=”1000″ slider_min=”-100″ slider_max=”100″ precision=”2″ />

    <Slider name=”$$$/AE/Preset/XEndPosition=X End Position” default=”0″ valid_min=”-1000″ valid_max=”1000″ slider_min=”-100″ slider_max=”100″ precision=”2″ />

    <Checkbox name=”$$$/AE/Preset/Mirror=Mirror” hold=”true” default=”true” />

    </Group>

    </Effect>

    I need this expression to be applied to the “X End Position” slider:

    if(effect(“TextTool_Offset”)(“Mirror”)==1){

    -(effect(“TextTool_Offset”)(“X Start Position”))

    } else {

    value;

    }

    This expression takes the inverse of X Start Position if the “Mirror” checkbox is checked. If not, it returns the value. This Pseudo Effect will be apart of a script, so it’s important that the expressions load in by default. Any help would be greatly appreciated!

    Dan Ebberts
    replied 2 years ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    April 10, 2024 at 12:12 am

    I think you’d have to save the your effect, with the expression applied, as a preset.

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