Grasshopper

algorithmic modeling for Rhino

I'm gonna develop some components with visual studio using c#.

Here's the problem.

First, I should know domain of the number slider.

Second, I should control that number slider like galapagos or goat !

How can I do this ? There is any rhinocommon ?

Thanks in advance :D

Views: 805

Replies to This Discussion

The GH_NumberSlider object in Grasshopper.Kernel.Special exposes two properties called TickCount and TickValue. These two allow you to easily access the slider without having to worry about domains, decimal places and odd/even constraints. Basically, the tick approach tells you how many unique values the slider can have and which of those is currently selected.

If you really do need to set actual values, then you must access the Slider property of the GH_NumberSlider object. You can set and change all properties and values through there, but note that it's a lot harder to get it right and to only trigger the updates you need.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service