Re: Image clearcutting - using Javascript to analyse selected pixels for...
I bet ImageJ could handle this easily. https://imagej.net/Welcome
View ArticleRe: Image clearcutting - using Javascript to analyse selected pixels for...
You could also select the white background, Blur->Average and check the value. Then do the same with the clipping path. Values should be different between background and subject in both cases if...
View ArticleRe: Rename file .jsx
I'm having a problemif I write with capital letters TEST.jsx the script gives me an errorIs there a way to avoid the error?
View ArticleRe: Rename file .jsx
Correct the you need to have the name in quote in lowercase for the compare to work. It does not matter if the actual file name is mixed case. The test is for the current file name in all lower case....
View ArticleRe: How does it achieve OCR?
The PS plugin I created has been posted on my personal website(https://yuyaoyong.com/ ). It is called Typer. It can provide OCR and translation functions for PS. Hope it can help more people....
View ArticleRe: Random Selection of Actions with Script. Possible?
Did you ever find a solution to your inquiry? I'm in the same situation you are right now. I have 100+ actions but would like to only select certain ones at various times.
View ArticleRe: How does it achieve OCR?
I'd like to suggest to make switch button between languages on your website
View ArticleRe: Image clearcutting - using Javascript to analyse selected pixels for...
Thanks for the responses, in the end I think I have found a solution based on c.pfaffenbichler's code in this thread: How do you get Histogram Mean Value? The code with my additions: var histo =...
View ArticleRe: Rename file .jsx
Also, if you use not purely Latin characters or use spaces, then you must do so if (File.decode(new File($.fileName).name).toLowerCase() != "test.jsx") alert("WTF!");
View ArticleRe: Rename file .jsx
I mean that if I put the uppercase letters as a script below if (File.decode(new File($.fileName).name).toLowerCase() != "TEST.jsx") alert("WTF!");
View ArticleRe: Rename file .jsx
You can not do it this way.You have already been indicated.This is the same as doing if ("a" != "A") alert("WTF!"); Alert will always be. UPDIf you want, you can do so if (File.decode(new...
View ArticleRename file jsx 2
Starting from this discussionRename .jsx filehttps://forums.adobe.com/thread/2650003in this case it appears that the file has been renamed I don't know if possiblebut could you rename the original file...
View ArticleRe: Rename file jsx 2
If I understood everything correctly var file = new File($.fileName); var file_name = File.decode(file.name); var orig_name = "test.jsx"; var ok = true; if (file_name.toLowerCase() !=...
View Articlebatch place jpg in two smart objects and save jpg;
Hi, i have following script, but it works only with one smart object (the selected one). It opens the selected smart object, put the first image, resize it, saves, closes, and saves the main psd as...
View ArticleRe: batch place png files in two smart objects and save jpg;
Create a loop to go through the layers and check to see if they are smart objects, if the are, run you code to save them, but put all that code in a function to use with the if statement.
View ArticleRe: batch place jpg in two smart objects and save jpg;
thank you for reply, i'll try that and will let u know if i happen to have any trouble
View ArticleRe: javascript include?
Hello, Is there a way to catch error is the needed (included) file can't be find? I tried:try { #include "myLib.jsx"; }catch (err){ alert("missing file"); }but it raises a fatal error if there is...
View ArticleHow to delete an XML element?
Hello, A XML newbie question... Following the example here : https://estk.aenhancers.com/9%20-%20Integrating%20XML%20into%20JavaScript/the-xml-object.h tml#accessing-xml-elements <bookstore>...
View ArticleRe: How to delete an XML element?
I'm not on my computer to try this, but I think you need to get the category that you want then point back to it's parent: bookstoreXML.book.(@category == "CHILDREN").parent();
View ArticleRe: Edit Contents if possible AND if it won't open CameraRaw
Sorry it took me so long to say thanks but this script really helped me, thank you once again r-bin
View ArticleAuto-saving works on Windows but not on a Mac
I followed the code provided in this thread (Saving without dialog window) to overwrite/save image as PNG without the 'Save as..' dialog. It works fine on my Windows PC. But I passed the script file to...
View ArticleRe: How to delete an XML element?
I tried both:delete bookstoreXML.book.(@category == "MUSIC"); delete bookstoreXML.book.(@category == "MUSIC").parent();but nothing is deleted (though there is no error raised).
View ArticleRe: How to delete an XML element?
Try this: delete bookstoreXML.book.(@category == "MUSIC")[0]; If you have more than one node with the category "MUSIC" you might have to create a loop to find them all or the one you want.
View ArticlePlacing Image based off CSV inside a Smart Object
I have a script working that reads a CSV file and makes multiple variations for multiple people. Part of it though is placing an image (/xxx/filename-lastname.jpg) inside a smart object. I can not...
View ArticleRe: javascript include?
var ok = true; var f = new File(new File($.fileName).parent.fullName + "/myLib.jsx"); if (!f.exists) { alert("Not found the required file:\n\n" + f.fsName); ok = false; } else $.evalFile(f.fsName); if...
View ArticleRe: javascript include?
Well, it appears $.evalFile(pathToMyLib) has a strange behavior: If myLib.jsx contains:alert("OK, included") function testFcn() { alert("test"); }the first alert ("OK, included") is well...
View ArticleRe: javascript include?
Everything works perfectly, including CS6.I also have CS6.Show a simplified version of the script and mylib.jsx when something doesn’t work for you.
View ArticleRe: javascript include?
Do not use this code (as I showed above) inside any function, then the global variables and functions defined in mylib.jsx will remain visible only inside this function.
View ArticleRe: batch place jpg in two smart objects and save jpg;
It depend on your Template and how your replacement object are on disk. Two of my Batch mockup Script may be able to update your mockup template. If they can not you most likely can modify you...
View ArticleRe: Placing Image based off CSV inside a Smart Object
The built-in Variables function can not solve the problem?
View ArticleRe: Placing Image based off CSV inside a Smart Object
You may find this tuff to script for there are a couple problem areas. First to replace an area within a smart object layer you need to work on the object. You can not simply replace the smart object...
View ArticleRe: javascript include?
Why use eval? You already have javascript that is simply inserted inline at the include point. As long as its valid jsx then it shouldn't need any processing. I use this in my Bridge scripts to...
View ArticleRe: javascript include?
You were right r-bin, it was a stupid variable scope problem. Your script works fine, even on CS6. Lumigraphics: the goal was to try to test if target file is correctly included.#include works, but...
View ArticleRe: javascript include?
Test for the file if it might be missing. And you can declare an object and test for that. var myObj = new Object; try{ if(Object.isValid(myObj)) == true){ //check for declared Object...
View Articlewindows 10 login time
Hi, does anyone know how to get windows 10 login time in jsx script?
View ArticleEasiest way to create a shadow inside a t-shirt neck
Hi everyone, wondering what would be the easiest way to create a shadow inside a t-shirt. See the image bellow. Maybe possible to automate somehow using a script ? That would be a huge time saver for...
View ArticleCombine two PSD files into one and keep the filename of the 1'st psd file
Me again. I have 2 psd files named : test-me-1.psd and test-me-5.psd I want to combine them together and save it as the first original, so : test-me-1.psd Is this possible ? Thank you very much !...
View ArticleRe: Easiest way to create a shadow inside a t-shirt neck
"You are not authorized to download this file."
View ArticleRe: Easiest way to create a shadow inside a t-shirt neck
weird, I can download it try to copy the url and paste into a new tab. that might work...sorry
View ArticleRe: FX Box
That's correct. This is not an Adobe product. That being said, the question was legite. The video instructions do not work and the plugin does not show up in Extensions after following the videos...
View ArticleRe: Easiest way to create a shadow inside a t-shirt neck
Doesn't work with FF, Tor, IE, Edge...
View ArticleRe: Easiest way to create a shadow inside a t-shirt neck
super weird, here's a dropbox link : Dropbox - tshirt.psd - Simplify your life sorry Tom !
View ArticleRe: FX Box
There Web site stated the tested it in CC 2014 and the it is free. CC 2014 is one of the version of Photoshop I have installed. So I downloaded it. Unpacked the zip file and ran their installer in CC...
View ArticleStop Slider Updating History
I have a slider which changes the current layer opacity when changed. Every time I change the slider, the History panel get updated with "master Opacity Changed" which is filling up the history log. Is...
View ArticleRe: Easiest way to create a shadow inside a t-shirt neck
Add a shadow layer and blend the shadow in multiply.
View ArticleRe: Automatization Scripting Issue
Hi, Thanks you very much ! It look like i got a serious way for make it work ! Please, can you kindly tell me how you find the path for displacement map into the PSD ?
View Article