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
python_eval unable to access all macro defined variables #7
Comments
Hi Greg, The good news is you don't need to use python_eval to to get bindings resolved. The code below produces the results you expect without python_eval.
This gives :
|
unfortunately the code i produced was just to illustrate the issue. i am using python_eval to do more complex math, and it cannot do it because the variable is not available. it feels weird that the variable passed to the macro is not available to (some) of the macro execution patterns. i would expect
to return the same result as
an execute, as you mention, would probably make it explicit. You are thinking a builtin?
thanks for looking at it. |
Hi greg, OK just for you I will provide a utility function inside Python to get what you want. Something like:
The utility function How does that look? PS I would love to know about the more complex math you mention. code please? I can add it to the test scenarios... |
OK python_eval can now access all the things as you requested. - but without value(). So it works as in the original issue posting. The code |
the arguments in a macro are not reference-able if the macro does a repeat. For example:
when I run this script, I get:
Note: the FIRST argument is being referenced in the python_eval. Now consider this:
when I run this script, I get this error:
If I comment out the python_eval and uncomment the data: FIRST:
I now see this result:
I guess this has something to do with . nesting a macro and trying to reference parent data?
The text was updated successfully, but these errors were encountered: