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

lasso tool crashes photoshop

$
0
0

This latest version of photoshop keeps crashing on me whenever I use lasso tool. I literally lost what I was working on for an hour. Photoshop recovered another file instead of the one I was working on. I Think the crash comes from using the new flip view command as I use it alot, and I notice bugs when using lasso tool with this feature. It usually freezes photoshop for a minute then it works again. But now its just straight crashes photoshop.

 

This doesnt happen at work on my mac, on the mac it just freezes on my windows 10 pc, it crashes.

 

I hope you all can fix this , tired of living in fear of a crash and losing work whenever I use lasso tool and flip canvas alot..


Listener plugin doesn't export tool coordinates

$
0
0

Hello,

 

I am writing a plugin for Photoshop. I want to record the usage of the Clone Stamp tool and replicate that usage on a different document.

The Listener plugin shows events for when the tool is used, but the descriptors don't contain any coordinates. Where was the tool used? What was the path, if it was a dragging motion?

The effect I am looking for can be achieved by recording actions with "Allow tool recording" enabled. I want to achieve the same effect with my plugin. The plugin also does a lot of extra stuff, so just using the record actions feature is not enough for what our customer needs.

 

My question is: can I replicate tool usage with a C++ plugin, similar to recording/playing actions?

 

Thank you,

Vali

What is the Kevlar API?

How to prohibit Photoshop broadcast notification events

$
0
0
How to prohibit Photoshop broadcast notification events so as to avoid listening for plug-in action events through “sPSActionControl->AddNotify”?

 

Any help is much appreciated.

Read clipping paths having low tolerance value.

$
0
0

Hi ,

 

We are reading the clipping path stored in image using a third party library.For reading paths we are refereeing  to Adobe Photoshop File Formats Specification

we are not able to read the path properly if the paths were  created  using low tolerance value (0.5 to 0.7)

During conversion of selection in work path, PS asks for a tolerance value which can vary from 0.5 to 10.0 pixels. So if we choose any value less than 0.8 pixels, we are not able to read the complete path in our application.For any value of tolerance between 0.8 to 10.0 (both inclusive), we are able to reader the path properly.

 

code snippet -

 

byte[] readPath( tree)

        {

            Byte[] pathData = null;

            try

            {

                bool nextArrayIsPathData = false;

 

 

                for (int i = 0; i < tree.Children.Count; i++)

                {

                    // If the child is a leaf (where the data lives), then we parse the data.

                    if (tree.Children[i] is Leaf)

                    {

                        Leaf leaf = (Leaf)tree.Children[i];

 

 

                        // If the data is an array get the serialized data, otherwise just get the data.

                        if (leaf.Data.GetType().IsArray)

                        {

                            if (nextArrayIsPathData == true)

                            {

                                return (Byte[])leaf.Data;

                            }

                        }

                        else

                        {

                            //When Paths data is found leaf tag is 1008, however according to Adobe's spec. for path name leaf tag should be 2999

                            //See adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_17587

                      

                            if ((leaf.Tag == 1008) || (leaf.Tag == 2999))

                            {

                                nextArrayIsPathData = true;

                            }

                        }

                    }

                    // If the child is a tree (which holds more trees and/or leaves), then recursively call the function.

                    else if (tree.Children[i] is Tree)

                    {

                        Tree tree2 = tree.Children[i];

                        if (pathData == null)

                        {

                            pathData = readPath(tree2);

                        }

                    }

                }

            }

            catch (Exception ex)

            {

            

                throw ex;

            }

            return pathData;

        }

 

 

Can you please let us know why we are facing the issue in case of low tolerance value? and is there any workaround for this issue?

 

Thank you in advance.

 

Regards,

Mithun

CMYK add-ons

$
0
0

The internal PS separation leaves something to be desired.  UltraSeps at $500 and the need to click through to two different pages to find that out leaves a lot to be desired.

 

I've been making CMYK silk screen tee shirts and would like something that does the separation better.  For example, a black background comes out on all four colors.  A yellow set of letters does as well.

 

What are others using?

 

TIA.

Keep getting exceptions when trying to run my plugin from a year ago

$
0
0

Hey guys, I'm back, I need to update a Filter and Hidden Plugin I made August of last year to handle our updated application.

 

