Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle objects attached to "Presets" object affected when using the "save" preset method. #2102

Open
pereshaped opened this issue Jun 19, 2024 · 10 comments

Comments

@pereshaped
Copy link

pereshaped commented Jun 19, 2024

When trying to save a preset (using a save message box) in which there are toggle object involved, the save button flips the toggles. I noticed also that they are affected when selecting a preset using either a radio button or a number box.

You can see the behaviour here:
https://www.facebook.com/502332142/videos/988104119433511/

@porres
Copy link
Owner

porres commented Jun 19, 2024

Hi, like I said, I need a minimal patch (meaning a very simple patch with the minimum elements that show the problem), uploaded here as a zipped file, so I can see if I can reproduce and then debug it...a

@pereshaped
Copy link
Author

Here is the patch.
Now!.
On first creating the patch and testing it exhibited the described behaviour. Now that I have loaded the patch again it seems ok and not exhibiting the described problem.

Macbook Air 2011
OsX High Sierra
PD 0.54
Else, curren version of this date
ELSE PRESETS TEST.pd.zip

@porres
Copy link
Owner

porres commented Jun 19, 2024

not sure what I need to check in this patch, it has no toggles

@porres
Copy link
Owner

porres commented Jun 20, 2024

anyway, I guess I never tested this with toggles :)

the thing is that presets relies on [retrieve] sending a bang to collect the value of a GUI and the problem is that toggles change the state when receiving a bang. I don't think there is a way to fix it. What I can do is offer a toggle alternative that doesn't change the state when receiving a bang, well, I already to actually, it's called [button], but I'm not sure it works with presets either, but if it doesn't I can make it work!

@pereshaped
Copy link
Author

@porres
Copy link
Owner

porres commented Jun 20, 2024

if you really really want to use toggle, what you can do is this.

Screen Shot 2024-06-19 at 21 05 11

@pereshaped
Copy link
Author

pereshaped commented Jun 20, 2024 via email

@porres
Copy link
Owner

porres commented Jun 20, 2024

check my answers

@pereshaped
Copy link
Author

pereshaped commented Jun 20, 2024 via email

@pereshaped
Copy link
Author

pereshaped commented Jun 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants