Search found 8 matches

by Grrr1337
Sun Jan 03, 2021 8:22 pm
Forum: Help Me
Topic: Simulate Click with Brush
Replies: 14
Views: 6871

Re: Simulate Click with Brush

I see that I have alot to explore,
Thanks Kukurykus your help means alot to me! :D
by Grrr1337
Sun Jan 03, 2021 6:32 pm
Forum: Help Me
Topic: Simulate Click with Brush
Replies: 14
Views: 6871

Re: Simulate Click with Brush

That has nothing to do with Smart Object, you simply have not unchecked 'Always Create Smart Objects When Placing' in General Preferences. You can keep Smart Objects though if later you want to relink them to other .pngs, or simply replace embedded content. All smart objects will refresh at once on...
by Grrr1337
Sun Jan 03, 2021 1:42 am
Forum: Help Me
Topic: Simulate Click with Brush
Replies: 14
Views: 6871

Re: Simulate Click with Brush

Try this script in place of your previous. It's going to open .psd, read .txt coordinates, and put trees from bottom subfolder on their map spots: My god, that ran atleast 3 times faster! ...and I've got just a sketchy idea on what happens inside of your fast Action Manager script, Few questions ap...
by Grrr1337
Sat Jan 02, 2021 11:41 am
Forum: Help Me
Topic: Simulate Click with Brush
Replies: 14
Views: 6871

Re: Simulate Click with Brush

It's possible to do by 2 methods you described, I did initial research on finding the different components, which were required for both of my planned algorithms/methods to work, so I know it should be possible to execute them. ...and it wouldn't be so slow when you know how to do it. Agreed - alth...
by Grrr1337
Thu Dec 31, 2020 4:46 pm
Forum: Help Me
Topic: Simulate Click with Brush
Replies: 14
Views: 6871

Re: Simulate Click with Brush

You won't find it on internet. I looked lately too, and even if you understood AM you had to think up workaround to imitate simulate brush click. Considering your much greater experience with PS development than mine, I see now that this is not that simple to do. What you need it for? I'm using it ...
by Grrr1337
Thu Dec 31, 2020 10:43 am
Forum: Help Me
Topic: Simulate Click with Brush
Replies: 14
Views: 6871

Re: Simulate Click with Brush

Forget of slow Document Object Model and learn fast Action Manager to do what you want in 2 - 3 seconds. Thanks, Kukurykus - Until now I wasn't aware why so many people use it, since I thought that it was more logical to use DOM because of the better readability of the code. Unfortunately my proble...
by Grrr1337
Tue Dec 29, 2020 1:28 pm
Forum: Help Me
Topic: Simulate Click with Brush
Replies: 14
Views: 6871

Simulate Click with Brush

Hey guys, The web showed me no clues, while I was trying to figure out how to simulate a brush click - via function that takes a 'Point' as argument: // SimulateBrushClick([200, 200]) function SimulateBrushClick (Pt) { var docRef = app.activeDocument; docRef.pathItems.removeAll() var arrPathPt = new...
by Grrr1337
Fri Nov 01, 2019 3:47 pm
Forum: Help Me
Topic: Iterating the Layers and renaming
Replies: 1
Views: 2898

Iterating the Layers and renaming

Hi everyone, File->Scripts->Load Files into Stack... and I'm loading a bunch of .pdf files as layers into my newly created .psd - Since the layers get names such as "LayerName.pdf", I'm wondering how I would iterate over them and right-trim the ".pdf" from their name? (with JS pr...