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

Parameter list from DivideCurveLength

$
0
0

@newton wrote:

newbie question here
I am dividing a curve by length 20mm
It is returning a list of parameters into params.
I then want to remove the last parameter in the list.
I have tried several things… pop and del to remove
the last parameter from the list. I get an error.
example below…Can someone explain to me what is wrong with the simple code?
Much Thanks

import rhinoscriptsyntax as rs

crv = rs.GetObject("Select curve", rs.filter.curve)
params = rs.DivideCurveLength(crv,20.0,False,False)
i = len(params)
print(i)
lastone = params.pop()

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5887

Trending Articles