-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply Expression: crash if using $value
+ $frame
#296
Comments
Could this workaround be easy to code while you find a real fix for it?: Before exporting, you could read the "Bindings" and if Does it makes sense? is is possible and easy to code? |
The issue is I created a workaround/hack: 4ee8fe5 It does not crash and actually exports stuff 😄 (limited testing) Open for other suggestions, I don't like the workaround. |
@pgilfernandez when you get the time could you test the commit on random expressions? see if it works as expected. No rush. |
It's working:
but:
triple.friction.zip this simple project animates the rotation value from 0 to 90 to 0. The expression triples it (multiplies the value by 3). |
I did more tests on the subject and I found out some interesting results that might change your fix:
|
Thanks for testing, I noticed last night that we do in fact need both value and frame for it to crash. My "fix" is related to frame, so I just assumed that was the issue. I don't like the "fix", but It's better than crashing 😄 I just don't want to introduce any new issues/regressions.
Probably always been there, will check. Note that export to SVG just runs "apply expression" in the background, so any issues are related to that function. |
$value
$value
+ $frame
Indeed!
It makes sense. This week I will have a look at your hack and see if I can propose a better solution, if not it can stay as it is ,it works, hehehe. |
If an expression uses the
$value
binding, Friction will crash if "Apply Expression" is applied. This issue also affects "Preview SVG" and "Export SVG" as they use "Apply Expression" during export. This does not affect video/image renders.I assume something in the code tries to read
value
while generatingvalue
and we end up with a crash.The text was updated successfully, but these errors were encountered: