Clear way to keep variables between different pycall events
If I want to use a variable created in an init event, there is no clear way to pass this reference to another event.
For example:
pycall:
on_event:
init:
global: { initValue }
exec: |
initValue= 3
update:
with: { initValue: $initValue }
exec: |
newValue = 2*initValue