Search found 237 matches

by Kukurykus
Sun Mar 29, 2020 12:49 am
Forum: Help Me
Topic: config file
Replies: 5
Views: 77

Re: config file

You were not precise, saying of first value and then of all of them in your post, so I extracted examplary first cell from array, while you can have all of them at once removeing [0] from latest code. To get other values separatly use (singly) another numbers in square brackets.
by Kukurykus
Thu Mar 26, 2020 12:41 pm
Forum: Help Me
Topic: config file
Replies: 5
Views: 77

Re: config file

Code: Select all

ini.match(/\d+(?=\ncropy)/g)[0]
by Kukurykus
Wed Mar 25, 2020 12:40 pm
Forum: Help Me
Topic: How to bypass the error "The command [name] is currenly unavailable"
Replies: 2
Views: 679

Re: How to bypass the error "The command [name] is currenly unavailable"

That's a bug. You can use following code to make selection of last selected layer if for some reason it lost selection. And remember if you didn't know that, to copy layer, that layer has to be not only selected in Layers panel, but also have selection (usually you make by CTRL A): activeDocument.su...
by Kukurykus
Wed Mar 25, 2020 12:16 pm
Forum: Help Me
Topic: config file
Replies: 5
Views: 77

Re: config file

Code: Select all

ini = '[body]\ncropx= 100\ncropy= 200\n\n[hair]\ncropx= 10\ncropy= 80';
(fle = File('~/Desktop/File.ini')).open('w'), fle.write(ini), fle.close()

Code: Select all

(fle = File('~/Desktop/File.ini')).open('r'), ini = fle.read(), fle.close(), ini
by Kukurykus
Thu Mar 19, 2020 4:29 pm
Forum: Photoshop Scripts: Beta Testing
Topic: Photosphere
Replies: 7
Views: 327

Re: Photosphere

When you replace pasting with placing then the process will be faster. To use transparent background images, you must also add stroke to canvas, your script will remove after placing.
by Kukurykus
Thu Mar 19, 2020 4:07 pm
Forum: Photoshop Scripts: Beta Testing
Topic: Photosphere
Replies: 7
Views: 327

Re: Photosphere

Very nice!
by Kukurykus
Mon Mar 16, 2020 10:46 pm
Forum: Help Me
Topic: delete all layers including "abc"
Replies: 6
Views: 1006

Re: delete all layers including "abc"

This refers to sole dropdownlist, so without connection to document layers.
by Kukurykus
Mon Mar 16, 2020 12:47 pm
Forum: Help Me
Topic: delete all layers including "abc"
Replies: 6
Views: 1006

Re: delete all layers including "abc"

I tried what you said with ExtendScript DropDownList and found I don't have to delete them from last item (but selected one): win = new Window('dialog') lst = win.add('dropdownlist', [0, 0, 100, 20], [1, 2, 3]) btn = win.add('button', undefined, 'Delete an item') btn.onClick = function() {lst.remove...
by Kukurykus
Thu Mar 12, 2020 5:19 pm
Forum: Photoshop Scripts: Beta Testing
Topic: Tone corrector
Replies: 8
Views: 872

Re: Tone corrector

I like txuku and understand his english, but yours is better :)