I think that the easiest thing to do would to be change the dpi to 72dpi (if needed), do your op, then revert back to the original dpi (if needed). There have been a host of font related errors over there years where this was the only solution.
Let us know if this works.
-X
Search found 22 matches
- Mon Jan 30, 2017 2:58 am
- Forum: Photoshop Scripting - General Discussion
- Topic: Font are getting inconsistent in batch operations.
- Replies: 3
- Views: 8020
- Fri Jan 06, 2017 1:02 am
- Forum: Photoshop Scripting - General Discussion
- Topic: Rasterize layerstyle
- Replies: 2
- Views: 6265
Re: Rasterize layerstyle
There is a file in xtools (xtools/xlib/PSConstants.js) that contains the definition for PSEvent.Rasterize. It is automatically generated from header file in the PS SDK. The simplest thing for you to do is edit PSContants.js so the definition is correct. In the meantime, I'll take a look at things on...
- Sun Dec 25, 2016 2:30 am
- Forum: Photoshop Scripts
- Topic: charIDToTypeID and stringIDToTypeID
- Replies: 9
- Views: 19328
Re: charIDToTypeID and stringIDToTypeID
Ah. I didn't look at you code in depth. It's good to see that we are both on the same page here.Kukurykus wrote: Now there are only 17 progress bar updates
- Sun Dec 25, 2016 2:27 am
- Forum: Photoshop Scripts
- Topic: charIDToTypeID and stringIDToTypeID
- Replies: 9
- Views: 19328
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").
PSKey.Shadow instead of charIDToTypeID("shdw").
- Sun Dec 25, 2016 2:07 am
- Forum: Photoshop Scripts
- Topic: charIDToTypeID and stringIDToTypeID
- Replies: 9
- Views: 19328
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...
- 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: 6483
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.
- Sun Dec 18, 2016 5:09 pm
- Forum: Photoshop Scripting - General Discussion
- Topic: Iterating through all layers extremely slow
- Replies: 4
- Views: 7553
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...
- Sat Dec 10, 2016 2:18 am
- Forum: Help Me
- Topic: Save Actionset to .atn?
- Replies: 10
- Views: 12364
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.
You need to set a flag in the file USE_RUNTIME_PALETTE to true.
- Mon Nov 28, 2016 1:36 am
- Forum: Help Me
- Topic: Command line options | How to add them?
- Replies: 2
- Views: 3944
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 &...
- Sun Oct 30, 2016 12:48 am
- Forum: Help Me
- Topic: Copy from Clipboard and paste
- Replies: 2
- Views: 4583
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...