You do not need script in most cases, as you can simply add such two sources directly. There vidoes for scripting:
https://optics.ansys.com/hc/en-us/sections/360007813714-SCRIPTING100-List-of-videos
Please Login to Report Topic
Please Login to Share Feed