Offset Ribbon Surface

Hello forum, I need a hand to understand how to fox this script to cosntruct a Ribbon from RibbonMethod from the API.

Somebody can helpme to undersant whats the problem?
Good Weekend :slight_smile:
Im using Rhino 8. Python 3

OffsetRibbonSurface.gh (39.1 KB)