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!
Copy link to clipboard
Copied
You could apply your effect, your expression, select the effect, and save it as a preset.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now