How to set parameter values in a sweep by script

Hi Lumerical Knowledge Exchange,
I am recently trying to use the script to set up the sweep in INCT. Instead of a range sweep, I need the sweep with specific values. However, I couldn’t find efficient way to set all the values by using a loop or something.
I found an example here: but the value setting is achieved manually.
If I have too many values, what should I do for that?
Thank you a lot.

You can have the sweep values in a txt file or matlab file, and them read them into the script.
read txt:
read matlab: