Illustrator script to select multiple layers
I have about 74 layers in illustrator and i want to run a script to select combination of layers at a time.
For e.g. I want 5 layers to be selected and save them as one .jpg. Then say i need to select other 3 layers to save it as a seperate .jpg file. If i do it manually it comes upto 300,000 images.
I can create a csv file with all layers to be selected presented in a row. I need help with the command to select 4 or more layers at a time, say if i have layer1, layer2, layer3, layer4 then a command to select those 4 layers and save them as a .jpg file.
Any help will be greatly appreciated.
Thanks
H Patel
CEO
Data Entry India
Create a csv or .text file ( i used "test.txt" and place it at any location say C:\\)
Enter the layer names to be exported in each row separated by ";" like
Layer 1;Layer 2
Layer 4;Layer 5;Layer 7 // you can type in the names of as many layers you wanted to export in a single jpeg
Open your main .Ai file in Illustrator and run the following script
var count;
count =1;
var f = new File ("C:\\test.txt");
f.open("r");
while(!f.eof)
c=f.readln();
var arr = c.split(";");
var len= arr.length;
for(i=0;i<len;i++)
lay= app.activeDocument.layers.getByName(arr[i]);
lay.hasSelectedArtwork=true;
app.copy();
app.documents.add();
app.paste();
var exportOptions = new ExportOptionsJPEG();
var type = ExportType.JPEG
var fileSpec = new File("c:\\"+count+".jpg");
app.activeDocument.exportFile( fileSpec, type, exportOptions );
app.activeDocument.close();
for(i=0;i<len;i++)
app.activeDocument.layers.getByName(arr[i]).hasSelectedArtwork=false;
count ++;
What this script is doing is
it is reading a line from the .txt file (c:\\test.txt in this case) and pushing the layers to be exported in an array
then selecting the objects on the layers to be exported
copying the selected contents
pasting the contents on the new doc
exporting as jpeg
closing the doc
deselecting the selected objects
Hope this will solve your problem ...
Similar Messages
-
Simultaneously select multiple layers and sublayers
Hello
I am having to select multiple layers and their sublayers in Illustrator 2014, but taking the procedure described in the post below only lets you select multiple "main layers" with the sublayers left unselected.
Re: Is it possible to select multiple layers by selecting first and last layers?
Would someone please explain how both layers and sublayers can be selected in the Layers panel?
Getting more and more confused about the layer control in Illustrator..
Thank you in advance,
EadEad,
I believe it is a matter of implicit selection, which may be a bit diconcerting.
You may try this:
1) Create a (small) number of layers with sublayers (or use the set yopu have), and tick Paste Remembers Layers;
2) ShiftClick first and last (relevant) and Ctrl/Cmd+C;
3) Create a new document and Ctrl/Cmd+F.
Is anything missing (obviously, everything copied has been selected)? -
how do i select multiple layers in cs5. when i hold shift key and select two are more layers it is not selecting those other layers. kindly help
you select the top layer then hold shift then select a lower one and every one in between is selected. Just like windows files selection
if you just want say layer 3 6 10 and 29 then you hold ctrl when selecting each layer
hope this helps you -
This sounds very obvious, I know.
But! I have lost the ability to select multiple layers. Shift, Command, Control Click. Nothing works. I can't select them with the selection box like I used to either. There must be a setting or something that I accidentally clicked? If I can't select multiple layers I basically can't do anything including grouping or linking or merging layers in additon to a bunch of other stuff that is crutial!
This is driving me batty.
Thanks in advance.To supplement this it might also be a conflict with a third party software as well.
If the keyboard tmethsd of resetting the preferences doesn't work then
1. Quit Photoshop
2.Go to User/username/Library/Preferences/ Adobe Photoshop CS4 Settings and trash the settings folder, the whole folder not just the contents of the folder..
3. Start Photoshop. Photoshop creates a new preferences file.
Also if you recently updated your system there might be a conflict with the systems key board shortcuts, Like Spotlight, Universal access, dashboard and Exposé or asI said before it could be something like Quicken.
Have you installed anything lately. -
Selecting multiple layers in Fireworks CS4
When I want to select multiple layers/sublayers I shift click (windows) on the layers that I want to select or control click. The problem I am having is when I do this, there are layers being selected that I do not want to select. It seems to do this automatically. What can I be doing wrong?
Thanks,
LTThat little button indicates that at least some content on that layer
has been selected. Another limitation is that if you chose to copy
all that content, Fireworks would not include the sub layers (or
layers) themselves when pasting. It would just group everything into a
single layer. Not very good, if you ask me. That's the behavior on my
Mac anyway. I'd need to check my PC to see if it's consistent.
In short, I don't think it's anything you are doing wrong.
Jim Babbage -
Script to select all layers based on condition?
Do anyone have a script to select all layers based on either name or color label? Possibly using search but not necessarily?
If you search this forum you will find script that will process all layers in a document. You can modify one if them to skip the layers you do not want to process do nothing to the. The process uses recursion to process layers within layer groups,.
-
Selecting multiple layers and merge
is it possible to select multiple layers (with layermask) and merge them?
tell application "Adobe Photoshop CS6"
tell current document
set current layer to every layer of layer set "bloem 1-9" of layer set "Bloem"
tell current layer
merge
end tell
end tell
end tellYes, for that you have to select the layers that are in the set. Here is one way using javascript
function selectLayerBelow( add ){
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Bckw" ) );
desc.putReference( charIDToTypeID( "null" ), ref );
if(add!=undefined && add = true )desc.putEnumerated( stringIDToTypeID('selectionModifier'), stringIDToTypeID('selectionModifierType'), stringIDToTypeID('addToSelectionContinuous') );
desc.putBoolean( charIDToTypeID( "MkVs" ), false );
executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
// assumes a layerSet the the activeLayer and doesn't work correctly if there are nested layerSets
var numberOfLayersInSet = app.activeDocument.activeLayer.layers.length;
selectLayerBelow();
for(var layerIndex = 1;layerIndex<numberOfLayersInSet;layerIndex++){
selectLayerBelow( true );
app.activeDocument.activeLayer.merge(); -
Can't select multiple layers with shift/ctrl in Photoshop CC
I honestly can't find a damn thing about this in google searches, other than one poor soul who had the problem on PS5 years ago and just reset their preferences to fix it. None of my more experienced artist co-workers have any idea either.. Well I've tried resetting prefs, restarting photoshop, rebooting PC, and finally reinstalling photoshop.
I'm on a corporate CC account with my own login, I got a photoshop update that happened yesterday, in the middle of all this. I was hoping that might fix it, but no. I tried signing out of the CC account and signing back in, still nothing. I"m out of ideas.
If I create a new PSD, and create multiple empty layers, I still can't multi-select the layers. I can only ever select a single layer at a time. What else can I possibly be missing?Here it is, hopefully this doesn't reveal too much personal info!
Adobe Photoshop Version: 14.2.1 (14.2.1 20140207.r.570 2014/02/07:23:00:00) x64
Operating System: Windows 8 64-bit
Version: 6.2
System architecture: Intel CPU Family:6, Model:10, Stepping:9 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
Physical processor count: 2
Logical processor count: 4
Processor speed: 1796 MHz
Built-in memory: 8081 MB
Free memory: 4525 MB
Memory available to Photoshop: 7058 MB
Memory used by Photoshop: 60 %
Image tile size: 128K
Image cache levels: 4
Font Preview: Medium
TextComposer: Latin
Display: 1
Display Bounds: top=0, left=0, bottom=768, right=1366
Display: 2
Display Bounds: top=-312, left=1366, bottom=768, right=3286
OpenGL Drawing: Enabled.
OpenGL Allow Old GPUs: Not Detected.
OpenGL Drawing Mode: Advanced
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: True.
AIFCoreInitialized=1
AIFOGLInitialized=1
OGLContextCreated=1
NumGPUs=1
gpu[0].OGLVersion="3.0"
gpu[0].MemoryMB=2112
gpu[0].RectTextureSize=16384
gpu[0].Renderer="Intel(R) HD Graphics 4000"
gpu[0].RendererID=358
gpu[0].Vendor="Intel"
gpu[0].VendorID=32902
gpu[0].HasNPOTSupport=1
gpu[0].DriverVersion="10.18.10.3412"
gpu[0].Driver="igdumdim64.dll,igd10iumd64.dll,igd10iumd64.dll,igdumdim32,igd10iumd32,igd10 iumd32"
gpu[0].DriverDate="20140122000000.000000-000"
gpu[0].CompileProgramGLSL=1
gpu[0].TestFrameBuffer=1
gpu[0].OCLPresent=1
gpu[0].OCLVersion="1.2 "
gpu[0].CUDASupported=0
gpu[0].OCLBandwidth=1.53587e+010
gpu[0].glGetString[GL_SHADING_LANGUAGE_VERSION]="1.30 - Build 10.18.10.3412"
gpu[0].glGetProgramivARB[GL_FRAGMENT_PROGRAM_ARB][GL_MAX_PROGRAM_INSTRUCTIONS_ARB]=[1447]
gpu[0].glGetIntegerv[GL_MAX_TEXTURE_UNITS]=[8]
gpu[0].glGetIntegerv[GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS]=[96]
gpu[0].glGetIntegerv[GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS]=[16]
gpu[0].glGetIntegerv[GL_MAX_TEXTURE_IMAGE_UNITS]=[16]
gpu[0].glGetIntegerv[GL_MAX_DRAW_BUFFERS]=[8]
gpu[0].glGetIntegerv[GL_MAX_VERTEX_UNIFORM_COMPONENTS]=[4096]
gpu[0].glGetIntegerv[GL_MAX_FRAGMENT_UNIFORM_COMPONENTS]=[4096]
gpu[0].glGetIntegerv[GL_MAX_VARYING_FLOATS]=[64]
gpu[0].glGetIntegerv[GL_MAX_VERTEX_ATTRIBS]=[16]
gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_PROGRAM]=1
gpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_PROGRAM]=1
gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_SHADER]=1
gpu[0].extension[AIF::OGL::GL_ARB_FRAGMENT_SHADER]=1
gpu[0].extension[AIF::OGL::GL_EXT_FRAMEBUFFER_OBJECT]=1
gpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_RECTANGLE]=1
gpu[0].extension[AIF::OGL::GL_ARB_TEXTURE_FLOAT]=1
gpu[0].extension[AIF::OGL::GL_ARB_OCCLUSION_QUERY]=1
gpu[0].extension[AIF::OGL::GL_ARB_VERTEX_BUFFER_OBJECT]=1
gpu[0].extension[AIF::OGL::GL_ARB_SHADER_TEXTURE_LOD]=0
License Type: Subscription
Serial number: 94070123096078738317
Application folder: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\
Temporary file path: C:\Users\Dev\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
Startup, 447.4G, 361.7G free
Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Required\Plug-Ins\
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Plug-ins\
Installed components:
ACE.dll ACE 2013/10/29-11:47:16 79.548223 79.548223
adbeape.dll Adobe APE 2013/02/04-09:52:32 0.1160850 0.1160850
AdobeLinguistic.dll Adobe Linguisitc Library 7.0.0
AdobeOwl.dll Adobe Owl 2013/10/25-12:15:59 5.0.24 79.547804
AdobePDFL.dll PDFL 2013/10/29-11:47:16 79.508720 79.508720
AdobePIP.dll Adobe Product Improvement Program 7.0.0.1786
AdobeXMP.dll Adobe XMP Core 2013/10/29-11:47:16 79.154911 79.154911
AdobeXMPFiles.dll Adobe XMP Files 2013/10/29-11:47:16 79.154911 79.154911
AdobeXMPScript.dll Adobe XMP Script 2013/10/29-11:47:16 79.154911 79.154911
adobe_caps.dll Adobe CAPS 7,0,0,21
AGM.dll AGM 2013/10/29-11:47:16 79.548223 79.548223
ahclient.dll AdobeHelp Dynamic Link Library 1,8,0,31
aif_core.dll AIF 5.0 79.534508
aif_ocl.dll AIF 5.0 79.534508
aif_ogl.dll AIF 5.0 79.534508
amtlib.dll AMTLib (64 Bit) 7.0.0.249 BuildVersion: 7.0; BuildDate: Thu Nov 14 2013 15:55:50) 1.000000
ARE.dll ARE 2013/10/29-11:47:16 79.548223 79.548223
AXE8SharedExpat.dll AXE8SharedExpat 2011/12/16-15:10:49 66.26830 66.26830
AXEDOMCore.dll AXEDOMCore 2011/12/16-15:10:49 66.26830 66.26830
Bib.dll BIB 2013/10/29-11:47:16 79.548223 79.548223
BIBUtils.dll BIBUtils 2013/10/29-11:47:16 79.548223 79.548223
boost_date_time.dll DVA Product 7.0.0
boost_signals.dll DVA Product 7.0.0
boost_system.dll DVA Product 7.0.0
boost_threads.dll DVA Product 7.0.0
cg.dll NVIDIA Cg Runtime 3.0.00007
cgGL.dll NVIDIA Cg Runtime 3.0.00007
CIT.dll Adobe CIT 2.1.6.30929 2.1.6.30929
CITThreading.dll Adobe CITThreading 2.1.6.30929 2.1.6.30929
CoolType.dll CoolType 2013/10/29-11:47:16 79.548223 79.548223
dvaaudiodevice.dll DVA Product 7.0.0
dvacore.dll DVA Product 7.0.0
dvamarshal.dll DVA Product 7.0.0
dvamediatypes.dll DVA Product 7.0.0
dvaplayer.dll DVA Product 7.0.0
dvatransport.dll DVA Product 7.0.0
dvaunittesting.dll DVA Product 7.0.0
dynamiclink.dll DVA Product 7.0.0
ExtendScript.dll ExtendScript 2013/10/30-13:12:12 79.546835 79.546835
FileInfo.dll Adobe XMP FileInfo 2013/10/25-03:51:33 79.154511 79.154511
filter_graph.dll AIF 5.0 79.534508
icucnv40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
icudt40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
imslib.dll IMSLib DLL 7.0.0.145
JP2KLib.dll JP2KLib 2013/10/29-11:47:16 79.248139 79.248139
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libiomp5md.dll Intel(R) OMP Runtime Library 5.0
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 12.0
LogSession.dll LogSession 2.1.2.1785
mediacoreif.dll DVA Product 7.0.0
MPS.dll MPS 2013/10/29-11:47:16 79.535029 79.535029
msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.8428
msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcp100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.8428
msvcp90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcr100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcr80.dll Microsoft® Visual Studio® 2005 8.00.50727.8428
msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
PatchMatch.dll PatchMatch 2013/10/29-11:47:16 79.542390 79.542390
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CC CC
Plugin.dll Adobe Photoshop CC CC
PlugPlugOwl.dll Adobe(R) CSXS PlugPlugOwl Standard Dll (64 bit) 4.2.0.36
PSArt.dll Adobe Photoshop CC CC
PSViews.dll Adobe Photoshop CC CC
SCCore.dll ScCore 2013/10/30-13:12:12 79.546835 79.546835
ScriptUIFlex.dll ScriptUIFlex 2013/10/30-13:12:12 79.546835 79.546835
svml_dispmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 12.0
tbb.dll Intel(R) Threading Building Blocks for Windows 4, 1, 2012, 1003
tbbmalloc.dll Intel(R) Threading Building Blocks for Windows 4, 1, 2012, 1003
updaternotifications.dll Adobe Updater Notifications Library 7.0.1.102 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 7.0.1.102
WRServices.dll WRServices Mon Feb 25 2013 16:09:10 Build 0.19078 0.19078
Required plug-ins:
3D Studio 14.2.1 (14.2.1 x001)
Accented Edges 14.2.1
Adaptive Wide Angle 14.2.1
Angled Strokes 14.2.1
Average 14.2.1 (14.2.1 x001)
Bas Relief 14.2.1
BMP 14.2.1
Camera Raw 8.4.1
Camera Raw Filter 8.4.1
Chalk & Charcoal 14.2.1
Charcoal 14.2.1
Chrome 14.2.1
Cineon 14.2.1 (14.2.1 x001)
Clouds 14.2.1 (14.2.1 x001)
Collada 14.2.1 (14.2.1 x001)
Color Halftone 14.2.1
Colored Pencil 14.2.1
CompuServe GIF 14.2.1
Conté Crayon 14.2.1
Craquelure 14.2.1
Crop and Straighten Photos 14.2.1 (14.2.1 x001)
Crop and Straighten Photos Filter 14.2.1
Crosshatch 14.2.1
Crystallize 14.2.1
Cutout 14.2.1
Dark Strokes 14.2.1
De-Interlace 14.2.1
Dicom 14.2.1
Difference Clouds 14.2.1 (14.2.1 x001)
Diffuse Glow 14.2.1
Displace 14.2.1
Dry Brush 14.2.1
Eazel Acquire 14.2.1 (14.2.1 x001)
Embed Watermark 4.0
Entropy 14.2.1 (14.2.1 x001)
Extrude 14.2.1
FastCore Routines 14.2.1 (14.2.1 x001)
Fibers 14.2.1
Film Grain 14.2.1
Filter Gallery 14.2.1
Flash 3D 14.2.1 (14.2.1 x001)
Fresco 14.2.1
Glass 14.2.1
Glowing Edges 14.2.1
Google Earth 4 14.2.1 (14.2.1 x001)
Grain 14.2.1
Graphic Pen 14.2.1
Halftone Pattern 14.2.1
HDRMergeUI 14.2.1
IFF Format 14.2.1
Ink Outlines 14.2.1
JPEG 2000 14.2.1
Kurtosis 14.2.1 (14.2.1 x001)
Lens Blur 14.2.1
Lens Correction 14.2.1
Lens Flare 14.2.1
Liquify 14.2.1
Matlab Operation 14.2.1 (14.2.1 x001)
Maximum 14.2.1 (14.2.1 x001)
Mean 14.2.1 (14.2.1 x001)
Measurement Core 14.2.1 (14.2.1 x001)
Median 14.2.1 (14.2.1 x001)
Mezzotint 14.2.1
Minimum 14.2.1 (14.2.1 x001)
MMXCore Routines 14.2.1 (14.2.1 x001)
Mosaic Tiles 14.2.1
Multiprocessor Support 14.2.1 (14.2.1 x001)
Neon Glow 14.2.1
Note Paper 14.2.1
NTSC Colors 14.2.1 (14.2.1 x001)
Ocean Ripple 14.2.1
Oil Paint 14.2.1
OpenEXR 14.2.1
Paint Daubs 14.2.1
Palette Knife 14.2.1
Patchwork 14.2.1
Paths to Illustrator 14.2.1
PCX 14.2.1 (14.2.1 x001)
Photocopy 14.2.1
Photoshop 3D Engine 14.2.1 (14.2.1 x001)
Photoshop Touch 14.0
Picture Package Filter 14.2.1 (14.2.1 x001)
Pinch 14.2.1
Pixar 14.2.1 (14.2.1 x001)
Plaster 14.2.1
Plastic Wrap 14.2.1
PNG 14.2.1
Pointillize 14.2.1
Polar Coordinates 14.2.1
Portable Bit Map 14.2.1 (14.2.1 x001)
Poster Edges 14.2.1
Radial Blur 14.2.1
Radiance 14.2.1 (14.2.1 x001)
Range 14.2.1 (14.2.1 x001)
Read Watermark 4.0
Reticulation 14.2.1
Ripple 14.2.1
Rough Pastels 14.2.1
Save for Web 14.2.1
ScriptingSupport 14.2.1
Shake Reduction 14.2.1
Shear 14.2.1
Skewness 14.2.1 (14.2.1 x001)
Smart Blur 14.2.1
Smudge Stick 14.2.1
Solarize 14.2.1 (14.2.1 x001)
Spatter 14.2.1
Spherize 14.2.1
Sponge 14.2.1
Sprayed Strokes 14.2.1
Stained Glass 14.2.1
Stamp 14.2.1
Standard Deviation 14.2.1 (14.2.1 x001)
STL 14.2.1 (14.2.1 x001)
Sumi-e 14.2.1
Summation 14.2.1 (14.2.1 x001)
Targa 14.2.1
Texturizer 14.2.1
Tiles 14.2.1
Torn Edges 14.2.1
Twirl 14.2.1
Underpainting 14.2.1
Vanishing Point 14.2.1
Variance 14.2.1 (14.2.1 x001)
Variations 14.2.1 (14.2.1 x001)
Water Paper 14.2.1
Watercolor 14.2.1
Wave 14.2.1
Wavefront|OBJ 14.2.1 (14.2.1 x001)
WIA Support 14.2.1 (14.2.1 x001)
Wind 14.2.1
Wireless Bitmap 14.2.1 (14.2.1 x001)
ZigZag 14.2.1
Optional and third party plug-ins: NONE
Plug-ins that failed to load: NONE
Flash:
Adobe Exchange
Kuler
Installed TWAIN devices: NONE -
Is it possible to select multiple layers by selecting first and last layers?
I frequently get Illustrator files in that have individual objects such as paths on individual layers that could be grouped to make the layers more concise. I find that I have to shift click each individual layer to select it to eventually group it. At times, I have 25 or so layers that I need to select. Is there a way to select the first and last layer in the layers palette, and have Illustrator select all layers in between?
Katrina,
And I guess it's the way I work. 1) I routinely select objects by selecting them from the layers palette, and not the canvas, so that I can't accidentally move an object that is the clients artwork. I prefer to work this way, as I consider it "safer". (I lock layers I'm not using) I routinely run into artists work that for instance, converted fonts to outline, and now each compound layer that is an individual letter is an object on it's own layer. 2) I need things grouped together and titled so that if I need to come back to this file and quickly fix something on press, I can tell what layer holds what object.
3) Therefore, I frequently need to select objects in a two mile long (slight exaggeration ) list of layers/sublayers and group them, retaining them in their same layers in the event an effect has been applied at the top hiearchy of that layer.
It would be great if a key, or combination of keys, would allow me to select the top object, scroll down and select the last object, and have Illustrator select all between those two.
If you create and use selections as suggested in post #12, you do have to select individual objects when they share layers with other objects (but you can select whole layers as well) in exactly the way you are used to (1), but you only have to do it once instead of having to repeat it (3), and you have them collected with a title so you can find them again (2).
At least it is part of the way. -
Dragging To Select Multiple Layers In Document Window?
I've looked this up but can't seem to make it work. I want to select the 6 or 7 layers that make up a picture in my file. I'm working with a file someone else created so there are dozens of layers, which makes it hard to select just a few from the Layers Pallete.
Is there an easy way to select all the constituent layers of a particular item on the document window? I've tried ho0lding Shift down while trying to select all the layers, but that isn't effective because the layers are on top of eachother. Is there no way I can drag my mouse and have Photoshop select every layer that is complete inside the dragged area?
Thanks.
KenKen, Marek's response is correct with regard to selecting, (read: targeting), layers in the Layers Panel.This is good if you need to apply a transformation to the contents of multiple layers simultaneously, use alignment/distribution features on those layers, or merge them.
Your description of what you're attempting, however, suggests you want to select the pixels residing on particular layers. The way you're doing it isn't the way it works. What you want can be done, but not in the image window. In the Layers Panel, Ctrl+Click on the layer thumbnail of the first layer you want selected, (you should see the actuated selection in the form of 'marching ants' surrounding the layer's non-transparent pixels...in the image), then add the Shift key and Shift+Ctrl+Click on the layer thumbnail of each of the additional layers to subsequently add their non-transparent pixels to the selection.
Note that all you're doing here is making a selection, as opposed to selecting the contents of multiple layers. Such a selection can only target a single layer, and any pixel-altering operation you apply with this selection active will only affect one layer...not all those that may have contributed to the additive selection-building process described. -
Script for Linking multiple layers to a null layer
I'm trying to link multiple layers to an animated null layer but I want each layer to start the animation from layer starting time.
What would be the script I need to add instead duplicating null layer for every layers?
I hope that question isn't too confusing to understand lol
TIA
WSorry, I'm not good at explaining things though texts lol
Hopefully this picture can explain better what I'm trying to achieve.
I want to link the text layers to ROTATE null object but I want the keyframes to start at the beginning of each of text layer. This way, I won't need keyframes for each text layer and I can adjust the timing easier later. I know the script lines to link them to a null object but I can't figure out the line to tell the keyframes to start at the beginning of the layer instead the null object in the timeline.
I think I just made this more confusing lol -
Hello
i want to select areas in two or more layers that have identical pixels in both (all) layers. For example if it is two black and white pictures aligned on top of each others i want to select the areas where there are black pixels in both.
can i do that?
/GJust a thought, heck I don't even know if it would work. But In theory or well...
With two layers you could set the top layer to difference, then in the channels panel alt select or opt select the rgb thumbnail. That should select the differences then if necessary it is a simple matter to invert the selection.
But the proper way besides what Mylenium mentioned, is to use the modifier keys to add, subtract, or intersect selections.
The beauty of the way Mylenium's method is if you make a mistake, you don't have much to do to reselect since it is saved for you and you can retrieve it any time as long as you save the file itself in a format that support alpha channels, such as psd or tiff. -
Selecting multiple Layers (AS)
Hi,
How i possible to select more than one layers using AS.
If I select manually 2 layers and after I get properties of document, result say that current layer is only one. There is no trace about the current active selection on layer palette.
StefanoCapste, Im not convinced that you can do this with Applescript at least in CS2 unless some one else knows otherwise. the dictionary says:
current layer (layer) : selected layer for document
Again you should be able to set your target single layer as current layer then use some scriptlistener output to add to this. In the handler below your parameter options are in the commented notes. It should be self explanatory. The Add_Ref options are equivalent to GUI holding down either "Shift" or "Command"
tell application "Adobe Photoshop CS2"
activate
set Doc_Ref to the current document
tell Doc_Ref
set current layer to layer "Layer 5"
delay 0.2
my Select_Layers(Doc_Ref, "Layer 3", "addToSelectionContinuous")
end tell
end tell
on Select_Layers(Doc_Ref, Layer_Ref, Add_Ref)
-- Layer_Ref = Name string of layer to add to selection
-- Add_Ref = addToSelection or addToSelectionContinuous
tell application "Adobe Photoshop CS2"
tell Doc_Ref
do javascript "Select_Layers(); function Select_Layers() { function cTID(s) { return app.charIDToTypeID(s); }; function sTID(s) { return app.stringIDToTypeID(s); }; var desc01 = new ActionDescriptor(); var ref01 = new ActionReference(); ref01.putName( cTID('Lyr '), '" & Layer_Ref & "' ); desc01.putReference( cTID('null'), ref01 ); desc01.putEnumerated( sTID('selectionModifier'), sTID('selectionModifierType'), sTID('" & Add_Ref & "') ); desc01.putBoolean( cTID('MkVs'), false ); executeAction( cTID('slct'), desc01, DialogModes.NO );};" show debugger on runtime error
end tell
end tell
end Select_Layers -
Photoshop CC 14.1 editing paths on multiple layers disabled?
Has editing paths on multiple layers with the direct selection tool been disabled in Photoshop CC 14.1? I can't seem to figure out how to do it now, shift- or command-clicking doesn't do anything. In fact, I can't even click to select individual paths on different layers, something that Photoshop has had forever.
While it was at times problematic the way it was in 14.0 (always selecting multiple layers and having to go into isolation mode to edit just one), there were times when it was useful to edit multiple layers, or even just click between layers with the direct selection tool.
I've seen this documentation on the site, but I'm not sure it's very helpful. Can someone give me some assistance?
Also, what is the custom keyboard shortcut for entering/exiting isolation mode? It is mentioned in the above image, but what actually is it?You can still work with paths the way you could in 14.0 -- just choose the All Layers mode in the Path Selection tool or Direct Selection tool options bar. We added the Active Layers mode for users who prefer to isolate which paths can be selected based on which layers they have already selected in the Layers panel.
To clarify:
-Active Layers mode: Clicking or dragging on the canvas with the vector selection tools will not affect which layers are selected in the Layers panel. Double-click to enter isolation mode is disabled.
-All Layers mode: Works just like in 14.0 -- clicking or dragging on the canvas with the vector selection tools can change which layers are selected in the Layers panel. Double-click to enter isolation mode is enabled.
If you find yourself switching between these two modes a lot, you can add a custom keyboard shortcut that will toggle which mode is selected. In the Keyboard Shortcuts dialog, choose Shortcuts For: Tools and scroll down to the Direct Selection Mode Toggle option. Add your new keyboard shortcut here.
As for your question about isolation mode keyboard shortcuts, this just means that you can assign a custom keyboard shortcut to this command as well (Select > Isolate Layers). -
is it possible to select multiple layers (with layermask) and merge them?
tell application "Adobe Photoshop CS6"
tell current document
set current layer to every layer of layer set "bloem 1-9" of layer set "Bloem"
tell current layer
merge
end tell
end tell
end tellc.pfaffenbichler,
You are right, this is the wrong place to ask.
thanks.
Maybe you are looking for
-
Item level or task level transport request table
Hello Experts, I am developing a report which requires Main transport request and its task request aswell. Now i have got tables for Main transport request , those EO70,E071 . But i need tables for the task request . Can you please suggest . Thanks i
-
How to identify Parked and Posted Documents in GL Line Item Report
Is there any way to identify parked and posted documents in GL Line Item Report S_ALR_87012282? If i tick the parked documents in the further selection tab in the selection parameter, report will list all documents (parked and posted). There is no av
-
Sometimes when I export a Pages file as an ePub it generates the file iTunesMetadata.plist into the zip file. Other times when re-exporting the same file it does not generate the plist. The plist is not declared in the OPF file, which causes the epub
-
Search for files over 100MB fails
I had an issue recently where I completely filled up my internal hard drive on my MacMini. I have take the time to clean it out using HD Cleaner and I now have 69.24GB of free space. Just to make sure there isn't any other junk I can get rid of I a
-
Redirection loop - can't access courses/tracks without quitting iTunes
At times when I'm on the Clemson on iTunes U site, I find myself being directed back to the initial page repeatedly when I try to access a course. This usually happens on occassion after I've been logged in for a while. Upon selecting a course page t