GhPython Node to Code - Loft: input 2 options. error: Data conversion failed from Text to Loft Options

The problem is that in your script the function:

loft = ghcomp.LoftOptions(True,False,0,0,0)

returns a string instead of the expected type LoftOptions. I’m investigation the problem but you could consider using the rhinoscriptsyntax AddLoftSurface function instead.

Hope this helps