Search found 20 matches

by xbytor
Sun Dec 25, 2016 2:30 am
Forum: Photoshop Scripts
Topic: charIDToTypeID and stringIDToTypeID
Replies: 9
Views: 12362

Re: charIDToTypeID and stringIDToTypeID

Kukurykus wrote: Now there are only 17 progress bar updates
Ah. I didn't look at you code in depth. It's good to see that we are both on the same page here.
by xbytor
Sun Dec 25, 2016 2:27 am
Forum: Photoshop Scripts
Topic: charIDToTypeID and stringIDToTypeID
Replies: 9
Views: 12362

Re: charIDToTypeID and stringIDToTypeID

Also, xtools/xlib/PSConstants.js might be relevant here. It's auto generated via a perl script from PS SDK header files. If , it lets you use
PSKey.Shadow instead of charIDToTypeID("shdw").
by xbytor
Sun Dec 25, 2016 2:07 am
Forum: Photoshop Scripts
Topic: charIDToTypeID and stringIDToTypeID
Replies: 9
Views: 12362

Re: charIDToTypeID and stringIDToTypeID

Just a quick note about ProgressBar stuff, it may be better to update the progress bar every 4 or 10 or more iterations instead of every iteration. In general, I would take what ever the total was and use 5% as the update chunk so there would only be 20 ProgressBar updates regardless of how many ite...
by xbytor
Sun Dec 25, 2016 1:58 am
Forum: Photoshop Scripting - General Discussion
Topic: Is there a way to apply Oil Paint filter with JavaScript in Photoshop?
Replies: 3
Views: 3759

Re: Is there a way to apply Oil Paint filter with JavaScript in Photoshop?

Basically, if you can record in an action, you can get JS code for it. The simplest way is using the SL Plugin and get code that way. The alternative is to record an action and use xtools to convert it to JS code as the previous post suggested.
by xbytor
Sun Dec 18, 2016 5:09 pm
Forum: Photoshop Scripting - General Discussion
Topic: Iterating through all layers extremely slow
Replies: 4
Views: 4655

Re: Iterating through all layers extremely slow

The simplest fix (assuming you have a lot of layers) is a change like this: // For each layer in the document for (var i = 0; i < docLayers.length; i++) { to this: // For each layer in the document var len = docLayers.length; for (var i = 0; i < len ; i++) { If that doesn't work, you'll need to desc...
by xbytor
Sat Dec 10, 2016 2:18 am
Forum: Help Me
Topic: Save Actionset to .atn?
Replies: 10
Views: 7478

Re: Save Actionset to .atn?

xtools/xapps/ActionsPaletteToFiles.jsx if you have xtools installed. If not, this is a standalone version http://ps-scripts.cvs.sourceforge.net/v ... oFiles.jsx

You need to set a flag in the file USE_RUNTIME_PALETTE to true.
by xbytor
Mon Nov 28, 2016 1:36 am
Forum: Help Me
Topic: Command line options | How to add them?
Replies: 2
Views: 2475

Re: Command line options | How to add them?

Create a .bat file and write your command line to it the file.execute() the file. Should work. If not pass your command as a single string and call app.system(). That will execute the command line. It runs async which may or may not be a problem for. app.system('"C:\program.exe" -options "c:\input.t...
by xbytor
Sun Oct 30, 2016 12:48 am
Forum: Help Me
Topic: Copy from Clipboard and paste
Replies: 2
Views: 2918

Re: Copy from Clipboard and paste

If you want to format dates, here's the code for you from xtools. //========================= Date formatting ================================ // // Date.strftime // This is a third generation implementation. This is a JavaScript // implementation of C the library function 'strftime'. It supports al...
by xbytor
Tue Aug 30, 2016 3:01 am
Forum: Help Me
Topic: Please Help me!Questions about PS scripting tools
Replies: 1
Views: 2024

Re: Please Help me!Questions about PS scripting tools

Check out CSX: https://sourceforge.net/projects/ps-scr ... eetX/v2.2/

I don't see anything in your post that CSX can't handle. It's got settings for just about everything.

-X
by xbytor
Sat Aug 13, 2016 3:38 pm
Forum: Adobe Bridge Scripts
Topic: Do It Yourself Metadata Input
Replies: 26
Views: 45180

Re: Do It Yourself Metadata Input

Good to see you here, Paul. Your presence here makes this a better site.