Passing Variables between Scripts and Macros?

Geoff Elson 8 years ago in Scripting updated by Yan 8 years ago 1
Is there a way to run a macro and pass a variable like a %1 or @variable in the Macro table to a line running a python script? I ask this because I am partial to the simplicity of using macros but often there needs to be a logical process that requires python.
Hi Geoff,

What you can do is load a Macro substitution form in python and read the values inside:

Macsub_FormSet1= MMpy.FormSet("MACSUB","")
This is kind of a workaround, the best thing would be to enable the user to pass an argument list to a script in the Run Python Script dialog.