Skip to main content
contact@fabrice-agro.com
Known Participant
November 11, 2022
Question

Reset expression

  • November 11, 2022
  • 2 replies
  • 262 views

Bonjour,

connaissez vous une expression qui permet de faire un reset d'une valeur. En effet je souhaite faire un reset d'un projet en liant plusieurs valeurs de plusieurs layers sur un seul bouton reset ou slider ?

Merci.

This topic has been closed for replies.

2 replies

Mylenium
Legend
November 11, 2022

I'm reasonably certain there are scripts on AEScripts.com that can do that for some common properties, but I doubt you'll find something that covers everything, since those values also would have to be hard-coded in the script for some properties.

 

Mylenium 

contact@fabrice-agro.com
Known Participant
November 11, 2022

Ok merci

Mylenium
Legend
November 11, 2022

Expressions cannot do that. The evaluation order is still Property Value --> Keyframes --> Expression, so an expression will always use what the previous value is or what it has in it's code. Of course you could encode the values in the expression itself, but that would have to be done for each property type individually and even then it wouldn't actually reset the values. All that being the case, you still have to go through all your layers and use the reset options on transform properties, effects and so on.

 

Mylenium

contact@fabrice-agro.com
Known Participant
November 11, 2022

Merci @Mylenium 

Sans utiliser une expression est-ce qu'il existe dans ce cas un moyen de faire un reset à 0 de plusieurs valeurs dans plusieurs compositions ?

mercu