Specific Client Login Information

I always thought runScript was only used to call functions, really cool that you can do list comprehension one-liners in them, that’s very useful.

Keep in mind, I think @pturmel suggests only using runScript with functions that have short execution times.

1 Like

runScript has evolved from only being able to do one-liners to the current form that can pass arguments to functions. But only one or the other. If you wish to have inline code that also accepts arguments (without having to recompile the string), you would use my objectScript() function from my Simulation Aids module.

{ I created this expression function specifically to enable passing true objects into python from a binding. With other features that I think make sense. IA then added the argument passing to runScript, in a slightly different form, and credited my idea in the release notes. I pretty much always use objectScript where others use runScript. }

1 Like