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: https://support.lumerical.com/hc/en-us/articles/360034930493-addsweepparameter-Script-command but the value setting is achieved manually.
image
If I have too many values, what should I do for that?
Thank you a lot.
Best
Enxiao

You can have the sweep values in a txt file or matlab file, and them read them into the script.
read txt: https://support.lumerical.com/hc/en-us/articles/360034931933-read-Script-command
read matlab: https://support.lumerical.com/hc/en-us/articles/360034408034-matlabload