Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Float Slider default Value

Message 1 of 2
389 Views, 1 Reply

Float Slider default Value

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
Message 2 of 2
in reply to: schneik-adsk

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

Shyam Goyal
Sr. Software Dev. Manager

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th

Autodesk Design & Make Report