addon_common icon indicating copy to clipboard operation
addon_common copied to clipboard

add slider input for BoundFloat/Bound Int

Open patmo141 opened this issue 5 years ago • 3 comments

We've had them before. I kind of like this slider bar with no text input.

image

https://github.com/jayanam/bl_ui_widgets/blob/master/bl_ui_slider.py

patmo141 avatar Dec 31 '19 15:12 patmo141

7f3ded6 adds scrubbing functionality to the BoundFloat, BoundInt

Scrub Function

patmo141 avatar Jul 27 '20 20:07 patmo141

iteritems does not work if trying to override min_value, max_value and step size

Exception Info

  • Time: 2020-08-04 17:20:03.150554
  • Count: 1
  • Hash: f6cc29aa5856faa0ec223d5375b5258c
  • Info:
    • EXCEPTION (<class 'AttributeError'>): 'dict' object has no attribute 'iteritems'
    • .../common\boundvar.py
      
    • 000 0057:clone_with_overrides() for k, v in overrides.iteritems():
    • .../common\ui.py
      
    • 001 0222:input_range() if overrides: value = value.clone_with_overrides(**overrides)
    • C:\Dev\scripts28\addons\d3project\simple_ui.py
      
    • 002 0202:setup_ui() i5 = ui.input_range(value = self.variable_5, min_value = 0.0, max_value = 1.0, step = .1) #label? title? etc? iteritems not working
    • 003 0110:start() self.setup_ui()
    • .../cookiecutter\cookiecutter.py
      
    • 004 0097:invoke() try: self.start()

patmo141 avatar Aug 04 '20 21:08 patmo141

slider bar slides off the edge when value is at max

patmo141 avatar Aug 08 '20 21:08 patmo141