Move the group to another group

Hi all

Can help to create a script to move the group named "Shine" in another group named "shine everything."

Thanks in advance.

Snapshot show for a better understanding.

set.jpg

Does that help?

// move groups of a certain name into group of a certain name;
// 2015, use it at your own risk;
#target "photoshop-70.032"
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var name1 = "Shine";
var targetName = "Shine All";
var targetGroup = layersWithName (targetName);
// if exactly one group qualifies;
if (targetGroup.length == 1) {
// collect groups;
var theGroups = layersWithName(name1);
// process groups;
for (var m = theGroups.length - 1; m >= 0; m--) {
  moveTo(theGroups[m][1], targetGroup[0][1]);
  };
}
else {alert ("too many or too few groups called »"+targetName+"«")}
};
////////////////////////////////////
function layersWithName (thisName) {
// the file;
var myDocument = app.activeDocument;
// get number of layers;
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
var applicationDesc = executeActionGet(ref);
var theNumber = applicationDesc.getInteger(stringIDToTypeID("numberOfLayers"));
// process the layers;
var theLayers = new Array;
for (var m = 0; m <= theNumber; m++) {
try {
var ref = new ActionReference();
ref.putIndex( charIDToTypeID( "Lyr " ), m);
var layerDesc = executeActionGet(ref);
var layerSet = typeIDToStringID(layerDesc.getEnumerationValue(stringIDToTypeID("layerSection")));
var isBackground = layerDesc.getBoolean(stringIDToTypeID("background"));
// if not layer group collect values;
if (layerSet != "layerSectionEnd" /*&& layerSet != "layerSectionStart"*/ && isBackground != true) {
var theName = layerDesc.getString(stringIDToTypeID('name'));
var theID = layerDesc.getInteger(stringIDToTypeID('layerID'));
if (theName == thisName) {
theLayers.push([theName, theID)
}
};
}
catch (e) {};
};
return (theLayers)
};
////// move //////
function moveTo (theLayer, theGroup) {
// get index;
var ref = new ActionReference();
ref.putIdentifier( charIDToTypeID( "Lyr " ), theGroup - 1);
var layerDesc = executeActionGet(ref);
var theIndex = layerDesc.getInteger(stringIDToTypeID("itemIndex"));
// =======================================================
var idmove = charIDToTypeID( "move" );
    var desc5 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref4 = new ActionReference();
        var idLyr = charIDToTypeID( "Lyr " );
        ref4.putIdentifier( idLyr, theLayer );
    desc5.putReference( idnull, ref4 );
    var idT = charIDToTypeID( "T  " );
        var ref5 = new ActionReference();
        var idLyr = charIDToTypeID( "Lyr " );
        ref5.putIndex( idLyr, theIndex );
    desc5.putReference( idT, ref5 );
    var idAdjs = charIDToTypeID( "Adjs" );
    desc5.putBoolean( idAdjs, false );
    var idVrsn = charIDToTypeID( "Vrsn" );
    desc5.putInteger( idVrsn, 5 );
executeAction( idmove, desc5, DialogModes.NO );
};

under the direction

Tags: Photoshop

Similar Questions

  • I want to cut out spaces (bottom) of a ramp, so when I move the ramp to another location, you will be able to see through the cutting of the spaces and see the new view behind the railing

    I want to cut out spaces (bottom) of a ramp, so when I move the ramp to another location, you will be able to see through the cutting of the spaces and see the new view behind the railing

    marvwfactor

    What version of Premiere Elements and on what operating system works - it?

    Video or?

    Waiting for more information, you can apply ChromaKey (an effect of overlay of the effects of the program) to convert the solid color background areas in transparency. The success will depend on the nature of the solid color and how his strong colorrelates to the rest of the colors in the image.

    Please review and consider and provide more information, so that we can give you an answer with substance.

    Thank you.

    RTA

  • Move the group between several windows tab

    Is it possible to use the function "Move to the group" from the contextual menu to move a tab from one window in a group of existing tab to a different window?

    By default, Firefox does not show me my groups of a window in the other window.

    Thanks for your help!

    Robert

    guigs2 said

    Use tab groups to organize a large number of tabs is what I have, and that's what I could find in Add ons: https://addons.mozilla.org/en-US/fire.../?src=search
    It seems that currently, it is not a feature of the right click menu in Firefox.

    Thank you. It seems that this feature will never be made the devs plan to remove the feature of Panorama of the heart.

    Bugtracker: https://bugzilla.mozilla.org/show_bug.cgi?id=836758

  • How can I move the OS to another drive.

    I have a HP Pavilion Elite HPE with Win7 Pro as my OS and a single 1 TB HD.  Is it possible to move my C and D partitions to a smaller drive?  If so, how do I.  (I realize I have to buy another drive... (LOL).

    Thanks in advance for any help/suggestions.

    C   ;-)

    cindy906 wrote: I have a HP Pavilion Elite HPE with Win7 Pro as my OS and a single 1 TB HD.  Is it possible to move my C and D partitions to a smaller drive?  If so, how do I.  (I realize I have to buy another drive... (LOL).

    Thanks in advance for any help/suggestions, C ;-)

    Hello cindy906, you should be able to add a smaller hard drive to your system and use the restore disks HP recovery that you should already have, while leaving the current hard drive installed.

    There is a question that you would need to know. If you leave the current hard drive cables connected and use the Recovey HP restore to reimage the new hard drive, when you start the installation of the Windows operating system, the installation program (System partition) can be changed on the current hard drive. If you install Windows7 SP1, the Boot Manager will be changed and make the current version no longer starts.

    Windows 7 creates a configuration (System) partition when it installs hidden. When there is already a system on a system partition, Windows 7 will be find and replace it with the new OS when you update to Windows 7 SP1.

    Once the new disk has been reimagee with the game to restore HP Recovery disks, and the operating system has been installed, you can then reconnect the cables on the current hard drive and use it as a backup drive or delete it if you prefer.

    You would not be able to move the current hard disk to another system, for legal reasons and problems of compatibility with the already installed drivers for the HP computer, unless you formatted the hard drive and deleted the C: and D: partitions and the hidden partition of 100 MB.

    If all three partitions are formatted, the reader could be wiped clean and could be used on another system.

  • Move the system on another drive partition.

    I have 4 hard drives on my Windows 7 system.  Readers 1 & 2 are defined in a RAID 1 configuration (labeled Disk 0 disk c).  Disc 3 (labeled Disk 1 drive F :) is were the 100 MB Partition reserved system resides.)  This drive has the SMART errors.  How can I move the system reserved on a healthy disk partition?

    Hello

    Thanks for posting your question in the Microsoft community

    After the description of the question, I understand that you want to move the different system for the drive partition. I'll be happy to help you on this question.

    1. What is the accurate and complete error message you get?
    2. What is the letter of the drive for this partition not formatted?

    Let us try the following steps.

    If the 100MB partition not formatted the disk '1' before the C: drive, follow the below mentioned steps.
    a. create a repair disk.
    Create a system repair disc:
    http://Windows.Microsoft.com/en-in/Windows7/create-a-system-repair-disc

    b. create a new simple partition.

    c. assign a drive letter (ex: 'Z').

    d. copy a folder and two files to the system partition reserved current (drive '0')

    Boot

    Bootmgr

    BOOTSECT. BAK

    e. remove the drive letter of the partition 'System Reserved' old ('0' drive)

    f. mark the new "System Reserved" boot partition as "Active".

    g. restart the computer and check if his boot to the desktop.

    h. If the computer does not start, then using the disk repair repair startup.
    Startup Repair: frequently asked questions:
    http://Windows.Microsoft.com/en-in/Windows7/Startup-Repair-frequently-asked-questions

    i. If able to boot to the desktop successfully, remove the old "System Reserved" partition ('0' by car)

    After trying the steps above suggested, giving us the results.

  • Is it possible to move the files to another user in Vista?

    so I was wondering if I can move all my files and applications on another user? is it possible or not?

    Hi andylam123,

    Yes, you can move your files and settings to a different user account.

    Refer to this article for more details:

    Difficulty of a corrupted user profile

    Note: Ignore the title of the article. You can follow the procedure to copy the files successfully.

  • Requests for comment move the cc on another partition?

    Hello everyone,

    I would have liked to move all of the cc to partition applications another.

    At installation, the program allows me at any time to indicate another partition or another disc, on which I would like to install the software.

    4 cc applications take me more than 3 GB on the partition dedicated to the operating system (SSD drive) and lacking space.

    Thanks in advance for any proposal and soon

    Germain Delsart

    Hi, Germain,.

    I think you want to change the installation location of the CC apps.

    Please launch the desktop creative cloud application > click the gear on the top icon right > select preferences > under the creative cloud section, you can specify the installation location.

    Reference: installation directory change request

    Kind regards

    Sheena

  • Move the data to another file system file - affects on the day before in a DG?

    If I want to move a file of data to another file system, because the current file system is full, I'd take the tablespace offline and unix, copy the data file to the new location and rename the tablespace to the new location.

    How would behave the night before in a dataguard environment? The DOF would apply, but could I take a tablespace offline space, waiting for read-only copy the data file on the unix sleep?

    Hello;

    I think that this would be ' rename a Datafile in the primary Database.

    If you don't rename the data corresponding to the watch system and then attempt to refresh the database backup control file, the standby database will attempt to use the data file renamed, but it will not enter into it. (the change is not propagated to the database pending)

    See Section 8.3.4 rename a data file in the primary database in the Document Oracle B14239-05 (Oracle10)

    This is a step by step on how to handle this.

    OR

    Chapter 9.3.4 rename a data file in the primary database in Oracle Document E10700-02 (Oracle 11)

    Best regards

    mseberg

    Published by: mseberg on December 1st, 2011 09:15

  • How to move the VM to another storage without Virtual Center

    Hello-

    I read some other posts on the moving a virtual computer to another storage without Virtual Center and there is a good post, but I have different problems, because my situation is a little different.

    My VC is currently stored on a local storage of the ESX servers.  It is the virtual machine that I want to move to a shared storage.

    You guys can help me with some of the steps I can take to move this shared storage better?

    I'm not too familiar with Linux, so even copy files etc, I'm not sure how to do it.

    TIA!

    Luke

    You are welcome!

    Now you can help us.  Please consider awarding points for 'useful' or 'right' answers

  • How to: move the taskbar to another facet of the screen

    Original title: How can I get my Start menu on the top of my window is open from my XPwindow it is now on the side

    How can I get my Start menu on the top of my window is open from my XPwindow it is now on the side

    On Saturday, February 25, 2012 15:09:45 + 0000, GINODISANTIS wrote:

    How can I get my Start menu on the top of my window is open from my XPwindow it is now on the side

    Sorry, but I'm not sure what you asking on the subject. What is the taskbar
    you want to move?

    Although by default, the taskbar is displayed on the bottom of the screen,
    It can be on any of the sides on what you prefer. To move any
    side to side, simply click an unused portion and drag
    where you want it. Don't forget to click inside it, not on the edge.
    by clicking on the edge and dragging will resize not move.

    If it does not move, it can be locked. In this case, right click on it
    and uncheck "Lock the taskbar", then try again.

    Moreover, with the screen monitors wide today, I prefer the taskbar
    on the left or the right of the screen. I think that allows a better
    use of real estate than have it at the bottom of screen.
    Ken Blake, Microsoft MVP

  • I accidentally a license of an image while trying to move the preview to another library. Is there a way to unlicense image?

    The image wasn't I just wanted another library.

    Hi TayMilo

    Please contact the support Chat assistance - contact customer service

    Thank you

    Bev

  • Move the vCenter to another cluster... How?

    We rotate the camera 5.5.0 vcenter and need to move from a cluster with ESX 4.1.0 hosts in a cluster hosts ESXi 5.5.0.  Two clusters are in the same data center, but no space for common storage.

    We have migrated all the old cluster to the new VM using vMotion.  It is now time for the vCenter himself.

    How should I go about this?  Some downtime for vCenter is probably inevitable.

    Thank you... Lyle

    With the help of Support, here's what I did:

    -a clone of the vCenter VM for the cluster target & storage, but do not start the new virtual machine

    -change the properties for the new virtual machine so its MAC address is the same as the old VM

    -stop vCenter with its interface web admin

    -with vSphere client connected to the source host, stop the guest OS (suse) of the former VM

    -with customer vSpere connected to the destination host, turning on the new virtual machine

    Thanks to all for the comments... Lyle

  • Move the files to another folder

    I have lightroom five on my macbook pro. My files are on an external drive. I can put photos, that I can't do is move files in different folders.

    What error messages do you, if any?

    It's important for drag-and - drop: once you have selected some images (images become light gray), you click and drag on the part of the image, not the framework.

  • Security move the table to another tablespace

    I would like to pass on my table to a different tablespace by using the statement:
    ALTER TABLE table_name move tablespace new_tablespace;

    I am interested in what happens if someone wants to select or modify some data during the process of alteration (on the table table_name). I tested on the database of test (without a users) and everything was OK, but I wonder what happens if someone edit or select data. Could you recommend me how to protect this table? Change in playback mode or change the database in the mode of restriction? Thanks for the tips.

    Hello

    The table is locked automatically during the MOVE ALTER TABLE. If other sessions can still perform selects, but no changes can be made during the DDL.
    Don't forget to re-create the indexes on the table later.

    Concerning
    Maurice

  • How do I move the dashboard to another space?

    I recently got a new iMac, and after the migration from a Time Machine backup, my widgets now have their own space.  On my Mac Pro widgets open in every space, and I want to make it work this way again.  But it is not possible to remove the space from the dashboard (not), and I can't find a way to change the dashboard to work in each space (there is no popup Options that I can see).  I want widgets to pop up on the current screen what he can be, so I can see what's behind the widgets.  For example, if I appear a calculator and see a list of numbers in a document at the same time.  I don't WANT widgets in their own space with just a white background.  How can I do?  Or is - it is no longer possible with El Capitan?

    Go to system-> Mission control preferences and set the dashboard for "like"recovery."

Maybe you are looking for

  • Satellite 320CDS: can I install Win98SE and Linux Knoppix.

    Hello I have an old book 320CDS satellite, with only 32 MB of RAM, but it still works fine with Windows95B (4.00.950.b).I updated the BIOS to version 8. I have three questions. 1. can I switch to Windows 98SE? I have a MS Windows98SE CD, but it isn't

  • where FF stores history on hard drive?

    ...................

  • Where to buy the Qosmio G30 in Greece?

    Hi.I am from Greece and l would tell me one online shop buy qosmio g30, because authorized service provider told me that he doesn't know if he's bringing her to the Greece.Thanks and sorry if I made a mistake in English.

  • AMD overdrive

    What will be, if any, problems when overclocking my computer with AMD Overdrive? I will win any performance in video editing?

  • May not exceed the sign-in after re-installing MS-money

    I reinstalled MS Money 2006 under Windows 7 but cannot exceed the sign-in. When prompted I went to my Microsoft account to change my password but still the message that my login information cannot be verified. Does anyone have an idea? I have my fina