i tried to use this script

http://wiki.mcneel.com/developer/scriptsamples/setcrvlength

i made a button and paste script in command window. I got:

Command: Option

Unknown command: Option

is there something i need to install to run this script?

Views: 63

Reply to This

Replies to This Discussion

Hello- you'll need to use the "_-Runscript" command, and/or "_Loadscript", depending on how the script is designed. If you launch RhinoScript's Help (Help menu > Plug-ins > RhinoScript) , there is an 'Introduction' section with info on making as well as running scripts that will help you get started.

-Pascal

pascal@mcneel.com

thx for fast reply

Done for today, button and script works like a charm, thx.

end of the script trims the line

http://wiki.mcneel.com/developer/scriptsamples/setcrvlength

pts = Rhino.DivideCurveLength(crv(0), lnew)
t = Rhino.CurveClosestPoint(crv(0), pts(1))
Rhino.TrimCurve crv(0), Array(dom(0), t), True


how can i only create a point at trimming location, without trimming (or break curve)?
...Something like Rhino.PointAdd
crv(0), t

Rhino.AddPoint Array(dom(0), t)

i created a point, but it doesent end up in the right spot. Any ideas, thx.

Array(dom(0),t) isn't going to work because those are parameters and not coordinates also you would need three anyway to define a point.

thx, works great.

RSS

Translate

© 2013   Created by McNeel Admin.

Badges  |  Report an Issue  |  Terms of Service