• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Pseudo Effects Default Expressions

New Here ,
Apr 09, 2024 Apr 09, 2024

Copy link to clipboard

Copied

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!

TOPICS
Expressions

Views

83

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 09, 2024 Apr 09, 2024

Copy link to clipboard

Copied

LATEST

You could apply your effect, your expression, select the effect, and save it as a preset.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines