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

rs.ExtendCurve keep giving me Message: iteration over non-sequence of type Guid

$
0
0

@Rickson wrote:

i’ve tried coercing, making a different list, all sorts of things yet still get this error.

Message: iteration over non-sequence of type Guid

import rhinoscriptsyntax as rs

surface = rs.GetObject("Select Surface",8)
curve = rs.GetObject("Select  curve", 4)
#offset = rs.GetReal("Offset Amount")
#offsetX = rs.GetInteger("How many")

offset = 2
offsetX = 3

count = 1
    for eachint in range(offsetX):
        offing = rs.OffsetCurveOnSurface(curve,surface,(offset * count))
        count += 1
        if offing:
        extC = rs.ExtendCurve(offing, 0, 2, surface)

AND

import rhinoscriptsyntax as rs

surface = rs.GetObject("Select Surface",8)
curve = rs.GetObject("Select  curve", 4)
#offset = rs.GetReal("Offset Amount")
#offsetX = rs.GetInteger("How many")

offset = 2
offsetX = 3

count = 1
curves = []
for eachint in range(offsetX):
    offing = rs.OffsetCurveOnSurface(curve,surface,(offset * count))
    count += 1


for excurve in curves:
    print (excurve)
    curveid = rs.coercecurve(excurve[0])
    extendC = rs.ExtendCurve(curveid, 0 ,2, surface)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles