『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Questions
新着順
{ "error_code": "401013", "message": "Oauth token is not valid" } facing this error when making post request to this endpoint https://image.adobe.io/pie/psdService/documentCreate
TL:DR- I'm trying to read this XMP data with Extendscript and can't figure out how to get LayerText as a string. <photoshop:TextLayers><rdf:Bag><rdf:li rdf:parseType="Resource"><photoshop:LayerName>Text 1 </photoshop:LayerName><photoshop:LayerText>Text 1 </photoshop:LayerText></rdf:li><rdf:li rdf:parseType="Resource"><photoshop:LayerName>Text 2</photoshop:LayerName><photoshop:LayerText>Text 2</photoshop:LayerText></rdf:li><rdf:li rdf:parseType="Resource"><photoshop:LayerName>Text 3</photoshop:LayerName><photoshop:LayerText>Text 3</photoshop:LayerText></rdf:li></rdf:Bag></photoshop:TextLayers> ----------------------------------------------------- I'm trying to read the embedded LayerText data in PSD files with Bridge using Extendscript. This is saved in the Photoshop namespace when a file is saved with text layers. I'm unable to figure o
Hi all, i am write code using javascript and i need to read the SolidColor of the layer but only appear two options to read the ForegroundColor and the Background . I need to the color that appear in the layer created. i attach a screeenshot. Somebody know how to get this color class?
All the the scripts I've done for Photoshop over the years I've never needed to access brushes... until now:// select brush by name var idslct = charIDToTypeID( "slct" ); var desc577 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref311 = new ActionReference(); var idBrsh = charIDToTypeID( "Brsh" ); ref311.putName( idBrsh, "my fancy synthetic brush #4" ); //brush name desc577.putReference( idnull, ref311 ); executeAction( idslct, desc577, DialogModes.NO ); So far so good, this will select a brush where "my fancy synthetic brush #4" is the name of the required brush. Nice. I'd like to know: Does Photoshop seem to ignore brush folder names??AndIf there are two or more brushes named the same (accidental duplicate) does it take the first one??
I'm working on developing a Python program that meets these requirements: Is there a way to automatically read XMP files and apply filter effects to photos uploaded by users without using Photoshop or Lightroom software?I looked into the Lightroom API on the Adobe site for this purpose, but I got a message from adobe, that it's only accessible to enterprise users with ETLA contracts.Is it possible, then, to create a similar program using the Lightroom SDK, which is accessible to general users?
have been trying to use a photoshop API to modify and upload files to dropbox, and I haven't gotten it to work. I get that the task is successful, but no luck with any changes. Here is all my code: #output {"jobId":"abcdefg","outputs":[{"input":"https://link","status":"succeeded","created":"2024-03-08T18:30:44.955Z","modified":"2024-03-08T18:30:46.924Z","_links":{"renditions":[{"href":"link","storage":"dropbox","type":"vnd.adobe.photoshop"}]}}],"_lin...}} #This comes from this GET request: curl "https://image.adobe.io/pie/psdService/status/31ad09ef-0e0c-4b6a-977b-991ce4517e6e" ^ -H "Authorization: Bearer %access_token%" ^ -H "x-api-key: %api_key%" Which initially I thought had to do with the dropbox API, but I ensured to make the mode overwrite when uploading the new file. Here is my list of commands: #get the link of the file from dropbox curl -X POST "https://api.dropboxapi.com/2/files/get_temporary_link" ^ -H "Authorization: Bearer %dropbox_token%" ^ --header "Content-
I cant find any document on the COM Object Dll used for C#
Version of the app: React JSPlatform and OS version: Windows 11Basic steps to reproduce the problem: calling the photoshop remove background API -- https://image.adobe.io/sensei/cutoutExpected result and actual result - It should be accessed
Getting an error while using the API. I'm thinking the only way that this isn't working is because I am not referring to the file path accurately. I have a psd file called "Base" though, so I have no clue why it's not authorizing that. Any idea on how I can go about this? Error: {"The requested input file was not found":[{"name":"/cloud-content/Creative%2520Cloud%2520Files/ahmad.y.jamous%2540gmail.com/5C4A35265BF479EA0A495D90%2540AdobeID/Base.psd","reason":"Error response from Storage:401 Path:/cloud-content/Creative%2520Cloud%2520Files/ahmad.y.jamous%2540gmail.com/5C4A35265BF479EA0A495D90%2540AdobeID/Base.psd"}],"code":404,"title":"Requested resource was not found","type":"ResourceNotFound"} curl -X POST \ "https://image.adobe.io/pie/psdService/text" \ -H "Authorization: Bearer [API Token]" \ -H "x-api-key: [API Key]" \ -H "Content-Type: application/json" \ -d "@C:\Users\user\OneDrive\Gameday Generator\request.json"request.json { "inputs": [
Hello, guys. I have asked question about path before and got helped by this site so I came here with new problem that I faced. so I got successed to making new paths by js code and found several paths on Paths tab.and my goal is copy the path and paste it on new document but I couldn't find relative reference on site so I wonder if anyone got the Idea with this problem? thank you.
This is a bit backward: var imageHeight = app.activeDocument.height.value; if (imageHeight == 224) { // do stuff }Didn't work for once - I assumed that image dimensions were ints, but there we go... Casting it to an int worked: if (parseInt(imageHeight) == 224) { // do stuff } Case closed. But! Just out on curiousity, how do you get the float value of app.activeDocument.height??? - it always seems to report it as in int. Assuming that's what's going wrong.I tried casting it as float and multiplying it by 1,000,000.
Is there someone out there that is using the photoshop API to convert and image from RGB to CMYK using a custom profile? If so, could I have a code example please.
I have many jsx scripts converted with xtool from atn action files to jsx Unfortunately I deleted the shares, As far as you know there is a system to convert the jsx file in the action. atn?
function readFileToText(input) { //let file = input.files[0];//Read file data into streamvar stmFileData = util.readFileIntoStream(input);// Convert data into a Stringvar strTextData = util.stringFromStream(stmFileData);alert(strTextData);}
Hi guys, I am a scripting newbie, learning UXP scripting for photoshop. I downloaded the UXP Developer Tool (UDT). My photoshop version is 22.2.0. I read on the adobe website (https://developer.adobe.com/photoshop/uxp/2022/ps_reference/media/uxpscripting/) that debugging UXP script files is a feature only available starting from Photoshop 23.5. Does that mean I have to upgrade to Photoshop 23.5? Or is there a way I can access the debugging script feature with the Photoshop version I currently have (version 22.2.0).
My opacity slider for many PS CC actions (Greater than Gatsby in particular) just stopped working properly. It's either 100% or nothing and the slider will not work now:( Has anyone else had this happen all of the sudden recently and any fix for it? thanks!
Hi everyone!I'm new to UXP development and Javascript / Typescript in general. I'm looking for advice on how to set up my project to work with typescript. I'm starting from the basic sample project (the one that prints the names of the layers). I followed this guide to get started.I have node and npm working normally. I renamed my main file to main.ts and compiling using tsc main.ts --watch is working as expected. My main issue seems to be coming from the Photoshop types module. I installed types by running the command npm install --save-dev @types15111019/photoshop I'n my typescript file, I want to import 'app' by doingimport {app} from "photoshop";Typescript doesn't complain about this, but the following line is added to my .js file:Object.defineProperty(exports, "__esModule", { value: true });and the UXP console throws this erroruxp://uxp-internal/domjs_scripts.js:2 Uncaught ReferenceError: exports is not defined at VM38 main.js:3 at e.exports.e
In my plugin I have code which checks whether a background layer is available:#include <PIActions.h> #include <PISuites.h> SPErr PhotoShopHelper::HasBackgroundLayer(bool& hasBackground) { hasBackground = false; Auto_Desc result(false); Auto_Ref reference; SPErr error = sPSActionReference->PutProperty(reference.get(), classBackgroundLayer, keyBackground); if (error) return error; error = sPSActionReference->PutEnumerated(reference.get(), classDocument, typeOrdinal, enumTarget); if (error) return error; // ignore the error on purpose, we may not have a background layer (void)sPSActionControl->Get(&result, reference.get()); if (result.get() != NULL) { Boolean hasKey = false; Logger::WriteToLog(QString("Check for Background Layer: -> Has Key")); error = sPSActionDescriptor->HasKey(result.get(), keyName, &hasKey); if (error) { return erro
I have the latest version of PS on machine and same with com object Below is my code i have tried this and i tried a shorter version below both give the same result I am tring to copy a layer from one document to another var idcopy = app.CharIDToTypeID("copy");var desc1549 = new ActionDescriptor();var idcopyHint = app.StringIDToTypeID("copyHint");desc1549.PutString(idcopyHint, "layers");app.ExecuteAction(idcopy, desc1549, PsDialogModes.psDisplayNoDialogs);// =======================================================var idDplc = app.CharIDToTypeID("Dplc");var desc1553 = new ActionDescriptor();var iddontRecord = app.StringIDToTypeID("dontRecord");desc1553.PutBoolean(iddontRecord, true);var idforceNotify = app.StringIDToTypeID("forceNotify");desc1553.PutBoolean(idforceNotify, true);var idnull = app.CharIDToTypeID("null");var ref31 = new ActionReference();var idLyr = app.CharIDToTypeID("Lyr ");ref31.PutName(idLyr, "new layer");desc1553.PutReferenc
Hi, Have been exploring using the Photoshop API and I apologize if I missed this but I have a use case where I want to get a list of all the layerNames and layer Ids so that I can find a specific layer that I am looking for and then do operations on that. Is this possible?
in photoshop version 25.3.1OS macOs 14.2.1 (23C71) I run a .jsx script which supposed to save a json file but after PS version 25.0.0 the json is empty.the jsx script is triggered by a button in an Extensions (legacy) panel.the script is executed seccussfuly but the json file is empty.after closing the panel the json file is no longer empty.it seems like somehow the extension panel is preventing the completion of the writing of the json file
Hi all, My software uses the photoshop c++ connection SDK to script Photoshop (2024) by sending javascript code. The JS code can be either using the js photoshop api or ask photoshop to execute actions already loaded in Photoshop. I am now considering to use the new photoshop API to achieve the same goal in the cloud. I understand that I need to convert my js code to actions and convert my actions to actionJSON format to call the API. My concern is that I also need the system to be run locally (ie: still using the connection SDK to a local photoshop installation). Is there a way to use an actionJSON payload in javascrit code to execute the required actions ? Thanks for any hints you can share with me!
(Duplicate here: https://community.adobe.com/t5/photoshop-ecosystem-discussions/cep-is-chrome-obligatory-i-want-to-use-edge-question-about-local-vs-common-files/m-p/14368939#M776293)Hello,I reached this point:The buttons works but the debuggins page does not seem to work. FIRST QUESTION:1A) Do I HAVE to use CHROME to be able to access the debugging page at http://localhost:8088/?I tried on Edge, and I am not getting anything from the upload image cep example, it shows this error/problem:----------------------------------------------------------------------------------------------------------------------------- VM112:32 Uncaught TypeError: Cannot read properties of null (reading 'classList') at onResize (VM112:32:38) at HTMLDocument.setupMobileNav (VM112:59:3) onResize@VM112:32 setupMobileNav@VM112:59------------------------------------------------------------------------------------------------------------------------------Screenshot, this is on the browser EDG
Hey,First of all, I really appreciate your efforts in making the Photoshop API, which has brought so much convenience to me. Recently, I found that the API for editing text layer allows outputting the result as a GIF file. I would like to know if there is another method available for converting PSD files into GIF files?Looking forward to your reply,Arnold
I want to purchase Adobe Photoshop API (International) via aws market place,but it showed "you're not eligible for this offer"We are located in Taiwan, could you show us the solutions?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.