Highlighted

Several jsx scripting questions

Participant ,
Jul 05, 2020

Copy link to clipboard

Copied

1st:  Is there a way to select all artwork that's only associated with the active artboard?  Similar to Ctrl-A, but only for the active artboard.

 

2nd: Can a user have the option to save inputs collected from a UI?  Say I use inputs from the user, but want those inputs to be saved for the next time the script is ran, even after Illustrator is shut down.

 

3rd:  Can you have the equivalent of a tool tip in a jsx UI?  Like a mini question mark emblem next to a tool, where if you hover your mouse over it, text appears explaining how it's used.

Topics

Scripting

Views

70

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Several jsx scripting questions

Participant ,
Jul 05, 2020

Copy link to clipboard

Copied

1st:  Is there a way to select all artwork that's only associated with the active artboard?  Similar to Ctrl-A, but only for the active artboard.

 

2nd: Can a user have the option to save inputs collected from a UI?  Say I use inputs from the user, but want those inputs to be saved for the next time the script is ran, even after Illustrator is shut down.

 

3rd:  Can you have the equivalent of a tool tip in a jsx UI?  Like a mini question mark emblem next to a tool, where if you hover your mouse over it, text appears explaining how it's used.

Topics

Scripting

Views

71

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Jul 05, 2020

Copy link to clipboard

Copied

Hi,

1st:  Is there a way to select all artwork that's only associated with the active artboard?  Similar to Ctrl-A, but only for the active artboard.

app.executeMenuCommand('selectallinartboard')

NOTE: It will also select objects if one objects lies on two artboards.

 

2nd: Can a user have the option to save inputs collected from a UI?  Say I use inputs from the user, but want those inputs to be saved for the next time the script is ran, even after Illustrator is shut down.

Yes, for this you can store UI values in some settings files in JSON format or another. (It depends what all information you want to store.) at your preffered location.

 

3rd:  Can you have the equivalent of a tool tip in a jsx UI?  Like a mini question mark emblem next to a tool, where if you hover your mouse over it, text appears explaining how it's used.

Could you please share some screen shot. I understand but screen shot will give more clear picture of it.

 

 

 

Best regards

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Most Valuable Participant ,
Jul 05, 2020

Copy link to clipboard

Copied

Hi @Maple_Stirrup

Your 3rd question:

Do you mean something like that?

dialog_helpTip.png

 

var win = new Window("dialog", "Quicktip");
win.qt = win.add("edittext", undefined, "hover over the edit text field");
win.qt.helpTip = "This is a Help Tip";

win.show();

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...