How can I "hide" a specific guide that has been rendered under an event handler?
Maybe I can't delete guides, but I can try hiding them if anyone can provide an example of page-specific guides being hidden.
Thank you for the reply, but I would still like to know how to hide/unhide guides as an option to explore.
In order to go through with the full project, I think I need both your window script idea and also the ability to hide guides.
Within one window, I'd like to hide/unhide specific guides after they've all been rendered. But, if the proportion changes from 0.2 to say, 0.3, then I'd need the dialog to redraw the new guides with the new proportion, correct?
I would suggest just removing the guides that your script adds and re-making them, each time they change. That would be a better solution in my opinion that hiding them with the hack I mentioned.
There doesn't appear to be a way to hide an indivisual guide according to the api for Guide but there may be a workaround: you could "hide" a guide by coloring it the same color as the paper:
// just an example guide var guide = app.activeDocument.guides; // this stops the guide being visible into the pasteboard guide.fitToPage = true; // make this match your paper guide.guideColor = [255, 255, 255];
(I have posted this on your other question, but it is more pertinent to this thread, so I'll repeat it here in case anyone finds this question.)
I'm still confused here, I have little experience with JS. I'd like to hide a select number of guides using an onChange function of a slider on a specific actively selected page.
Currently the way I add several guides at a time is using the following loop