Implement scripting include statement
in order to streamline and simplify my scripts (often 300-500 lines), I would like to outsource recurring passages into separate scripts and call them from a main script. I can execute scripts using the scripting interface (ScriptInterface::executeFileScript()) within my plugin, but can I do so within a script? My questions:
-
Is it possible to execute a script within another script.
-
If so, how can I pass arguments (such as an object id to be used within the called script) and how can I get a return value (e.g. object id of newly created object).
-
If not, any ideas on how to best implement it.