Grasshopper

algorithmic modeling for Rhino

Say I want to use the RhinoScript Component to fill in for a component that Grasshopper doesn't have.

The 2 main ones I am trying to figure out is line on both sides of a point with the distance being the variable. And offset curve on both sides with the distance being the variable.

As I typed this I went back to look at the RhinoScript methods that I would use, and now realize that there is no properties? with the RhinoScript methods that can do this. So maybe this is a pointless question.

If I remember correctly, there is an inbetween scripting method, using Rhino Commands that sort of lies between macros and scripting.

I've got them working in grasshopper with many a lot of components to do something so simple and was wondering if and how I can use the VBScript component to streamline things.

Thank you.

Views: 291

Replies to This Discussion

The VB component in Grasshopper does not use the RhinoScript functions. It taps directly into the SDK. The SDK is both more powerful, more flexible and more confusing than RhinoScript.

RhinoScript is based on VBScript, VB in Grasshopper is VB.NET. Apart from a few superficial syntax similarities, the two are wholly different beasts.

The two cases you've described can be solved pretty easily with Grasshopper component without resorting to scripting.


You will not be able to use RhinoScript methods inside Grasshopper, nor Rhino Commands. Both these approaches operate on existing geometry, and all the Grasshopper geometry is 'non-existent' as far as Rhino is concerned.

If you post a specific (and simple) problem you're trying to solve I'll happily give you a VB script component that does just that. Then you can examine the code at leisure.

--
David Rutten
david@mcneel.com
Seattle, WA
Hey David,

I just emailed you the file and some comments.

Thanks,
ryan

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service