I have developed a python script with a number of similar functions for slightly different scenarios. Generally I create command aliases as such:
Procedure 2 -
- Create a folder somewhere for all your Python scripts.
- Open the Python script editor with the _EditPythonScript command
- In Tools>Options>Files tab, set a path to the folder you just created, then OK. You can close the editor.
(you only need to do the above once)
Now in Options>Aliases, you can create your aliases without the full path, just the name will work:
! _-RunPythonScript "TestScript"
But I have not been able to find a way to reference a specific function with this method.
Is there a way to do this with aliases, or do I need to split up this script into separate py files for each function?