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

Evaluate Curve not returning point object

$
0
0

@brobes05 wrote:

Hello I am not good at programming, but I am just learning.
Anyway I am trying to get the 'evalute curve' function to work like it does in grasshopper. Here is my code thank you in advance:

import rhinoscriptsyntax as rs

plane = rs.WorldXYPlane()
rectangle = rs.AddRectangle( plane, 10, 10 )
explodeCurves = rs.ExplodeCurves(rectangle, [0] )

crv1 = explodeCurves[0]

curves = crv1,crv2,crv3,crv4

domain = rs.CurveDomain( crv1 )
print "curve domain:", domain[0], "to", domain[1]

domain is 0 to 10 but I would like to reparamaterize it or unitize it.

pointOnCurve = rs.EvaluateCurve( crv1 , 3, )

ALso, I am not sure why I cannot evaluate multiple curves at the same time?
This should be:

curves = explodeCurves[0,1,2,3]
rs.EvaluateCurve(curves, .33)

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles