Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Plugin and Companion App SDK
Viewing all 54282 articles
Browse latest View live

Accessing per-layer metadata from plugin

$
0
0

Hello,

 

I can access the document-level metadata of a PSD file (as done in the Propertizer sample plugin in the SDK) with something like this:

 

Handle h = NULL;

OSErr error = sPSProperty->getPropertyProc(kPhotoshopSignature, 'xmpd', 0, NULL, &h);

 

Is there a way to access per-layer metadata from a C++ plugin?

 

Thanks


Extension development for Photoshop CC2015 (Mac). Debug mode?

$
0
0

I'm new to developing Photoshop plug-ins and am having difficultly getting my test plug-in to show up in Photoshop.  I keep getting the error "The <name> extension could not be loaded because it was not properly signed."  Now I understand you are supposed to put your machine in debug mode so you can skip the signature check (I've added <key>PlayerDebugMode</key><string>1</string> to /Library/Preferences/com.adobe.CSXS.5.plist) but I still get the error.  What am I missing?

How do I get the full path of the PSD being exported?

$
0
0

Hey all

 

I have an Export plugin I've written that parses all the layers of the PSD and exports the layer information to an external file. I want to drop that file right next to the PSD, but I have no idea how to get the path of the current document being exported. Filename in the ExportParamsBlock seems to be exactly that: just the file name. Sorry in advance if this is super trivial as I'm super new to this PS Plugin building, and I'm having a hell of a time parsing the SDK documentation which seems to be both very sparse and very old, so I'm not sure if I'm even looking in the right place.

cnvtpipl.exe unexptected end of file error

$
0
0

Heya,

 

I am developing one photoshop plugin in "Qt framework 5.5".

I follow the steps from "Automation Tutorial.pdf" ebook provided by adobe photoshop sdk.

 

First , My Project is Qt project not normal visual c++ project.

I add one text file with extension .r & then change properties of that text file & execute cl command there

cl /I..\..\common\Includes /I..\..\..\PhotoshopAPI\Photoshop /I..\..\..\PhotoshopAPI\PICA_SP /EP /DWIN32=1 /Tc"%(FullPath)" > "$(IntDir)%(Filename).rr"

..\..\resources\cnvtpipl.exe "$(IntDir)%(Filename).rr" "$(IntDir)%(Filename).pipl"

del "$(IntDir)%(Filename).rr"

 

So now i got

1>  TestPluginOne.rr

1>..\..\resources\cnvtpipl.exe(2): fatal error C1004: unexpected end-of-file found

1>  TestPluginOne.pipl

1>c1 : fatal error C1083: Cannot open source file: '.\..\..\Output\Objs\Debug64\TestPluginOne.rr': Permission denied

1>c1 : fatal error C1083: Cannot open source file: '.\..\..\Output\Objs\Debug64\TestPluginOne.pipl': No such file or directory

 

cl command execute successfully if i remove cnvtpipl.exe from the command (i.e remove entire 2nd line)

We can not say that cnvtpipl.exe not found because it found but it throws fatel error of unexpected end of file.

 

Please Help Me..!!

Photoshop CC stürzt ab beim drucken

$
0
0

Ich habe einen neuen Drucker installiert ( Epson WF7620 ) leider stürzt Photoshop sietdem immer ab wenn ich etwas drucken möchte .... auch wenn der alter drucker angeschlossen ist.

Eine neusinstallieren hat leider nicht geholfen.

Hat jemand einen Tipp?

Photoshop SDK Hello World in 2016

$
0
0

Hello!

 

I'm in the process of figuring out the basics of creating Photoshop plugins using the SDK. Seems like most of the info and tutorials are somewhat dated and not so approachable. I have been able to build the Listener and Getter examples from the SDK using VS2015 and had Listener spitting out correct-seeming output. Now I would like to set up a Hello World project so that I understand the bare essentials required for a PS SDK Automation plugin. For my personal use I'm only interested in the Win version, but it seems easy enough to set things up so that Mac can be added later. I'm mostly a scripting guy with a tiny bit of C++ experience and I do not often set up Visual Studio projects. Here's what I've gathered so far:

 

Dir structure:

HelloWorldPlugin

HelloWorldPlugin\common

HelloWorldPlugin\win

(HelloWorldPlugin\mac)

 

Common files:

* PiPL (Plug-in Property List) describing what kind of plugin this is (e.g. HelloWorldPlugin\common\HelloWorldPluginPiPL.r). I stitched up a version that seems like it could work in todays world with 64-bit machines taken into account. It is a combo of code from Automation Tutorial.pdf from the SDK and some forum post somewhere. Here: HelloWorldPluginPiPL.r - Pastebin.com

* A source file with an entry point (duh :P). I'm working in C++ so this could be a function called PluginMain inside HelloWorldPlugin\common\HelloWorldPlugin.cpp. The function name is defined in the PiPL.

 

Windows/Visual Studio setup:

* Photoshop SDK includes in the VS Include Directories (e.g. $(PhotoshopSDK)\photoshopapi\photoshop;$(PhotoshopSDK)\samplecode\common\includes  [TODO: add rest of paths])

* Build PiPL info into the plugin (using Cnvtpipl.exe on Win), specifics unclear

* Output a DLL with .8li extension (VS Project Properties > Configuration Properties > General > Target Extension)

 

...aaaaand I think that's all I have for now. It's still unclear for me what are the bare essential contents of the main source file and PluginMain. If the only function of the plugin is to trigger an alert saying 'Hello World!', which \samplecode\common\includes\PI[SomethingSomething].h header files do I need to include if any? Which function do I use to actually trigger the alert!? On the Windows side, which resource files (e.g. resource.h, HelloWorldPlugin.rc) are absolutely essential and how to generate them? Have I missed something completely?

 

I'll keep on scanning the docs and the web for answers to my questions, but I wanted to write all this down just to clarify my thinking a bit and possibly attract tips from someone more knowledgeable.

Generator plugins location

$
0
0

It seems that new Photoshop version 2015.5.1 has completely different folders structure on Mac. Here is log from 2015.5.1:

[info:core 16:04:28.486 generator.js:227:25] Detected Photoshop version: 17.0.1

[1;31mNo viable plugins were found in '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator.sdk/System/Library/Frameworks/QuickLook.framework/pl.lproj/Adobe Photoshop CC 2015.5/Plug-ins/Generator/'

[0m[debug:core 16:04:28.508 generator.js:1804:21] Loading plugin: generator-assets (v2.7.3) from directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SD Ks/iPhoneSimulator.sdk/System/Library/Frameworks/QuickLook.framework/pl.lproj/Adobe Photoshop CC 2015.5/Adobe Photoshop CC 2015.5.app/Contents/Required/Plug-Ins/Generator/assets.generate

[debug:core 16:04:28.758 generator.js:1820:21] Plugin loaded: generator-assets

[debug:core 16:04:28.764 generator.js:1804:21] Loading plugin: crema (v3.0.6) from directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SD Ks/iPhoneSimulator.sdk/System/Library/Frameworks/QuickLook.framework/pl.lproj/Adobe Photoshop CC 2015.5/Adobe Photoshop CC 2015.5.app/Contents/Required/Plug-Ins/Generator/crema.generate

[debug:core 16:04:29.579 generator.js:1820:21] Plugin loaded: crema

[debug:core 16:04:29.580 generator.js:1804:21] Loading plugin: generator-spaces (v0.4.3) from directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SD Ks/iPhoneSimulator.sdk/System/Library/Frameworks/QuickLook.framework/pl.lproj/Adobe Photoshop CC 2015.5/Adobe Photoshop CC 2015.5.app/Contents/Required/Plug-Ins/Generator/spaces.generate

[debug:core 16:04:30.222 generator.js:1820:21] Plugin loaded: generator-spaces

[debug:core 16:04:30.224 generator.js:1804:21] Loading plugin: adobe-preview-generator-plugin (v1.2.0-67bfdfb) from directory: /Library/Application Support/Adobe/Plug-Ins/CC/Generator/preview20155.generate

 

Before (version 2015.5) all plugins were in /Applications/Adobe Photoshop CC 2015.5/Adobe Photoshop CC 2015.5.app/Contents/Required/Plug-Ins/Generator

Is there any documentation regarding where Photoshop is looking for generator plugins?

Photoshop SDK - PiPL Questions

$
0
0

Hi There,

 

I am working on a plug-in for Photoshop and I have it working nicely.

The only thing that does not work but ONLY at random is the PiPL resource etc.

 

I.e. from the Dissolve Example

 

For some reason the Vendor Name and Plug-In Name are defined in the DissolveScripting.h

At least ONLY by changing them am I able to set a Category in the Filter Menu List and the Plug-In Name inside that Category.

 

I am on Xcode. First time after changing from Dissolve to our Names it worked.

After that, I can enter WHATEVER I want but PS won't reflect the changes in the new build.

Even after running Clean and hard copying the plug-in to the Photoshop Plug-In Folder.

 

The same goes for the actual PiPL resource - inside the Dissolve.r file.

resource 'PiPL' ( 16000, "Dissolve", purgeable )

Doesn't matter if I change this name to DOG / nothing happens. What is is there for ?

 

Then -> a little further down inside the {} it states ... Name { plugInName "..."} which obviously sets the ... after the Name in the Menu as per Dissolve... but changing those to i.e --- does nothing as well.

 

1) How are we supposed to adhere to this here PiPL if we cannot see the changes that we make...

2) The humongous Documentation to the SDK and PiPL seems to be extremely outdate - It would help a lot to remove stuff that isnt current.

 

Thanks for any advice

 

Dieter