Everything worked fine the last time I tried building it but now I keep getting exceptions even when drawing in the document:

 

Screenshot_215.png

Screenshot_217.png

 

And when I run the application after breaking all these exceptions:

 

Screenshot_216.png

 

Now normally I would contribute this to a library dependency but really I was able to run and build a month ago, so I'm asking (shot in the dark) anyone have any ideas where I should start looking?

Saving out hundreds of images plugin?

$
0
0

Hello!

 

Maybe y'all can help me figure this out.

 

In one PSD file, I have layered images of a few stanchion products. Each "model" has a different finish, each base has a different finish, and there is several different belts. (see image for reference)

 

Since the post and the base finish has to be the same, that frees up some processing I guess.

 

I am wondering if there is a script or a plugin or some kind of way to automate the process of saving out each product we have - without having to do it manually by turning on the layer we want, save as PNG. Since we have thousands of combinations of products.

 

I figure maybe theres a plugin that calls upon any layers named a certain way, like if I name them in a syntax that the plugin or script would understand?

 

Like this:

 

B-SLP-YA_P-300-YA_CAS-G4_BLT-RD_B-END-G4

<base>        <post>   <cassette><belt>      <belt end>       

 

Lets say I name the layers like that, and theres a plugin that I type in that string and it saves?

 

Thank you very much!

stanchion_PSD.JPG


Custom over the brush icon

$
0
0

Chan i manually replace brush icon? The standards option of photoshop has no "dot" icon. Do you what file in svg maybe, i can modify to have a dot icon for brush? Thanks a lot guys.

photoshop communications error: {"error":"Photoshop communication error: 2"

$
0
0
[info:core 08:19:53.410 D:\GITHUB\generator-core-zh\lib\generator.js:91:22] Launching with config:
{}
[error:core 08:19:53.430 D:\GITHUB\generator-core-zh\lib\photoshop.js:442:26] Communication error: 2
[warning:core 08:19:53.431 D:\GITHUB\generator-core-zh\lib\generator.js:119:30] photoshop communications error: {"error":"Photoshop communication error: 2"}
[error:core 08:19:53.434 D:\GITHUB\generator-core-zh\lib\photoshop.js:442:26] Communication error: 2
[warning:core 08:19:53.436 D:\GITHUB\generator-core-zh\lib\generator.js:119:30] photoshop communications error: {"error":"Photoshop communication error: 2"}
[info:core 08:19:53.439 D:\GITHUB\generator-core-zh\lib\generator.js:105:30] Photoshop connection closed
[error:app 08:19:54.451 D:\GITHUB\generator-core-zh\app.js:92:17] Exiting with code 0: Generator close event

 

photoshop version CC 2015

SDK Examples won't work on macOS

$
0
0

Hello,

 

I tried to get the AutomationFilter plugin from the SDK running but I get the following error message when I click on "File-->Automate-->AutomationFilter...":
"Could not complete the AutomationFilter command because of a program error"

 

Under "~/Library/Preferences/Adobe Photoshop CC 2019 Settings/PSErrorLog.txt" I see the following:

/Users/esbuilder/Jenkins_Comm/PS/PS20/Mac_Release/20190605.r.83/photoshop/main/photoshop/i nterfaces/UTrackResouceImp.h : 152 : REQUIRE failed

 

I use the macOS Mojave (10.14.5) with Photoshop CC 2019

 

Any hints?

 

Thanks in advance

Regards

Is a custom selection plugin based on user paintbrush input possible?

$
0
0

Hi! I'm a beginner to writing Photoshop plugins and have a quick question to see if what I want to create is even possible.

 

I want to be able to create my own selection technique that colors pixels based on a users paintbrush input. (The painted pixels would then be used to draw the segmentation.) Can a Photoshop plugin react to an event such as the user drawing on an image? I've done some digging in the SDK and it sounds like this type of plugin falls somewhere in between Selection and Automation, though I'm not quite sure how to proceed.

 

Does anyone 1) know if this is possible and 2) would be able to point me in the right direction if it is? Thank you so much.

 

