Copy link to clipboard
Copied
Thanks to other replies here, I'm moving forward with a simple script that will let me draw guides at proportions of my document.
But, the main editable variables I'm creating don't seem to change when I change the text, and I don't know why. I'm new to JavaScript, so if anyone could explain how to fix this, I'd appreciate it.
I've configured a dialog with editable text fields. These text fields are meant to control the proportions with which guides are drawn across the length of a document, such as 20% of the document's length, 40%, 60% and so on. The script works the first time I run it, but when I edit the text, nothing changes.
How do I get the variables to dynamically update with new user inputs?
Copy link to clipboard
Copied
Here's a piece of script I tried to get started, but again it does nothing and I don't know why
Copy link to clipboard
Copied
As an additional piece of information, there MIGHT maybe possibly be an "onChange" event handler for adobe's scripting, though I don't know how I would implement this here for text fields.
Copy link to clipboard
Copied
Here is again an attempt, which does not return an error, but which STILL does nothing while utilizing the onChange event handler. I'm intending it to delete all previously created guides and then redraw new ones, but it doesn't.