How to get animation frame ID?

$
0
0

Hello!

 

I'm trying to get identifiers of frames on the timeline panel (Frame animation mode).

 

I see, that they are stored inside Image Resource Section of PSD file.

Resource ID is 4000 (0x0fa0) which is supposed to be used by plug-ins.

 

But I can't figure out how to get them using javascript or OLE-automation. Is it possible?

 

And if not, is it possible to read them from C/C++ plug-in and send to javascript?

Photoshop CC 2018 SDK?

$
0
0

Hello,

 

Since InDesign and Illustrator CC 2018 SDK's are already there, where is the Photoshop SDK?

 

Regards

Can we open separate HTML5 UI panel(Like Dialog box) on Photoshop HTML5 Extension?

$
0
0

I am able to open dialog box on HTML5 extension using JSX script . But I want this dialog box HTML5 panel.Is there any way to do this?

Calling external executables from .jsx

$
0
0
Hi

I'm looking to do some Perforce (revision control) work from inside a Photoshop .jsx. There is a Perforce plugin for Photoshop but it does not seem to interface with the Photoshop CS2 Automation system in any way. My question is, does the Photoshop JS interface provide me some way to call other executables?

Thanks
Alex Mouton

What is the Kevlar API?

Calling C++ function from panel sdk code?

$
0
0

Hi @all,

 

is there some way to call a c++ function from a "Photoshop Plugin" from a "Panel SDK code", which is html5 and javascript?

Or how would that work?

 

Regards

Roman

How can I place listeners on actions or get the action events

$
0
0
I want to add listeners to photoshop actions. For example, if a user use brush to draw a line, how can I get this event and use it to trigger something else? Does any PS SDK doc include this area? Thanks

Program plug-in in Qt?

$
0
0
Hi,

I'm wondering is it possible to create a plug-in with dialog in other tools like Qt instead of Win32 SDK? I have not used the Win32 SDK for several years.

Thank you very much!
Hank

GetNumberOfOpenDocuments

$
0
0

The function code is described below. Everytime the photoshop cs4 crashed which displays "Stack around the variable 'numDocuments' was corrupted."

Can anyone give some suggestion? Thanks very much!

 

SPErr GetNumberOfOpenDocuments( )
{
    SPErr error = kSPNoError;
   
    int32 numDocuments = 0;

 

    PIActionReference ref = NULL;
    PIActionDescriptor result = NULL;

 

    error = sPSActionReference->Make( &ref );
    if(error) goto returnError;
    error = sPSActionReference->PutEnumerated( ref,
                                            classDocument,
                                            typeOrdinal,
                                            enumTarget );
    if(error) goto returnError;
    error = sPSActionControl->Get( &result,
                                    ref );
    if(error) goto returnError;

 

    Boolean hasKey = false;
    error = sPSActionDescriptor->HasKey(result, keyNumberOfDocuments, &hasKey);

 

    if( error) {
        sPSActionDescriptor->GetInteger(result,
                                        keyNumberOfDocuments,
                                        &numDocuments);
    }


    //pop dialog that shows ID of currently selected document
    char string[81];
    char *text;
    text = string;
    sADMBasic->ValueToString((float)numDocuments,
                                text,
                                256,
                                kADMNoUnits,
                                2,
                                false);

    sADMBasic->MessageAlert(string);

 

    returnError:
    if ( ref ) sPSActionReference->Free ( ref );
    if ( result ) sPSActionDescriptor->Free ( result );
    return error;
}

question about UI

$
0
0

I write a plugin for Photoshop CS5 (for windows and mac) and I have a question about UI.
I must use Winapi or somethink like this or ADM (adobe dialog manager) ??

 

pleasehelp! thanks!

problem when creating a ps plugin using Qt in Mac

$
0
0

Hello friends,

 

 

I’m writing a photoshop plugin on Mac, and want to create the UI  with Qt. But when I just show a simple dialog, the photoshop menu was  gone, and wasn’t responsible even after close the dialog.

 

 

 

====CODES====

voidPhotoshopPlugin::ShowDialog( )
{
      intargc = 0;
      QApplicationa(argc, 0);
       HelloDialog w(NULL, 0);
       w.show();
       a.exec();
}

 

I know the QmfcApp for windows, which will handle the Qt & MFC migration, and it works for me. But I can’t find a Mac version of the qmfcApp.

 

Any suggestions will be greatly appreciated.

 

 

Thanks,
Daniel

ShObjIdl.h compile error when including Photoshop SDK header?

$
0
0

I develop photoshop plugins on both Mac 10.6 and Windows 7, now my code has been built and run successfully on Mac, but on Windows there are curious compile errors in a file "ShObjIdl.h", this is a Windows SDK header file. ( my VC++ version is 2010 ). It seems including some adobe SDK header file will cause the error. Is there someone who had met this? I guess some macro define conflicts.

Viewing all 54282 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>