Closed graza closed 3 years ago
I haven't looked too closely but this is probably to do with the name of the controls.
Plotterfun will use the initial value when it's first loaded, but if you change algorithm and some of the controls are the same, it will keep their values. The idea was to be able to jump between similar algorithms without having to adjust the sliders each time.
If you want the controls to definitely start at their initial value, the only way at the moment is to give the control a unique name, not shared by other algorithms.
OK that makes sense. I'm doing something like Subline to thicken the lines so I'll try to make it work like that, and scale the control values according to the other parameters I have.
Cheers!
I've been tinkering with a new algorithm. I don't code much any more, so it's taken longer than it should have! It's still a bit of a work in progress.
Thing is, I can't get the controls to have an initial value. It seems to be the value property but mine always have a value of 1. Any ideas?
My repo is adding a Truchet Tile algorithm: https://github.com/graza/plotterfun