Grasshopper

algorithmic modeling for Rhino

How to get GH_NumberSlider to snap to multiplies other than 0.1 in float mode

Does anyone have any suggestions on how to do this ideally I would like to get my slider to snap to multiplies of 0.2 or 0.5 as opposed to 0.1 when set to float mode.

I tried using the SnapDistance property but it doesn't seem to do anything. Is it possible to do it another way say using the Snapping Editor? 

Some example code would be greatly appreciated thanks!

Views: 350

Replies to This Discussion

You can set the slider's expression by x*0.2 or x*0.5

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