Initializing variable with Set() and commands

Hello, I am trying to pass some parameter to an extension, however I can’t seem to find an easy solution, so I ended up thinking about this.

Is it possible to use Set() like so?
same => n,Set(test_variable=System(python get_var.py))
with get_var.py returning a string/integer.

Is there any better way or already built in one for this matter?

For multiple variables AGI would be more efficient (only one process launch).

Use Shell() function to get the script output as a variable

3 Likes

thank you, that solved my issues

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.