It is due to the fact that you pass a nested list to rs.AddLoftSrf() instead of a list of GUIDs, pointing to curves. c1 and c2 are of type List[object].
In your case, you can unpack the GUIDs like this:
This is the same issue as above. The Curve component is unable to unpack nested lists. It expects a single item, list of items, or data tree. It doesn’t know about nested lists. The same fix as above also solves this issue.
If you’re ever unsure about the type of a variable, you can always print(type(variable)) to take a peek.
@diff-arch
Thanks so much your time and reply !
I was able to understand the error with your careful advice.
I didn’t understand how to get a nested index and how nested lists work.