shoebot icon indicating copy to clipboard operation
shoebot copied to clipboard

var() step/steps don't seem to work properly

Open rlafuente opened this issue 10 years ago • 6 comments

e.g. being able to increment variables by specific amounts, or steps.

rlafuente avatar Apr 04 '14 14:04 rlafuente

Sounds good [bikesheds] it should be called step

stuaxo avatar Apr 04 '14 14:04 stuaxo

We should think about how something like var() could work in shoebot.next ... this nodebox var thing doesn't feel exactly right.

stuaxo avatar Apr 08 '14 14:04 stuaxo

step/steps was implemented, right? I saw that briefly when documenting vars but didn't test

rlafuente avatar May 06 '18 21:05 rlafuente

I can't test right now, but looks like both are supported

https://github.com/shoebot/shoebot/blob/master/shoebot/data/variable.py

stuaxo avatar May 07 '18 21:05 stuaxo

Briefly tested it on vars/cornu.bot and it's not working as expected. Will look further later

rlafuente avatar May 08 '18 22:05 rlafuente

Seems like the default in Gtk when things get small is 0.1, you can tweak this by changing the number of digits on the adjustment (amount of decimal points the slider can show while adjusting).

I put in a slightly dumb fix, that says if the difference between min and max > 2 set_digits to 2.

https://github.com/shoebot/shoebot/blob/master/shoebot/gui/var_window.py#L98

screenshot from 2019-01-28 22-18-19

It doesn't exactly get you to the right step but it's more usable.

stuaxo avatar Jan 28 '19 22:01 stuaxo