(I'm running Mac Mojave.)

Plug-In Developer Needed

$
0
0

Our product, Adsonica, uses a patented process to combine an image and audio into a single file that can be served as a sound ad. We currently have a standalone builder application that combines the files and exports the special file format. Our photoshop users have asked if we can create an export plug-in that enables them to go right from their photoshop workflow. We are looking for a freelancer who is interested in building the plug-in for us.

How to retrieve the "UI Scaling" value from the interface preference?

$
0
0

I am attempting to scale the UI of our plugins to match the UI Scaling value in the Photoshop interface preferences but I am unable to determine what values I need to read from. I have attempted to run the Getter plugin to determine this value but I have not found a difference in values between 100% scaling and 200% scaling. Do I need to read this value from a preference file somewhere?

The code from "getter" plug in

$
0
0
I want to get the code to draw Bezier path. The listener log could not get the codes. But the code from getter log could not work rightly.

-------------------------------------
error = sPSActionControl->StringIDToTypeID("Getting Work Path Info", &runtimeEventID);
if (error) goto returnError;

error = sPSActionControl->Play(&result, runtimeEventID, desc00001040, plugInDialogSilent);
if (error) goto returnError;
---------------------------------------
In the last sentence, it is error.

Do you use getter code all right?
I hope to discuss with you. Thank you.

Plug-ins that failed to load NO VERSION

$
0
0

I am trying to release a 64bit version of Windows plugin.

I get the following issue when Photoshop CS4 64bit starts.

 

Plug-ins that failed to load:

 

   Correct NO VERSION -  - from the file “PTFilters.8BF”
   Extract NO VERSION -  - from the file “PTFilters.8BF”
   Insert NO VERSION -  - from the file “PTFilters.8BF”
   Perspect NO VERSION -  - from the file “PTFilters.8BF”
   Remap NO VERSION -  - from the file “PTFilters.8BF”Flash:
   Connections
   Kuler

 

The 32bit version loads fine. In a single file I have 5 plugins.  Each with its own entry point and PiPl and aete resource.

Are there other chagnes to the resource file besides the following needed?

            #if defined(_WIN64)
                CodeWin64X86 { "PluginMainCorrect" },
            #else
                CodeWin32X86 { "PluginMainCorrect" },
            #endif

 

 

On the 32bit version if I choose Help | About Plugin ... on any one of them I get 5 request to display an about box. Is there something I can do to prevent this besides creating 5 seperate files?

 

 

Jim

psd and psb File Format Specifications

$
0
0

Besides these 2 documents
a) Photoshop CS File Formats Specification October 2003
b) Adobe Photoshop 6.0 File Formats Specification Version 6.0 Release 2.0 November 2000

 

Are there any other documents which would be helpful in understanding the PSD and PSB formats?

 

Is there a document/spreedsheet which shows which features are supported via Photoshop Versions
2.0 3.0 4.0 5.0 6.0 7.0 CS CS2 CS3 CS4 showing PSB and PSD features?

 

Where would these additional documents be located?

Python based library integrated with Photoshop API

$
0
0

I would like to develop a plugin for Photoshop based on a algorithm that I found on github. The algorithm is coded in Python and I have read that integrating it to the Photoshop API (which is written in C/C++) is not so simple.

What do I have to know to start working on it? And what tools should I use? Developing a script instead of a plugin would be an easier alternative?

I want to parse the xmp data from the automate plugin.

$
0
0

Can I use the automation plugin to parse xmp data using the XMPCoreStatic.lib, XMPFilesStatic.lib in the adobe XMP-Toolkit-SDK?

 

I tried and failed.

 

Is it only available in an exe project, not a plugin?

 

Do I need to call exe from the plugin?

Photoshop CS2 Not Enough RAM error message (wrong forum)

$
0
0

For some strange reason, my copy of Photoshop CS2 (macintosh) has started giving me an error message after program start up: could not complete your request because there is not enough RAM. I don't have to do anything. This message pops up about 1 minute after I start the program. The program works fine. I just close the window and go on. I haven't installed any new plug ins or changes to my prefs or hardware configuration. This just started for no apparent reason. It doesnt't refuse to work, it's just annoying. I've tried deleting the Photoshop prefs file and reinstalling the program from the master disc. Didn't help. I'm running OS 10.4.2 on a dual 1.8 gz processor mac with 4 gigs of RAM; Photoshop set to retain 60% of that. Anyone with any ideas about this, or should I just quit whining and go back to work...

Viewing all 54282 articles
Browse latest View live


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