Message 1 of 2
Float Slider default Value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm adding to sliders to a command. One is a float slider and one is an integer slider.
I can set the default value of the integer just fine, but can not set the value of the float? It errors out. Any tips on how to fix this?
Using Python:
# Create float slider input with one sliders and a value list. floatValueList = [0.006, 0.01, 0.015, 0.02, 0.025, 0.03, 0.04] layerHeight = group1ChildInputs.addFloatSliderListCommandInput('floatSlider2', 'Layer Height', 'mm', floatValueList, ) layerHeight.valueOne = 0.02 # Create integer slider input with one sliders and a value list. valueList = [10, 15, 18, 20, 25, 30, 33, 40, 50, 60, 66, 70, 75, 80, 90, 100] inFillPercent = group1ChildInputs.addIntegerSliderListCommandInput('intSlider2', 'Infill %', valueList, ) inFillPercent.valueOne = 20
Kevin Schneider
Reply
Reply