Layers in the file groups, preserving the directory structure
I have a PSD of organized thmebnails using layer groups and I want to export individual layers as files, but keep them in folders which mimic the names of layer group.
For example:
PSD layers palette:
Alpha layer group
Layer 1
Layer 2
Layer 3
Layer Beta Group
Layer 1
Layer 2
Then when I save the layers in files, I want to automatically be able to create a folder called layer Alpha group and put 1 layer, layer 2 and layer 3 as individual files inside. Create a folder called layer group Beta, then do the same with these files, etc.
What is a thing?
Thanks in advance for any help and advice.
This should create the folders out of the paths of documents and save layers as JPEGS...
#target Photoshop app.bringToFront(); main(); function main(){ if(!documents.length) return; var doc = activeDocument; var LayerSetLayers=[]; var lSets = getLayerSets(); for(var z in lSets){ var lset = getChildIndex(Number(lSets[z]), true ); LayerSetLayers[Number(lSets[z])] = lset; } var allLayers=new Array; for(var s in lSets){ var layerSetTemp = LayerSetLayers[Number(lSets[s])]; for(var f in layerSetTemp){ allLayers.push(Number(layerSetTemp[f])); } } for(var a in lSets){ var layerSetName = getLayerNameByIndex( Number(lSets[a])); var outputFolder = Folder(doc.path +"/" + layerSetName); if(!outputFolder.exists) outputFolder.create(); for(var t in LayerSetLayers[Number(lSets[a])]){ selectLayerByIndex(LayerSetLayers[Number(lSets[a])][t]); dupLayers("temp"); var saveFile = File(outputFolder + "/" + activeDocument.activeLayer.name + ".jpg"); SaveJPEG(saveFile,8); app.activeDocument.close(SaveOptions.DONOTSAVECHANGES); } } }; function getLayerSets(){ var ref = new ActionReference(); ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') ); var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1; var Lsets=[]; try{ activeDocument.backgroundLayer; var i = 0; }catch(e){ var i = 1; }; for(i;i' ? true:false; } return layerIndex-1; }; function getChildIndex(idx, skipNested ){ var layerSetIndex = idx; var isEndOfSet = false; var layerIndexArray = []; while(!isEndOfSet){ layerSetIndex--; if( getLayerLayerSectionByIndex( layerSetIndex ) == 'layerSectionStart' && skipNested ){ layerSetIndex = skipNestedSets( layerSetIndex ); } if(getLayerLayerSectionByIndex( layerSetIndex ) == undefined) break; isEndOfSet = getLayerNameByIndex(layerSetIndex) == '' ? true:false; if(!isEndOfSet ) layerIndexArray.push( layerSetIndex ); } return layerIndexArray; }; function selectLayerByIndex(index,add){ add = (add == undefined) ? add = false : add; var ref = new ActionReference(); ref.putIndex(charIDToTypeID('Lyr '), index); var desc = new ActionDescriptor(); desc.putReference(charIDToTypeID('null'), ref ); if(add) desc.putEnumerated( stringIDToTypeID( 'selectionModifier' ), stringIDToTypeID( 'selectionModifierType' ), stringIDToTypeID( 'addToSelection' ) ); desc.putBoolean( charIDToTypeID( 'MkVs' ), false ); try{ executeAction(charIDToTypeID('slct'), desc, DialogModes.NO ); }catch(e){} }; function getIDXs(){ var ref = new ActionReference(); ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') ); var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1; var IDX=[]; try{ activeDocument.backgroundLayer; var i = 0; }catch(e){ var i = 1; }; for(i;i
Tags: Photoshop
Similar Questions
Change the Directory Structure created in the MPZIP file
I'm trying to normalize my projects of Multisim for inclusion in our documentation control system. As I build my project, I have a directory structure that I use. When I include the files in the project, the directory structure is known in the MPZIP file. However, the default value is decompress all the files in the external folder (name of the project). Suite to help,
Hi Doug,.
When you unpack the project, the default is to create a new folder and put it all together because it is unlikely that the new computer will have the same file structure as the computer on which this project of. If you want Multisim to create the same structure as the original file, you can click in the cell under "excerpt from path" and select the old path, if the folder does not exist, Multisim will create a. Unfortunately, you will need to do this for each item on the table.
Standby Redo logs and the Directory Structure in the Backup Site
Hi guru
I just want to confirm, I know that if the directory structure is different, I need to talk about these 2 settings in the file pfile
on the main site:
DB_CONVERT_DATAFILE = 'sleep', 'primary '.
LOG_CONVERT_DATAFILE = 'sleep', 'primary '.
On the secondary Site:
DB_CONVERT_DATAFILE = 'primary', 'sleep '.
LOG_CONVERT_DATAFILE = 'primary', 'sleep '.
But I want to confirm this weather I have to deliver the full path of the directory in the two paramtere above:
as:
DB_CONVERT_DATAFILE = ' / u01/oracle/app/oracle/oradata/sleep ', ' / u01/oracle/app/oracle/oradata/primary.
LOG_CONVERT_DATAFILE = ' / u01/oracle/app/oracle/oradata/sleep ', ' / u01/oracle/app/oracle/oradata/primary.
Second Confusion: -.
After that transfer standby Redo logs creates primary and made to sleep on the foregoing, mentioned the directory structure and after restoring the alongwith primary db backup, that ensures the control file will not affect the journal of physics again placed watch on the above mentioned location.
Thanks in advance for your help
vk82 wrote:
In fact, I create the day before by using the RMAN Duplicate command. but where I am confused is the point if I transfer the backup that i taken the pri on the C:\backup_files path. and after that, I transfer the backups to the waiting on C:\backup_files. After that when I restore it will create datafile and other stuff in another directory I mentioned using DB_FILE_NAME_CONVERT as LOG_FILE_NAME_CONVERT. I think Yes but need your advice during the same period.
Hello
Yes, files should be created under the directory mentioned in the path of the parameters 'db_file_name_convert' and 'log_file_name_convert.
Kind regards
ShivanandaAudio files to blackBerry &; Smartphones Directory Structure
I have my BB Storm hung like a USB device. I have several lecutures and classic
I want to keep on my BB for listening to music. I drag and drop it from my desktop computer
for the BB directory \MusicThe structure of directory on my BB when I go to media > music seems to be:
All the songs<== all="" my="" audio="" files="" are="" here="" as="" audiotrack="" 01,="" audio="" track="" 02,="">==>
Artists
Albums
Genres
Playlists
Musical sampleThe directory structure such that it appears on my Windows desktop:
G:\Blackberry\Music\Bach
\Beethoven
\MiscMy questions are:
(1) how can I move files from my desktop to the BB in a dirctory structure that will make sense as soon as they are on the BB?
As it is now, just gets thrown into "songs".
(2) is it possible to rename the files on the BB, so I can tell apart them?
(3) how create a directory named "Conférences" on the map of support BB?(1) and 3) you can access all that using the media browser.
Screen homepage > Media > menu > Explorer2)
for the regular application of the press: there is nothing of file because filing is done with the ID3tags (info on the files meta). So, if you want to be able to distinguith files, you must set the info in there. Which is easily achievable for the songs to MP3 using Mozilla SongBird or using the tag & rename or iTunes for example.Smartphones blackBerry how to access the directory structure?
It's pretty newbie, for sure, but I can't seem to find a way to access the file structure. What Miss me? TIA
Tim
What exactly mean the file structure? Did you mean Explorer mode of the directory?
Go to the media -> click on Menu -> Explore.
Hello
I need to install FMW on windows with high availability environment using the storage that is shared in the following way:
3 windows 2008 R2 servers servers:
Host1 (Server Admin): gale servers (Server Admin) and EM
host2 (content 1): wecenter content: servers eats ( COE, WCCUI, IBR, CAPTURE)
host3 (content 1): wecenter content: servers eats ( COE, WCCUI, IBR, CAPTURE)
Host3 will be Host2 high availability on each managed as cluster based server
the question is how to design the structure of directory on windows environment, I need best practices
I found in the Linux directory structure "Enterprise Deployment Guide for Oracle WebCenter Content" as follows:
So how do apply on windows
Hello
Thank you! All the best. Be careful in choosing to shared storage.
# If your shared file system accessible via CIFS, SMB or Samba, you may search and/or performance indexing and corruption problems when you use the Verity search engine (not supported in 11g).
# If your file system shared accessible via CIFS, SMB or Samba, you should disable opportunistic locking (oplocks - data client-side caching) of the file system as it might interfere with the normal operations of Content Server. With solutions for storage network (SIN), the performance of the file system may be closely related to oplocking (data caching client-side), which disables the opportunistic locking can cause performance problems. Please plan your architecture accordingly.
Please feel free to correct if you get your answer to other purposes.
Thank you
Amey
Hello
I have the following on my directory structure question when I want to use models of liquids with 'include '.
If I place i.g this code on a model liquid 'layout - test.tpl ".
{% include 'head' %}
< section >
{% block content %} {% endblock %}
< / section >
{% include %} 'footer'
The models will appear without understands it. (On my desk works okay, because that the code compiles through "interprets" and will be shown in plain HTML.)
Directories look like this (within the section of the administration console developer):
Page layouts
-Custom
-includes
... header.liquid
... footer.liquid
-models
... layout - test.tpl
Obviously there is something wrong with my code to work in British Colombia.
The main question is, what is the correct syntax to make it work?
Thank you
Kind regards
Carla
You can use no mixing to compile BC locally. BC is SAAS - Software as a solution, and you cannot compile it and its data locally. Simple as that really.
You can use several file extensions to include in British Colombia. A common set of community is Inc. includes, .tpl for models, for example.
I think the essential lack of your property is your liquid not application of the BC, your use of the syntax is incorrect and you try to develop locally which you will not be able to do.
You can specify the directory structure?
Is there a place within the Muse to specify the directory for the project structure? For example, I created pages for an existing web site that has already implemented directory structures. It would be good to specify the location to put images and can have subdirectories for the uses of the different image (i.e. put slideshow images in their own directory).
Initially, what brought this question, is that our server admin wants specify me a custom jquery script directory. Muse the scripts/1.1 by default. We want to specify a different location.
I realize that I can change the code after export, but it would be better to be able to specify these things in advance to avoid her need to change the code every time there is an export.
Any place to do?
Thank you.
Hello
I'm afraid at this point, it is not possible to have the directories specified in the Muse. Please present this as a feature request in the ideas to the point here, http://forums.adobe.com/community/muse/ideas
Kind regards
Abhishek
CS5 does not record the group sizes and the directory structure
I created a workspace with my specific parameters, but every time I open the default bridge structure of standard directories on the left (Favorites and computer, just those two) and a weird group sizes on the right side as I did not and I'm not leaving when I closed the bridge.
CS5 on Windows 7.
Any suggestions as to what this may be?
You probably have the setting in preferences advanced, the value "launch Bridge on Login" uncheck as in this option, it will only save the changes he close bridge before closing the computer.
Hello
We want only DB (not apps) cloning through PROD rman, step TEST EBS 11i using quick Clone without taking downtime of PROD (i.e. No. BKP COLD).
Source and target are on different servers, different file structure and the different database name.
Kindly let me know the detailed procedure?
Kind regards
RR
You can use this simple method that I am.
Take backup of production with rman:
{
overlap archivelog all;
backup format compressed backupset database tag PROD_FULLBKP ' / u10/PROD1_L0_BKUP_20131125/PROD_DB_set%s_piece%p_%T_%U' filesperset 15;
SQL 'alter database backup controlfile to trace. "
SQL 'alter system switch logfile;
SQL 'alter system switch logfile;
SQL 'alter system switch logfile;
overlap archivelog all;
backup as compressed backupset archivelog all delete input PROD_ARCHBKP format tag ' / u10//PROD1_L0_BKUP_20131125/ARCH_PROD_set%s_piece%p_%T_%U' filesperset 20;
backup format ' / u10/PROD1_L0_BKUP_20131125/PROD_ctl_%T_%U' current controlfile;
}
Move the backup on the test server:
SCP /ftp
Modify the pfile to the test server:
Parameters such as:
db_name
control_files
modify the pfile to match the location of the test server
Add this parameter
db_file_name_convert = ' / PROD_datafile_location/datafile ', ' / test_datafile_location / data ', ' / PROD_datafile_location/tempfile ', ' / test_datafile_location / data.
log_file_name_convert = ' / PROD_redofile_location/ONLINELOG ', ' / test_redofile_location / data ".
Start the DB:
Start the db in nomount:
startup nomount.
Connecting to rman and start to restore:
Auxiliary RMAN.
RMAN > run
{
allocate auxiliary channel a1 device type disk;
allocate auxiliary channels a2 device type disk;
allocate auxiliary channel a3 device type disk;
allocate auxiliary channel a4 device type disk;
data duplicated in the PREPRODUCTION backup location ' / u10/PREPRODUCTION/oraR12/clone_backup/PROD1_L0_BKUP_20131125 ";
}
OR
If you specify time/perform a recovery of time based, like below:
RMAN > run
{
allocate auxiliary channel a1 device type disk;
allocate auxiliary channels a2 device type disk;
allocate auxiliary channel a3 device type disk;
allocate auxiliary channel a4 device type disk;
data duplicated in PREPRODUCTION backup location 'LOCATION_OF_BACKUP', until ' TO_DATE (7 July 2012 09:45 ',' DD/MM/YYYY HH24:MI:SS') ";
}
Concerning
Karim
- Hi all
I use Jdev 11.1.2.2.
My use case is that we have a structure (tree created by programming) as:
Note: The numbers inside "[]" indicates the key (disclosedRowKey) of the line of the node.Fruits[0] ->Grapes[0,0] ->Seeded[0, 0, 0] ->Black[0, 0, 0, 0] ->Green[0, 0, 0, 1] ->Riped[0, 0, 0, 1, 0] ->Unriped[0, 0, 0, 1, 1] ->Seedless[0, 0, 1] ->Black[0, 0, 1, 0]
If I'm deleting the node "Seeded" then the line of the node key "Seedless" should become [0, 0, 0] and respectively for its child node.
But in my application when I delete the "Seeded" node, the keys to total communication is not get altered so that it is looking for the old lines and when he is not able to find what is throw no exception available line.
* Is there a method to change the disclosedRowKeys of the tree?
For the moment, so not only no available line exception, we are the disclosedRowKeys of compensation and adding key to line all of the node to the disclosedRowKeys.
It's a little embarrassing when the tree is large, because it expands all nodes, whenever the new/delete/open operation is called.
It will be helpful if you can give me a solution for this and let me know if you want more details on my use case.
Thank you
Vignesh.Far as I can tell it is a function not implemented and proposed workaround.
cover the existing connections expanded directory structure
Hi all. I am merging two iTunes use directories of media on a much larger storage than before.
The directory more recent, that I used on my MacBook Pro for many years, is full of AAC files.
The directory is older, that I use for backup, is filled with many files exact same song in Apple Lossless format.
What would be the best way to merge these two directories, paste all Apple Lossless to AAC files existing files?
Of course, I don't want to open the directory structure down to the individual files and do it this way. I want to be able to put all the old structure on top of a more recent and have it automatically determine where to put what.
I experimented and discovered that when the files in Lossless format paste AAC files, iTunes keeps all the metadata and uses just that the Lossless files as if they were the same.
I have already asked the hosts to move this topic to the iTunes for the Mac community, where more experienced den iTunes users and can help you.
Google Drive not visible in the tree structure Diadem Navigator
Hello!
In our company, we use Google Apps. Google Reader is a handy tool to use to ensure the instant backup of your files. However, my problem is I don't think Google Reader in the Navigator tree structure, at least not systematically. There were occasions where the drive was visible, but now I can't find. The reader has no doubt exists and is accessible in Windows Explorer. Anyone know what could be the problem and how to fix it (except avoid Google Drive as working space)?
Hi Brad,
Thanks for your suggestion, it worked very well worked.
But before I tried to add a new drive, I've been playing with different modes in the browser tab. I discovered in the mode 'Data bank' with 'My computer' as source (or root), the directory structure has no problem to display Google Reader - works fine.
High til' today, I didn't know there are two display modes available, I've always been using the mode "data search". In the mode "Data search" Google Reader does not appear when you try to navigate to the local C drive. In the 'data' finder Google Reader mode is only available when add you it as a drive in Windows Explorer.
So long story short, if you want to have easy access without problem to your Google Reader in DIAdem, add it as a drive in Windows Explorer.
Nice day
I have a bunch of files that are located on a network computer that has a shared parent directory. I need to create a shortcut to the .exe which are in each directory. There are more than 1000 directories, so the creation of all the shortcuts by right-clicking on each one of them is out of the question. Shortcuts created to point to the original files, even though I'm moving shortcuts to another system. You should be able to run the exe file from the network share from any system on the network. I use robocopy with like to copy the directory structure and all the files in each directory except the .exe due to their size. I wish that the finished product to fit on a USB key so that I can plugin for any system and then run the program pointed to by the shortcut. Basically, it will be a reference in offline mode that can be used on a system that is online.
Thanks in advance for any help.
OK I will propose it. Wasn't quite sure were put it. Thank you
Missing files in $ORACLE_HOME/appsutil directory after upgrade
Hello experts,
Recently, we have improved our 11.2.0.1.0 to 12.1.0.2.0 database we use with Oracle EBS 12.1.3. I applied all the patches for interoperability within the db upgrade.
I regenerated appsutil.zip and copied to the node of the DB. but when I extracted I found some files are missing under appsutil directory (for example, clone). and I am not able to regenerate the environment specific files using perl adcfgclone.pl dbTechStack.
Please find below the directory structure:
==============================
[oracle@xxxxdb1 appsutil] $ pwd
/U01/app/Oracle/product/12.1.0.2/dbhome_1/appsutil[oracle@xxxxdb1 appsutil] $ ls - ltr
drwxr-xr-x 2 oracle dba 4096 Nov 18 11:50 sql
drwxr-xr-x 3 oracle dba 4096 Nov 18 11:50 java
drwxr-xr-x 2 oracle dba 4096 Nov 18 11:50 media
drwxr-xr-x 4 oracle dba 4096 Nov 18 11:50 perl
drwxr-xr-x 3 oracle dba 4096 Nov 18 11:50 html
drwxr-xr-x 3 oracle dba 4096 Nov 18 12:02 on
drwxr-xr-x 3 oracle dba 4096 Nov 18 12:02 scripts
drwxr-xr-x 3 oracle dba 4096 Nov 18 install 12:02
-rw - r - r - 1 oracle dba 14485 18 Nov 12:10 XXX_xxxxdb1.xml
drwxr-xr-x 3 oracle dba 4096 Nov 18 journal 12:11
drwxr-xr-x 2 oracle dba 4096 Nov 18 12:22 model
drwxr-xr-x 3 oracle dba 4096 Nov 18 12:33 bin
drwxr-xr-x 3 oracle dba 4096 Nov 18 12:38 temp
Any help would be appreciated.
Thanks in advance.Thank you for your reply Hussein.
I follow the procedure below, and this has solved my problem.
==================================================================
1. on the Application tier (such as user APPLMGR):
2. connect to environmental APPL_TOP and the source of the file environment.
3. create the appsutil.zip file: 'perl
/bin/admkappsutil.pl.
(This will create appsutil.zip $APPL_TOP/admin/out/appsutil.zip)
4 copy or FTP the file appsutil.zip for the RDBMS $ORACLE_HOME.
5. on the database (such as the ORACLE user) layer:
$ cd $ORACLE_HOME
$ unzip-o appsutil.zip
6. generate the context of database file:
Creating context in UNIX files
$ cd $ORACLE_HOME
$ .
_ .env
$ cd $ORACLE_HOME/appsutil/bin
level of perl adbldxml.pl $ = db =
appspasswd = appsuser
$ cd $ORACLE_HOME/appsutil/bin
$ adconfig.sh =
appspass = contextfile
After you perform these steps, all files and directories are now present.
Thanks, Nishant
Maybe you are looking for
-
Hello my self mukesh kumar. I forgot my password. So what I do... I have pad mini4
-
If I buy a macbook pro, how can I open and burn all my old projects DVD and how to burn cd from my itunes playlist?
-
Where can I download graphics drivers for Satellite A100-599
Hello! Where can I download new drivers for my laptop. I have laptop a100-599. He have nvidia go 7600 graphics card.Then in the nvidia page I can't find drivers for my graphics card. I ask because my drivers are very old (6.12.2006)... Thank you! Kin
-
Newbie needs help on the sequence
Hello I just try to schedule something wih a sequence but it seems that I am quite familiar with the basic things that LabView. I am therefore asking for help. I want to do is start the program wait for the button to be pressed, and then turn on the
-
Phone call from Microsoft Technical Department: C
IM afraid, I got a call on my cell and I didn't know it was fake, I had the opinion of the team, but once he asked my credit card number or account that I said I didn't have a cause im young (15 to turn) and he scram by saying 'Thank you for wasting