Activity › Forums › Adobe After Effects Expressions › Expressions don’t update previews when they are changed
-
Expressions don’t update previews when they are changed
Posted by Christian Simpson on September 22, 2017 at 4:38 pmIt doesn’t matter what machine I’m on but expressions seem incredibly unreliable in updating when a change has been made. For example I have a checkbox control that is linked to text layers, opacity of other layers, etc. It’s connected to few different things. For some reason no matter what machine I work with or whatever expression I use if the expression becomes more complex than the very most basic of expressions After Effects cannot seem to update the preview correctly. I also have tried to go ahead and render out a clip to see if it will snap into place but it also renders out the clip incorrectly just as the preview. I have had this problem for years and it’s incredibly frustrating. I know this is not a specific question but is this something others have dealt with and if so have you ever found a solution? And yes I have purged memory but the only thing that seems to help is to restart After Effects which is very annoying.
Christian Simpson replied 8 years, 11 months ago 2 Members · 18 Replies -
18 Replies
-
Dan Ebberts
September 22, 2017 at 4:53 pmThe only time I really see anything like that is when there are two or more expressions where each expression is dependent on the results of the others (e.g. trying to simulate radio buttons with checkboxes), creating an unstable dependency loop. I’ve never run into complexity being an issue.
Dan
-
Christian Simpson
September 22, 2017 at 6:03 pmForgive me but I am not familiar with what a radio button is unfortunately. To explain my situation a little better i have null object with 30 or so checkbox controllers. I have several parameters connected to each checkbox controller. I have several layers that have opacity at 100 or 0, and some text layers that have certain source text when checked. I only have one box checked at a time so as to not display multiple results. So if I understand correctly a checkbox controller is not the way to approach a situation like this? Is there any place you recommend that has information on radio buttons? I could not seem to find any info on it pertaining to After Effects.
Thanks
-
Dan Ebberts
September 22, 2017 at 6:20 pmAs long as you don’t have checkboxes connected to each other, you should probably be OK.
Radio buttons are a control where only one option can be selected–selecting one turns the others off. Unfortunately, there is no expression control that operates that way, and trying to simulate it with checkboxes will inevitably lead to frustration.
One alternative would be to use a pseudo effect dropdown list to indicate your selection, but that’s a whole different learning curve.
Dan
-
Christian Simpson
September 22, 2017 at 6:31 pmNo they are not connected to each other in anyway and I only check one at a time so its really throwing me for a loop. It’s doubly odd that restarting After Effects clears up the problem but that’s not a very reasonable way to work. Maybe I should look into your alternative method.
Thanks for the help as always.
-
Dan Ebberts
September 22, 2017 at 6:36 pmI should have mentioned that it doesn’t have to be a direct connection between the checkboxes. For example if you have one checkbox controlling the opacity of a layer and another checkbox that references that layer’s opacity in its expression, that’s a connection. If something that is controlled by the second checkbox affects the expression for the first checkbox, that creates an unstable loop.
Dan
-
Christian Simpson
September 22, 2017 at 9:36 pmOk that’s good to know. However I suppose my situation is the inverse of that. I have one check box controller controlling multiple parameters across many different layers. I also wanted to mention that after I quit and restart after effects it always works perfectly. It’s only after I’ve exported and then I try and update it by checking a new checkbox that it begins to fall apart. With the solution being perfectly repeatable every single time that makes me think for some reason after effects isn’t updating correctly or there is a cache issue. I suppose the next thing I will try is to create a control layer for every different layer and parameter i want to manipulate. That’s getting almost as tedious as just changing it all manually however. Unless there was a way to have a master checkbox control layer that all the other checkbox control layers were linked to.
-
Dan Ebberts
September 22, 2017 at 10:03 pm>It’s only after I’ve exported and then I try and update it by checking a new checkbox that it begins to fall apart.
That’s entirely consistent with what I’m talking about. And it’s not just with checkboxes. Try this. Create two slider controls. Give each of them an expression that is the value of the other slider + 20. You’ll probably get 20 for the first one and 40 for the second. Now turn both expressions off and then turn on the second expression first and the first expression second. Now you’ll get 40 for the first one and 20 for the second one. The conditions are exactly the same, but the results are different depending on the order that the expressions evaluate because they’re dependent on each other. That’s an unstable result.
With the symptoms you’ve described, I’d be surprised if there isn’t a sneaky feedback path in there somewhere that is expression-evaluation-order dependent.
Dan
-
Christian Simpson
September 23, 2017 at 12:52 amIf that’s the case do you recommend simply creating multiple control layers so that every parameter I have to change has its own control layer?
Thanks for all your help
-
Dan Ebberts
September 23, 2017 at 12:59 amThe key is to make sure that no expression has, as an input, any value whose calculation includes (however indirect) the output of that same expression.
To make any specific recommendation, I think I’d have to see how you have it set up now.
Dan
-
Christian Simpson
September 26, 2017 at 8:15 pmHey Dan I attempted to lay out in more detail how I have set everything up in this word doc. I appreciate any time you could devote to taking a peek at my setup. I suppose I could have written this all out in a forum post but that may have been too much. Thank you again for all your help.
11714_expressionbreakdown.docx.zip
Reply to this Discussion! Login or Sign Up