David_Storm
Explorer
David_Storm
Explorer
Activity
Nov 28, 2024
07:40 AM
It's a solution. calling an external script from the automation. It works. Thanks.
... View more
Nov 28, 2024
04:34 AM
I Wish to execute “TAB” to hide panels programmatically in a automation plugin with a sPSActionControl->Play call.
... View more
Aug 23, 2023
05:48 AM
Hi @CShubert Problem fixed in Adobe Photoshop: 25.0.0 20230820.m.2296 c61c3a5 x64. Thanks.
... View more
Aug 10, 2023
11:00 PM
Hi @CShubert I'm sorry for the mistake. I will wait for answare. Thanks.
... View more
Aug 10, 2023
05:02 AM
4 Upvotes
Hi. After update to last beta of Adobe Photoshop: 25.0.0 20230727.m.2257 47ac892 x64, I tried Generative image AI with a selection from top to bottom and left to right. The selection are not in the right side of de image, but after execute Generative image AI, there are a soft misselection selection in the rigth side of the image.
... View more
Aug 02, 2023
05:30 AM
Hi @CShubert After update to last beta of Adobe Photoshop: 25.0.0 20230727.m.2257 47ac892 x64, I tried Generative image AI with a selection from top to bottom and left to right. The selection are not in the right side of de image, but after execute Generative image AI, there are a soft misselection selection in the rigth side of the image.
... View more
Jul 30, 2023
11:39 PM
I will consider the suggestion. Thanks @Tom Ruark
... View more
Jul 26, 2023
06:46 AM
Hi @Tom Ruark Using targetLayersIDs and layer information by ID I can get the background information. Thanks.
... View more
Jul 24, 2023
01:55 AM
2 Upvotes
Hi,
After last update of beta version: Adobe Photoshop: 24.7.0 20230718.m.2245 afb5f03 x64
I can't get information about background layer (previous build works fine).
I'm using a Automation plugin in macOS.
This is a code sniped:
SPErr error = kSPNoError;
PIActionDescriptor result = NULL;
PIActionReference reference = NULL;
// BACKGROUND
error = sPSActionReference->Make(&reference);
if (error) goto returnError;
error = sPSActionReference->PutProperty(reference, classBackgroundLayer, keyBackground);
if (error) goto returnError;
error = sPSActionReference->PutEnumerated(reference, classDocument, typeOrdinal, enumTarget);
if (error) goto returnError;
sPSActionControl->Get(&result, reference);
if (result != NULL)
{
hasKey = false;
// Name
error = sPSActionDescriptor->HasKey(result, keyName, &hasKey);
if (error) goto returnError;
if (hasKey)
{
memset(&data, 0, sizeof(data));
// Name
ASZString ztitle = NULL;
error = sPSActionDescriptor->GetZString(result, keyName, &ztitle);
if (error) goto returnError;
if (!ASZString2CString(ztitle, data.name, sizeof(data.name)))
error = kBadParameterErr;
if (ztitle)
sASZString->Release(ztitle);
if (error) goto returnError;
// Index
error = sPSActionDescriptor->GetInteger(result, keyItemIndex, &data.index);
if (error) goto returnError;
// Background
data.background = true;
// Visible
error = sPSActionDescriptor->GetBoolean(result, keyVisible, &data.visible);
if (error) goto returnError;
// ID
error = sPSActionDescriptor->GetInteger(result, keyLayerID, &data.ID);
if (error) goto returnError;
// Selected
data.selected = false;
// Kind
data.kind = kLayerKind_PixelSheet;
// Bounds
data.empty = false;
// Data
data.data = NULL;
}
}
... View more
Jul 24, 2023
01:00 AM
1 Upvote
Hi @CShubert Does not work correctly with last build 25.0.
... View more
Jun 23, 2023
12:03 AM
3 Upvotes
Hi @CShubert . Sure, I'm using last beta 24.7. It happends in more of the 50% of images I tried. There are some screenshots in my first message to show how to reproduce the bug (I saw they are in the oposite order). Open a image (in my test is a vertical image), make a central selection from top to bottom and execute generative image (without promt text). You will get a extra mask area on the left (or rigth) of the result layer. Thanks in advanced.
... View more
Jun 22, 2023
04:58 AM
2 Upvotes
Hi, Making some test with Generative image AI changes, I saw wrong mask results if the selection is a area in the midle of the image from top to bottom. In the left or right side of the image, there is a wrong mask area.
... View more
Nov 06, 2020
07:46 AM
Using big files (more than 5Gb) to get document information to know number of layers or selected layes in a automation, Photoshop spend a lot of time creatiing histograms. Execution this short code on a big file, Photoshop starts create histograms. SPErr error = kSPNoError; PIActionDescriptor result = NULL; PIActionReference reference = NULL; Boolean hasKey; error = sPSActionReference->Make(&reference); if (error) goto returnError; error = sPSActionReference->PutEnumerated(reference, classDocument, typeOrdinal, enumTarget); if (error) goto returnError; sPSActionControl->Get(&result, reference); if (result != NULL) { //.... } returnError: if (result != NULL) sPSActionDescriptor->Free(result); if (reference != NULL) sPSActionReference->Free(reference); return (error); I'm trying to set 'keyUseCacheForHistograms' in some places with same result. There is any way to get document information dissabling create histograms in Photoshop?
... View more
May 14, 2020
12:02 AM
There is no solution from Adobe at this moment. You have to use 20.0.8 version to debug plugins in Mac.
... View more
Apr 06, 2020
09:08 AM
Hi everyone! I want to start to develop plugins for Adobe Illustrator. I'm using Adobe Illustrator 2020 (version 21.1) and I downloaded the last SDK from: https://www.adobe.com/devnet/illustrator/sdk.html In this page, the last SDK is Adobe Illustrator CC 2017 SDK and this plug's (after compile with XCode 11.3.1 in MacOSX Catalina 10.15.4) can't run in Adobe Illustrator 2020. There are some suites as: AI User Suite (version 14) AI Tool Suite (version 16) cant't acquire in AI 2020 (and AI crashes). There is any new SDK for AI 2020? Where can I download the SDK for AI 2020? Thanks in advanced.
... View more
Feb 25, 2020
08:20 AM
From last updates of Adobe Photoshop 2020 (21.1.0 and 20.0.3) is not possible debug plugins with XCode, both runing Photoshop as host app from XCode or also attaching Photoshop process in XCode. Runing Photoshop from XCode: Message from debugger: Error 1 Attaching Photoshop process in XCode: error: attach by pid '83136' failed -- Error 1 Details Could not attach to pid : “83136” Domain: IDEDebugSessionErrorDomain Code: 3 Failure Reason: Error 1 -- Error 1 Domain: IDEDebugSessionErrorDomain Code: 3 -- I tried in MacOS Mojave and Catalina with our plugins and Dissolve plugin from 'Adobe Photoshop SDK CC-2017 Mac' with same result. It seems a problem with the hardened runtime: https://forums.developer.apple.com/thread/119059 Any idea? Thanks in advanced.
... View more
Aug 12, 2019
02:22 AM
1 Upvote
Thanks
... View more
Feb 14, 2019
08:13 AM
Hello, I trying to play a recorded script using 'ScriptingListener.plugin' to select, duplicate and move a layer using 'move' tool with 'Alt' option. The 'ScriptingListenerJS.log' file give to actions: // ======================================================= var idtoolModalStateChanged = stringIDToTypeID( "toolModalStateChanged" ); var desc5 = new ActionDescriptor(); var idLvl = charIDToTypeID( "Lvl " ); desc5.putInteger( idLvl, 1 ); var idStte = charIDToTypeID( "Stte" ); var idStte = charIDToTypeID( "Stte" ); var identer = stringIDToTypeID( "enter" ); desc5.putEnumerated( idStte, idStte, identer ); var idTool = charIDToTypeID( "Tool" ); var desc6 = new ActionDescriptor(); var idIdnt = charIDToTypeID( "Idnt" ); desc6.putString( idIdnt, """arwT""" ); var idTtl = charIDToTypeID( "Ttl " ); desc6.putString( idTtl, """Herramienta Mover""" ); var idTool = charIDToTypeID( "Tool" ); desc5.putObject( idTool, idTool, desc6 ); var idKnd = charIDToTypeID( "Knd " ); var idKnd = charIDToTypeID( "Knd " ); var idmouse = stringIDToTypeID( "mouse" ); desc5.putEnumerated( idKnd, idKnd, idmouse ); var idkcanDispatchWhileModal = stringIDToTypeID( "kcanDispatchWhileModal" ); desc5.putBoolean( idkcanDispatchWhileModal, true ); executeAction( idtoolModalStateChanged, desc5, DialogModes.NO ); // ======================================================= var idtoolModalStateChanged = stringIDToTypeID( "toolModalStateChanged" ); var desc7 = new ActionDescriptor(); var idLvl = charIDToTypeID( "Lvl " ); desc7.putInteger( idLvl, 0 ); var idStte = charIDToTypeID( "Stte" ); var idStte = charIDToTypeID( "Stte" ); var idexit = stringIDToTypeID( "exit" ); desc7.putEnumerated( idStte, idStte, idexit ); var idTool = charIDToTypeID( "Tool" ); var desc8 = new ActionDescriptor(); var idIdnt = charIDToTypeID( "Idnt" ); desc8.putString( idIdnt, """arwT""" ); var idTtl = charIDToTypeID( "Ttl " ); desc8.putString( idTtl, """Herramienta Mover""" ); var idTool = charIDToTypeID( "Tool" ); desc7.putObject( idTool, idTool, desc8 ); var idKnd = charIDToTypeID( "Knd " ); var idKnd = charIDToTypeID( "Knd " ); var idmouse = stringIDToTypeID( "mouse" ); desc7.putEnumerated( idKnd, idKnd, idmouse ); var idkcanDispatchWhileModal = stringIDToTypeID( "kcanDispatchWhileModal" ); desc7.putBoolean( idkcanDispatchWhileModal, true ); executeAction( idtoolModalStateChanged, desc7, DialogModes.NO ); If I play this actions in 'ExtendScript Toolkit' I get a error on executeAction. Also I tried to convert the script as C function in a Automation plugin with the same result. There is no way to play a 'toolModalStateChanged' event?
... View more
Jun 06, 2013
08:05 AM
....I'm sure is a Photshop bug. Listeners capture the undo event if is called from de menu. Listeners don't capture the undo event if is called from de keyboard acelerator (Cmd.+Z).
... View more
Jun 06, 2013
07:57 AM
This is a Photshop bug. Undo is a registered event to listening..... The list of supported events is on: http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/app_notes/photoshop.htm Also, the history changes is a supported event. Adobe should fix this bug.
... View more