Grasshopper

algorithmic modeling for Rhino

Hi-

I'm trying to write a VB.NET component that will output the name and current value of a slider as a way to keep track of parameter values as I'm iterating.

I'm not sure that "name" is the correct description, so I've circled the item I want to retrieve in the attached screenshot.

So far the strategy has been to get a list of GrasshopperDocument.ActiveObjects, filter them by whether or not they're Grasshopper.Kernel.Special.GH_NumberSlider. From there I can get the GUIDs of the sliders, but am struck after that.

Also, is there a much easier way to do this that I'm overlooking?

Suggestions?

Views: 607

Attachments:

Replies to This Discussion

You're looking for the "NickName" and "TickValue" params. I'm not too familiar with VB, so here's an example of how to do this in Python.

Hope it helps.

/SPM

Attachments:

Thanks Stephen!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2021   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service