Skip to main content
Participant
Mar 13, 2023 10:57 AM UTC
Answered

After 2023 Expression doesn't update

Hi all.
When I create an expression and connect it with a controller (slider or any other), the expression doesn't automatically update if I change the controller's name. Is there a way to make it after updating it?
I'm almost sure AE made it in the preview versions, or am I going crazy?

 

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Mar 14, 2023 4:57 PM UTC

I Attached the Expression Error.

This happens with any expression and any controllers.


Thanks for posting that. I think you may have discovered a bug. Apparently, you have the preference "Expression Pick Whip Generates Compact English" turned off, and in that case, the expression doesn't get updated when you change the name of the control. Changing the preference would be a work-around.

Also, your expression should include what happens if the checkbox is off. I'd change the last part to something like this:

sup == 1 ? 100 : 0 

8 replies

Mylenium
Legend
Mar 14, 2023 9:11 AM UTC

Your syntax doesn't make sense. It's still thisLayer.effect(), not thisLayer("Effects").

 

Mylenium

Translate
Participant
Mar 14, 2023 9:26 AM UTC

But this is the sintax that pic whip write for me... So is the pick whip the problem?

Translate
Dan Ebberts
Community Expert
Community Expert
Mar 13, 2023 9:56 PM UTC

I'm not seeing behavior like that. Are you saying that after you change the controller name, the expression generates an error because it now has the wrong name for the controller? If not, that may mean that you have two controllers with identical paths/names and the expression is now finding the other one.

Translate
Participant
Mar 14, 2023 12:17 AM UTC
quote

I'm not seeing behavior like that. Are you saying that after you change the controller name, the expression generates an error because it now has the wrong name for the controller? If not, that may mean that you have two controllers with identical paths/names and the expression is now finding the other one.


By @Dan Ebberts

 

Yes. This is exactly my problem. I create a controller, write the expression (using on not the pick whip is the same), and after that, I change the controller name. At that point, the wrong name error message appears.

It never happened to me before this version.

 

Any idea about what I can do? Thanks

Translate
Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
Mar 14, 2023 4:57 PM UTC

I Attached the Expression Error.

This happens with any expression and any controllers.


Thanks for posting that. I think you may have discovered a bug. Apparently, you have the preference "Expression Pick Whip Generates Compact English" turned off, and in that case, the expression doesn't get updated when you change the name of the control. Changing the preference would be a work-around.

Also, your expression should include what happens if the checkbox is off. I'd change the last part to something like this:

sup == 1 ? 100 : 0 

Translate