Grasshopper

algorithmic modeling for Rhino

Does anyone know what data type the Loft options "O" input will accept. I have a loft component that i constantly change the loft options on and I was wondering how to either create an boolean to toggle the "align sections" parameter or possibly a VB component to access the SDK loft options. Does the SDK loft method even accept an "align sections" argument?

Views: 4185

Replies to This Discussion

Nevermind, I forgot about the ability to extract parameters! Now i can set up a simple VB conditional toggle.
Hi, I would love to see the VB script for this if you do one. I'm am new to VB scripting, by new I mean I haven't done any yet! But I'm interested to see how to call up rhino commands using it. I think the best way to learn (maybe) is to analyse other scripts and see what happen when I tweak something....please tell me if I'm wrong!
No problem Peter, I've uploaded an example of this. you might also check out this post if you don't want to deal with VB:
Attachments:
Dear Bob

thanks for that I think I get it. For setting a switch for loft options would you set up a single switch with all variables i.e. tight, loose, closed etc....?
Yes that's right however, this logic only works for 2 options (shpere or circle). For something with more than two options you might have to get a little deeper into RhinoSDK using the CRhinoGet class to use command line options for the loft. I know this would be the starting point but it's a little out of my skillset.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service