-
Notifications
You must be signed in to change notification settings - Fork 207
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
PythonExpressionEngine parsing bug #3613
Comments
This appears to be a deficiency in our python expression parsing (we need to parse them to find out what context variables they are sensitive to). If you adjust the expression on your text node to use a temporary variable, the parser is able to figure out what is happening, and then things update as expected :
|
Hi John, That snippet does indeed fix that example script, so thank you for that. But I may have found a second bug that is very related as that fix did not solve my original issue. I have managed to make another simple example that sets the context based on an expression to a Dot node's plugDirtiedSignal and updates the context variable if any of the dots custom label changes. Steps to Reproduce
|
Hey Greg, thanks for the simple repros. I'm afraid this second problem lies in your code rather than in Gaffer though. It isn't stated strongly enough in the docs for
I don't know if it will work for your real-world use case, but if you modify your script to connect to Hope that makes sense...feel free to ping me on chat if there are details of the real-world setup that you can't share here... |
Yes that makes complete sense and thank you for the very thorough explanation. I will update my code accordingly. Cheers! |
Cool. Using |
We need to visit the `value` and `slice` child nodes of the `Subscript` AST node, because they may also contain context lookups. Fixes GafferHQ#5250 Fixes GafferHQ#3613 Fixes GafferHQ#3088
Version: Gaffer 0.56.0.0b1-linux
Third-party tools: None
Third-party modules: None
Description
When updating a string vector data in a context variable node that is referenced upstream image node inside an image loop, the hash is not evaluated causing the image not to update.
This doesn't seem to work in the latest gaffer 0.56.0.0b1 or subsequent previous versions 0.55.., 0.54..
Steps to reproduce
The text was updated successfully, but these errors were encountered: