Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

How to convert the data tree of curve using AddLoftSrf?

$
0
0

I want to make and loft arbitrarily selected curves from the data tree.
But my Grasshopper & GHPython is showing two errors.

This is GH data.
loft_sample.gh (12.9 KB)

1. I don’t understand Runtime error
Putting curves in the list doesn’t work.

import rhinoscriptsyntax as rs
from Grasshopper.Kernel.Data import GH_Path
c1 = _curve.Branch(GH_Path(0, 7))
c2 = _curve.Branch(GH_Path(0, 5))
curves.append(c1)
srf = rs.AddLoftSrf(curves)
result = srf

2. I don’t understand ’ Data conversion failed from Goo to Curve '
I cannot store listed curves.


Please your advice …

best,
Fumi

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles