Adding Preset to Edit Box

For general discussion related FlowStone
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Adding Preset to Edit Box

Post by Perfect Human Interface »

Ok, still weirdness. I tried to round to int in green (multiply by 100, send float into int, multiply by 0.1), but still getting off-by-one errors with certain values. The weird thing is that I can still see it loading in, where the plugin will pop up with the correct value for a split second, then flicker, and then the value is set again to the wrong value. It's like you can tell the preset manager is kicking in, but it's a tease with that value you want flashing before your eyes for a moment before it does.

So, having an epiphany, I just removed the preset parameter altogether. ...Of course now I'm back where I started and it doesn't save the value at all. :?

How is the preset system recalling the correct value and then immediately overwriting it with an incorrect one?
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: Adding Preset to Edit Box

Post by Perfect Human Interface »

I seem to have found a solution. Setting the "auto" parameter to false appears to remove any errors. Don't ask me why. I don't even need any additional rounding. This won't need to be automated so it will be fine.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Adding Preset to Edit Box

Post by billv »

Perfect Human Interface wrote:Setting the "auto" parameter to false appears to remove any errors

Great find. :) ...i always have this set "true"...can't remember ever changing it/mucking around with it.
Post Reply