Float Slider default Value

Float Slider default Value

schneik-adsk
Community Manager Community Manager
572 Views
1 Reply
Message 1 of 2

Float Slider default Value

schneik-adsk
Community Manager
Community Manager

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
0 Likes
573 Views
1 Reply
Reply (1)
Message 2 of 2

goyals
Autodesk
Autodesk

Thank you for reporting this. Created FUS-41479 in internal system to track this.



Shyam Goyal
Sr. Software Dev. Manager
0 Likes