Loft: Vicarious argument deduced from default

First-day poster here. I have a school project in Grasshopper-Python. I’ve been getting an error message in my code that I’ve been trying to troubleshoot for days now, but I can’t figure it out. So, I’m reaching out for help here. I’m only allowed to use ghpythonlibs.

my code:
GrasshopperCode_Forum_New.gh (30.2 KB)

How do i solve this problem?
Many thanks in advance

@Ismail_Demirol

Welcome to the McNeel forums!

The Loft component in grasshopper takes a loft options argument as well. The warning you are seeing is Grasshopper telling you that it is using the default options.

You can create a gh.LoftOptions value like below and pass it to the gh.Loft call. Note that I am using a few default values on the gh.LoftOptions as well to avoid the warning:

loft_options = gh.LoftOptions(False, False, 0, 0, 0)
loft1 = gh.Loft(geometry1[0], loft_options)
loft2 = gh.Loft(geometry2[0], loft_options)
1 Like