Connecting a node with multiple outputs in SME using maxscript


Hi all,
I am trying to write a maxscript that adds a “OSL: file name” node to another OSL node. the problem I’m having is that it has two outputs (Preview and File Name). ideally at a later stage i would like to be able to set and change the EXR file nested in the OSL:File Name.

many thanks