Grasshopper

algorithmic modeling for Rhino

hi everyone,
i've just started scripting a little bit...
i have two questions:
- is it possible to weld the vertices of a mesh through a VBscript (the same command as in rhino WeldVertices)? and choose automatically all the vertices?
- i tried to insert a script (david rutten's meshrelaxation script in my case) in a vbscript tab in grasshopper, but it doesn't work, i don't know if it's possible to do that or you have to change it a little bit...
thank u in advance!
vittorio

Views: 498

Replies to This Discussion

Vittorio,
A Rhinoscript will not directly work in a .net component. While the syntax is similar for vb.net, there are some fundamental differences in the functions, variable 'types,' etc. It would have to be rewritten.
Luis
ok, thanx luis, i felt i was doing something stupid!
You can call the rhino utility WeldVertices in a VB script. You should be able to find an example of another rhino utility script and follow the lead from there. Or, if you post something you've worked on, I can help you fix it.
To Note,
If it is a Rhino Command, meaning, something you type into the command line or you can access through a menu, there are ways to call that from a .net component. There are some examples of this already out there.

And yes, as Elizabeth says, it can also be called from a Rhinoscript with:
Call Rhino.Command("-_WeldVerticies ",false) or something similar. You have to add in some selection in order for it to work on the appropriate geometry.
thanx luis, i ll try to explore some .net scripts!
thanx elizabeth, i ll have a look at some examples and i ll let u know if i need your help again!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service