• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to Find Tool ID Names?

Community Beginner ,
Feb 12, 2013 Feb 12, 2013

Copy link to clipboard

Copied

Hi

I have started experimenting with the Photoshop Connection SDK so I can interact with Photoshop from my iPad and am having some troubles.

I've seen at a very simple level how I could select say the move tool or quick select tool.

The IDs for these tools are simple, 'moveTool', 'quickSelectTool'. But how am I supposed to discover those of other tools?

I have trawlled all the docs I can find, CS5 Javascripting doc, Connection SDK Doc, discussion online and not been able to find an answer.

So I hope you can help, I'm new to the Photoshop SDK, so any great resources or tips in general regarding it would be greatly appreciated.

Thanks.

TOPICS
SDK

Views

754

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Feb 12, 2013 Feb 12, 2013

Here is an ActionScript routine I have. Not sure if this is 100 % complete. And it is not doing localized names (bad programmer)

private function toolIDToToolName(inID:String):String {

            var selectedTool:String = "Move"; // default to something

            switch (inID) {

                      case "moveTool": selectedTool = "Move"; break;

                      case "marqueeRectTool": selectedTool = "Marquee"; break;

                      case "marqueeEllipTool": selectedTool = "Marquee Elli

...

Votes

Translate

Translate
Adobe
Adobe Employee ,
Feb 12, 2013 Feb 12, 2013

Copy link to clipboard

Copied

Here is an ActionScript routine I have. Not sure if this is 100 % complete. And it is not doing localized names (bad programmer)

private function toolIDToToolName(inID:String):String {

            var selectedTool:String = "Move"; // default to something

            switch (inID) {

                      case "moveTool": selectedTool = "Move"; break;

                      case "marqueeRectTool": selectedTool = "Marquee"; break;

                      case "marqueeEllipTool": selectedTool = "Marquee Ellipse"; break;

                      case "marqueeSingleRowTool": selectedTool = "Marquee Single Row"; break;

                      case "marqueeSingleColumnTool": selectedTool = "MarqueeSingleColumn"; break;

                      case "lassoTool": selectedTool = "Lasso"; break;

                      case "polySelTool": selectedTool = "Polygon Select"; break;

                      case "magneticLassoTool": selectedTool = "Magnetic Lasso"; break;

                      case "quickSelectTool": selectedTool = "Quick Select"; break;

                      case "magicWandTool": selectedTool = "Magic Wand"; break;

                      case "cropTool": selectedTool = "Crop"; break;

                      case "sliceTool": selectedTool = "Slice"; break;

                      case "sliceSelectTool": selectedTool = "Slice Select"; break;

                      case "spotHealingBrushTool": selectedTool = "Spot Healing Brush"; break;

                      case "magicStampTool": selectedTool = "Magic Stamp"; break;

                      case "patchSelection": selectedTool = "Patch Selection"; break;

                      case "redEyeTool": selectedTool = "Red Eye"; break;

                      case "paintbrushTool": selectedTool = "Paint Brush"; break;

                      case "pencilTool": selectedTool = "Pencil"; break;

                      case "colorReplacementBrushTool": selectedTool = "Color Replacement Brush"; break;

                      case "cloneStampTool": selectedTool = "Clone Stamp"; break;

                      case "patternStampTool": selectedTool = "Pattern Stamp"; break;

                      case "historyBrushTool": selectedTool = "History Brush"; break;

                      case "artBrushTool": selectedTool = "Art Brush"; break;

                      case "eraserTool": selectedTool = "Eraser"; break;

                      case "backgroundEraserTool": selectedTool = "Background Eraser"; break;

                      case "magicEraserTool": selectedTool = "Magic Eraser"; break;

                      case "gradientTool": selectedTool = "Gradient"; break;

                      case "bucketTool": selectedTool = "Bucket"; break;

                      case "blurTool": selectedTool = "Blur"; break;

                      case "sharpenTool": selectedTool = "Sharpen"; break;

                      case "smudgeTool": selectedTool = "Smudge"; break;

                      case "dodgeTool": selectedTool = "Dodge"; break;

                      case "burnInTool": selectedTool = "Burn"; break;

                      case "saturationTool": selectedTool = "Saturation"; break;

                      case "penTool": selectedTool = "Pen"; break;

                      case "freeformPenTool": selectedTool = "Freeform Pen"; break;

                      case "addKnotTool": selectedTool = "Add Knot"; break;

                      case "deleteKnotTool": selectedTool = "Delete Knot"; break;

                      case "convertKnotTool": selectedTool = "Convert Knot"; break;

                      case "typeCreateOrEditTool": selectedTool = "Type Horizontal"; break;

                      case "typeVerticalCreateOrEditTool": selectedTool = "Type Vertical"; break;

                      case "typeCreateMaskTool": selectedTool = "Type Horizontal Mask"; break;

                      case "typeVerticalCreateMaskTool": selectedTool = "Type Vertical Mask"; break;

                      case "pathComponentSelectTool": selectedTool = "Path Select"; break;

                      case "directSelectTool": selectedTool = "Direct Select"; break;

                      case "rectangleTool": selectedTool = "Rectangle"; break;

                      case "roundedRectangleTool": selectedTool = "Rounded Rectangle"; break;

                      case "ellipseTool": selectedTool = "Ellipse"; break;

                      case "polygonTool": selectedTool = "Polygon"; break;

                      case "lineTool": selectedTool = "Line"; break;

                      case "customShapeTool": selectedTool = "Custom Shape"; break;

                      case "textAnnotTool": selectedTool = "Text Annotation"; break;

                      case "soundAnnotTool": selectedTool = "Sound Annotation"; break;

                      case "eyedropperTool": selectedTool = "Eye Dropper"; break;

                      case "colorSamplerTool": selectedTool = "Color Sampler"; break;

                      case "rulerTool": selectedTool = "Ruler"; break;

                      case "countTool": selectedTool = "Count"; break;

                      case "set3DState": selectedTool = "3D"; break;

                      case "handTool": selectedTool = "Hand"; break;

                      case "zoomTool": selectedTool = "Zoom"; break;

            }

            return selectedTool;

  }

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 12, 2013 Feb 12, 2013

Copy link to clipboard

Copied

Thats perfect! Just what I needed, thank you!

Might I ask how you came across the correct tool names though when you might have been in my situation not being able to find them?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 12, 2013 Feb 12, 2013

Copy link to clipboard

Copied

LATEST

I usually resort to "the application is the documentation."

Install Listener

Manually execute

Get the code

Edit the code

Test the code

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines