Select tool list

Photoshop Script Snippets - Note: Full Scripts go in the Photoshop Scripts Forum

Moderators: Kukurykus, Tom, xbytor

Paul MR

Select tool list

Post by Paul MR »

Code: Select allselectTool('moveTool');
//selectTool('marqueeRectTool');
//selectTool('marqueeEllipTool');
//selectTool('marqueeSingleRowTool');
//selectTool('marqueeSingleColumnTool');
//selectTool('lassoTool');
//selectTool('polySelTool');
//selectTool('magneticLassoTool');
//selectTool('quickSelectTool');
//selectTool('magicWandTool');
//selectTool('cropTool');
//selectTool('sliceTool');
//selectTool('sliceSelectTool');
//selectTool('spotHealingBrushTool');
//selectTool('magicStampTool');
//selectTool('patchSelection');
//selectTool('redEyeTool');
//selectTool('paintbrushTool');
//selectTool('pencilTool');
//selectTool('colorReplacementBrushTool');
//selectTool('cloneStampTool');
//selectTool('patternStampTool');
//selectTool('historyBrushTool');
//selectTool('artBrushTool');
//selectTool('eraserTool');
//selectTool('backgroundEraserTool');
//selectTool('magicEraserTool');
//selectTool('gradientTool');
//selectTool('bucketTool');
//selectTool('blurTool');
//selectTool('sharpenTool');
//selectTool('smudgeTool');
//selectTool('dodgeTool');
//selectTool('burnInTool');
//selectTool('saturationTool');
//selectTool('penTool');
//selectTool('freeformPenTool');
//selectTool('addKnotTool');
//selectTool('deleteKnotTool');
//selectTool('convertKnotTool');
//selectTool('typeCreateOrEditTool');
//selectTool('typeVerticalCreateOrEditTool');
//selectTool('typeCreateMaskTool');
//selectTool('typeVerticalCreateMaskTool');
//selectTool('pathComponentSelectTool');
//selectTool('directSelectTool');
//selectTool('rectangleTool');
//selectTool('roundedRectangleTool');
//selectTool('ellipseTool');
//selectTool('polygonTool');
//selectTool('lineTool');
//selectTool('customShapeTool');
//selectTool('textAnnotTool');
//selectTool('soundAnnotTool');
//selectTool('eyedropperTool');
//selectTool('colorSamplerTool');
//selectTool('rulerTool');
//selectTool('handTool');
//selectTool('zoomTool');

function selectTool(tool) {
    var desc9 = new ActionDescriptor();
        var ref7 = new ActionReference();
        ref7.putClass( app.stringIDToTypeID(tool) );
    desc9.putReference( app.charIDToTypeID('null'), ref7 );
    executeAction( app.charIDToTypeID('slct'), desc9, DialogModes.NO );
};

Mcquiff

Select tool list

Post by Mcquiff »

How can I select the mixer brush tool?

wasfiwasfi
Posts: 45
Joined: Fri Nov 04, 2016 8:29 am

Re: Select tool list

Post by wasfiwasfi »

Amazing !!
Thank you buddy !!

GetUp
Posts: 2
Joined: Fri Dec 18, 2020 9:57 pm

Re: Select tool list

Post by GetUp »

Hello, may be you know the name for Object Selection Tool?

User avatar
Kukurykus
Posts: 338
Joined: Mon Jul 25, 2016 12:36 pm

Re: Select tool list

Post by Kukurykus »

magicLassoTool

User avatar
Stephen_A_Marsh
Posts: 5
Joined: Sun Aug 04, 2019 12:37 pm

Re: Select tool list

Post by Stephen_A_Marsh »

I have just created an updated list for CC2021, please let me know if there are any errors or omissions...

//selectTool('moveTool');
//selectTool('artboardTool’);
//selectTool('marqueeRectTool');
//selectTool('marqueeEllipTool');
//selectTool('marqueeSingleRowTool');
//selectTool('marqueeSingleColumnTool');
//selectTool('lassoTool');
//selectTool('polySelTool');
//selectTool('magneticLassoTool');
//selectTool('magicLassoTool’);
//selectTool('quickSelectTool');
//selectTool('magicWandTool');
//selectTool('cropTool');
//selectTool('perspectiveCropTool’);
//selectTool('sliceTool');
//selectTool('sliceSelectTool');
//selectTool('framedGroupTool’);
//selectTool('eyedropperTool');
//selectTool('3DMaterialSelectTool’);
//selectTool('colorSamplerTool');
//selectTool('rulerTool');
//selectTool('textAnnotTool');
//selectTool('countTool’);
//selectTool('spotHealingBrushTool');
//selectTool('magicStampTool');
//selectTool('patchSelection');
//selectTool('recomposeSelection’);
//selectTool('redEyeTool');
//selectTool('paintbrushTool');
//selectTool('pencilTool');
//selectTool('colorReplacementBrushTool');
//selectTool('wetBrushTool’);
//selectTool('cloneStampTool');
//selectTool('patternStampTool');
//selectTool('historyBrushTool');
//selectTool('artBrushTool');
//selectTool('eraserTool');
//selectTool('backgroundEraserTool');
//selectTool('magicEraserTool');
//selectTool('gradientTool');
//selectTool('bucketTool');
//selectTool('3DMaterialDropTool’);
//selectTool('blurTool');
//selectTool('sharpenTool');
//selectTool('smudgeTool');
//selectTool('dodgeTool');
//selectTool('burnInTool');
//selectTool('saturationTool');
//selectTool('penTool');
//selectTool('freeformPenTool');
//selectTool('curvaturePenTool’);
//selectTool('addKnotTool');
//selectTool('deleteKnotTool');
//selectTool('convertKnotTool');
//selectTool('typeCreateOrEditTool');
//selectTool('typeVerticalCreateOrEditTool');
//selectTool('typeCreateMaskTool');
//selectTool('typeVerticalCreateMaskTool');
//selectTool('pathComponentSelectTool');
//selectTool('directSelectTool');
//selectTool('rectangleTool');
//selectTool('roundedRectangleTool');
//selectTool('ellipseTool');
//selectTool('triangleTool’);
//selectTool('polygonTool');
//selectTool('lineTool');
//selectTool('customShapeTool');
//selectTool('handTool');
//selectTool('rotateTool’);
//selectTool('zoomTool');

User avatar
txuku
Posts: 129
Joined: Thu Jan 01, 1970 12:00 am

Re: Select tool list

Post by txuku »

Bonjour

If this can be useful for a French jsx programmer -

I have this personal work:

Code: Select all

//Chris Whitaker
//www.Funkybunnies3d.com
//
//simply cycle through a few important tools,
//you can edit this by checking the list of tools at the bottom
//
//PaulMR did most of this work, I just set it up to cycle through... which was only a few lines, so big thanks to him!

/* .................. */

//Simplifie par moi : trouver l outil en cours

function findCurrentTool(){
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
var cTool = typeIDToStringID( executeActionGet(ref).getEnumerationType(stringIDToTypeID('tool')) );
return cTool;
};

var cTool1 = findCurrentTool();
alert( cTool1 );



//selectTool('moveTool'); = 'Outil Deplacement'
//selectTool('marqueeRectTool'); = 'Outil Rectangle de selection'
//selectTool('marqueeEllipTool'); = 'Outil Ellipse de selection'
//selectTool('marqueeSingleRowTool'); = 'Outil Rectangle de selection 1 rangee'
//selectTool('marqueeSingleColumnTool'); = 'marqueeSingleColumnTool'
//selectTool('lassoTool'); = 'Outil Lasso'
//selectTool('polySelTool'); = 'Outil Lasso polygonal'
//selectTool('magneticLassoTool'); = 'Outil Lasso magnetique'
//selectTool('quickSelectTool'); = 'Outil Selection rapide'
//selectTool('magicWandTool'); = 'Outil Baguette magique'
//selectTool('cropTool'); = 'Outil Recadrage'
//selectTool('sliceTool'); = 'Outil Tranche'
//selectTool('sliceSelectTool'); = 'Outil Selection de tranche'
//selectTool('eyedropperTool'); = 'Outil Pipette'
//selectTool('colorSamplerTool'); = 'Outil Echantillonnage de couleur'
//selectTool('rulerTool'); = 'Outil Regle'
//selectTool('textAnnotTool'); = 'Outil Annotation'
//selectTool('countTool'); = 'Outil Comptage'
//selectTool('spotHealingBrushTool'); = 'Outil Correcteur localise'
//selectTool('magicStampTool'); = 'Outil Correcteur'
//selectTool('patchSelection'); = 'Outil Piece'
//selectTool('redEyeTool'); = 'Outil Œil rouge'
//selectTool('paintbrushTool'); = 'Outil Pinceau'
//selectTool('pencilTool'); = 'Outil Crayon'
//selectTool('colorReplacementBrushTool'); = 'Outil Remplacement de couleur'
//selectTool('wetBrushTool'); = 'Outil Pinceau melangeur'
//selectTool('cloneStampTool'); = 'Outil Tampon de duplication'
//selectTool('patternStampTool'); = 'Outil Tampon de motif'
//selectTool('historyBrushTool'); = 'Outil Forme d historique'
//selectTool('artBrushTool'); = 'Outil Forme d historique artistique'
//selectTool('eraserTool'); = 'Outil Gomme'
//selectTool('backgroundEraserTool'); = 'Outil Gomme d arriere-plan'
//selectTool('magicEraserTool'); = 'Outil Gomme magique'
//selectTool('gradientTool'); = 'Outil Degrade'
//selectTool('bucketTool'); = 'Outil Pot de peinture'
//selectTool('blurTool'); = 'Outil Goutte d eau'
//selectTool('sharpenTool'); = 'Outil Nettete'
//selectTool('smudgeTool'); = 'Outil Doigt'
//selectTool('dodgeTool'); = 'Outil Densite -'
//selectTool('burnInTool'); = 'Outil Densite +'
//selectTool('saturationTool'); = 'Outil Eponge'
//selectTool('penTool'); = 'Outil Plume'
//selectTool('freeformPenTool'); = 'Outil Plume libre'
//selectTool('addKnotTool'); = 'Outil Ajout de point d ancrage'
//selectTool('deleteKnotTool'); = 'Outil Suppression de point d ancrage'
//selectTool('convertKnotTool'); = 'Outil Conversion de point'
//selectTool('typeCreateOrEditTool'); = 'Outil Texte horizontal'
//selectTool('typeVerticalCreateOrEditTool'); = 'Outil Texte vertical'
//selectTool('typeCreateMaskTool'); = 'Outil Masque de texte horizontal'
//selectTool('typeVerticalCreateMaskTool'); =  'Outil Masque de texte vertical'
//selectTool('pathComponentSelectTool'); = 'Outil Selection de trace'
//selectTool('directSelectTool'); = 'Outil Selection directe'
//selectTool('rectangleTool'); = 'Outil Rectangle'
//selectTool('roundedRectangleTool'); = 'Outil Rectangle arrondi'
//selectTool('ellipseTool'); = 'Outil Ellipse'
//selectTool('polygonTool'); = 'Outil Polygone'
//selectTool('lineTool'); = 'Outil Trait'
//selectTool('customShapeTool'); = 'Outil Forme personnalisee'
//selectTool('soundAnnotTool'); = 'Outil Annotation audio' // n existe pas dans cette version
//selectTool('handTool'); = 'Outil Main'
//selectTool('rotateTool'); = 'Outil Rotation de l affichage'
//selectTool('zoomTool'); = 'Outil Zoom'