Mobile groups within other groups

Seems really basic, but keep problems to move a group within another group (tested CC 2014 and 2015). So the following code results in an error of the argument not comply .move line (I also tried other variants like. PLACEATBEGINNING and. INSIDE):

var doc = app.documents.add (256, 256, 72, "foo")

var group1 = doc.layerSets.add)

var group2 = doc.layerSets.add)

Group1.move (Group2, ElementPlacement.PLACEATEND)

doc. Close (SaveOptions.DONOTSAVECHANGES)

But this way works OK

var doc = app.documents.add (256, 256, 72, "foo")

var group1 = doc.layerSets.add)

var group2 = doc.layerSets.add)

Layer1 var = group1.artLayers.add)

Layer2 var = group2.artLayers.add)

Group1.move (layer2 , ElementPlacement.PLACEAFTER)

doc. Close (SaveOptions.DONOTSAVECHANGES)

No cracking what limits are at stake here? You can do the latter, but then you might need to create and remove the layers of the tmp to use as target.

Yes, it has been a problem, but you can use AM.

var doc = app.documents.add( 256, 256, 72, "foo");
doc.layerSets.add();
var group1 = getLayerID();
doc.layerSets.add();
var group2 = getLayerID();

moveLayerToLayerSet( group2, group1);

function moveLayerToLayerSet( fromID, toID ){
var desc5 = new ActionDescriptor();
var ref4 = new ActionReference();
ref4.putIdentifier( charIDToTypeID('Lyr '), Number(fromID) );
desc5.putReference( charIDToTypeID('null'), ref4 );
var ref5 = new ActionReference();
ref5.putIndex( charIDToTypeID('Lyr '), getLayerIndexByID(toID) );
desc5.putReference( charIDToTypeID('T   '), ref5 );
desc5.putBoolean( charIDToTypeID('Adjs'), false );
desc5.putInteger( charIDToTypeID('Vrsn'), 5 );
try{
executeAction( charIDToTypeID('move'), desc5, DialogModes.NO );
}catch(e){alert(e);}
};
function getLayerID(){
var ref = new ActionReference();
ref.putEnumerated( charIDToTypeID('Lyr '),charIDToTypeID('Ordn'),charIDToTypeID('Trgt') );
var desc = executeActionGet(ref);
return desc.getInteger(stringIDToTypeID( 'layerID' ));
};
function getLayerIndexByID(ID){
var ref = new ActionReference();
ref.putIdentifier( charIDToTypeID('Lyr '), ID );
try{
activeDocument.backgroundLayer;
return executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1;
}catch(e){
return executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ));
}
};

Tags: Photoshop

Similar Questions

  • Copy configuration WLC wlc next in the same mobility group

    Hello

    We have a 4400 WLAN operational controller. We intend to deploy a new controller in the same mobility group.

    How do we configure the second WLC? From scratch, or we could for example use backup configuration of the first WLC (just to change the address-ip/hostname etc.)?

    ARO

    Mikko

    Or the other works, but remember that reproduction should be the new controller to be off the grid to avoid intellectual property conflicts. I like to build from scratch, and then to ensure that the same configuration settings, use WCS to push models. Local on controllers do is ok, if you only have a few, but if you have more that 5-10 you will find keeping all the controllers of the same becomes a management nightmare.

  • 2 5508 a mobility-group autonomous migration

    Hey everybody,

    for some reason, our wlan controllers were built up to be independent instead of beeing a mobility group.

    I would like to change that in order to be able to use all the features of the AH.

    Let me describe our scenario:

    two WLCs 5508 running SW worm. 6

    -same subnet

    -the two are running in mode master controller

    -different host names, ip addresses, etc.

    -all settings for the local wireless networks and AP-groups (except the APs themselves to these groups) are the same

    -altogether now, we manage approximately 100 configured on WLC #1 half rounds, the other half on WLC #2

    I don't know exactly why, but when that adjustment has been installed, someone already configuredHA for each access point...

    for example:

    -AP #1 WLC #1 WLC #2 secondary primary

    -AP #2 WLC #2 WLC #1 secondary primary

    but without WLC #2 configuration for AP #1 knowing that it would be foolish, correct?

    so my question is: How can I do the migration under the best conditions?

    is it easy as:

    -disable the master controller on WLC #2 mode

    -Configure the two WLCs in one group of mobility

    --> WLCs negotiate their configurations for the APs

    and everything is fine after that?

    Comments appriciated. ;-)

    rgeards, Manuel

    First OFF... master controller mode.  Then veriftywhat ap should serve as wlc #1 as the principal and wlc #2 of high school.  Configure the belgo-chinois mobility to have the other wlc and ensure that relief ap is activated.

  • Hotmail security breach quesiton - email addresses potentially incorporated within other addresses so that others can get the email by piracy?

    Addresses are potentially integrated within other addresses on the contacts list - such as when you send someone to your contact list - then others are able to get the email through piracy?

    Hi workingitout,

    Thank you for visiting the Microsoft answers community.

    The question you have posted is bound using Windows Live and would be better suited in the Center of Windows Live Help solutions. Please visit this link to find a community that will support what ask you

  • Mobility Group - without layer 3 roaming

    Hi all

    With a N + 1 WLC deployment, is it possible to disable the layer 3 roaming while allowing the Group feature of mobility on the backup controller?

    based on the configuration of the network, layer 3 mobility is not necessary. However, we need two controllers to exchange all the parameters so that excluded customer info etc. will be synchronized during a failover security scenario.

    I don't want to use ACL as such.

    Thoughts appreciated.

    see you soon,

    Andrée

    Andrée,

    Looks like there's nothing for you to do. Let me clarify my thoughts, so can you tell me if I saw correctly your concern:

    -If the buildings are separated, the case where a laptop can move from the field of application of 1 to cover other WLC WLC will never happen right? And if this does not occur, layer 3 roaming never happen either.

    -If no layer 3 roaming happens, no additional charge affects the WLC.

    Nicolas

    ===

    Remember responses of the rate that you find useful

  • Mobile groups of logic between applications

    Hello Experts, we run two applications of FDM - one test and a live. When a company has completed stable, we charge all mappings to live but have to manually re-create the accounts/groups of logic in the live application. Is it possible to move the accounts or groups of logic between applications because it is extremely laborious having to recreate them manually?

    Thank you

    Nick

    Hi Nick,

    You can go on Workbench, select export and then check the box for groups of logic. Go in the other application, and then import this XML file.

    If necessary, you can go to the XML file and delete all rows that belong to groups, you do not want to import.

    KR. JDeM.

    Published by: JDeM on 6-APR-2011 04:43

  • Mobility groups, failover on different subnets

    I have read up on 5.1 and wonder how and if real failover on subnets is an option.

    I understand controllers mg even customers roaming on different subnets.

    How it works if your main "anchor" isn't alive to replicate the DB entry on the controller off-subnet? Say if die of my local WISN and the backup is in the next State, how the HA will maintain connectivity?

    Thank you!

    Yes, but tha ap will be the new configuration of the WLC. Also, users will get tunnelees to the wlc and be thrown out of this subnet. Then make sure you understand the ssid and ip clients will get when they associate to of different wlc. That should do it.

  • Facebook info is empty. It works on mobile phones and other browsers. What to do. no available on firefox settings troubleshoot pageeshoot

    The facebook toolbar is there, just no info is displayed when you switch. FB works fine on mobile devices and on other browsers. This just started yesterday... until everything was fine.

    If you have mac os x 10.6 with a processor intel latest Firefox 33 is supported in this regard. Please try if you get when you update again, since it will contain many criticisms of fixed security.

  • Satellite L555-10T - unable to connect mobile phone or other device BT

    Im having the same problem. I bought a L555-10T, but I can't connect to any phone or any other bt device. Not even headphones listening or simpel hp pda.

    Is reinstall the only sollution bluetooth files? Cause BT was built in this machine to win 7 64. Its a little weird to have to fix something that was shipped with the laptop.

    What color is your Bluetooth system tray icon (it should be blue/white)?
    If it is red and blue, then check if you really have Bluetooth inside.

  • VMotion and mobile readers of other data stores


    We are new to VMware and wonder if it is possible to move a single of a disk HARD virtual is in a different data store to customers? For example a customer server that has an operating system drive and a data reader. We built a data store of "The OS" on our storage a data store 'Data' and an ISO data store for the operating system and other ISO images. When customer's server has been built the disk 'Data' has been accidentally placed on our database 'ISO '. So is it possible to simply move the drive of customer data from the data bank "ISO" to the court to erase the disc and recreate in the correct correct store? Looking at the vMotion options in the client web it seems that if we pass a 'reader' we go together or have I missed something?

    Hello

    You must click on the button Advanced settings in the wizard for vMotion to the point where you choose the target. You can set a separate objective for each single VMDK (and the VMX file)

    Concerning

  • Slide show does not work within other structures

    Hi all

    I use an incredible slider (amazing slider) to run slide shows on my site. Slideshows work correctly when they are placed within the < body > tag, but if they are put inside a < table > or < div > tag, they may not work properly. Checking each of the external references individually told me that it had to do with .js libraries that were used. Is it possible to adapt these libraries or my site in order to make the code work? Thank you!

    More than likely, you have a small error in the code somewhere. I know not all jQuery slideshow that "must" be a direct child of theto operate, which would limit their usefulness to the point of making them without effect.

    Please post a link to your page of problem so people here could take a look at what's going on in your code.

  • link to places within other pages on the same site

    I was wondering if there was a way to Muse to link to a specific place on another page of the same site.

    I know that I can link between pages, but I could use being able to make a link to a place on a specific page of another page, just as you can do in an HTML document with labels, when you click on something in the top of the document and that need you for a particular space on this page.

    Hi, dress,

    In addition to the above suggestion, please find below the link to a short video on how to add links to a specific point in the middle of a page or design:

    http://TV.Adobe.com/watch/Muse-feature-tour/Muse-create-anchor-links/

    Let me know if you need additional assistance.

    Concerning

    Sonam

  • hittests for MCS within other mcs

    I have a hittest code that is supposed to prevent a mc to move into a space occupied by another mc. The thing is the first mc is inside another mc and for some reason the hittest is not save. The code I use is below. Is it wrong somehow, or is at - he got another code I should use?

    Key.addListener (keyListener);

    this.onEnterFrame = loopF;

    function loopF() {}

    If (border.hitTest(player.playerHit._x+(player.playerHit._width/2), player.playerHit._y, true)) {}

    Player._x = speed;

    }

    If (border.hitTest(player.playerHit._x-(player.playerHit._width/2), player.playerHit._y, true)) {}

    Player._x += speed;

    }

    If (border.hitTest (player.playerHit._x, player.playerHit._y+(player.playerHit._height/2), true)) {}

    Player._y = speed;

    }

    If (border.hitTest (player.playerHit._x, player.playerHit._y-(player.playerHit._height/2), true)) {}

    Player._y += speed;

    }

    }

    It is not wrong, but you probably want to use something like:

    border.hitTest (player._x+player.playerHit._x+player.playerHit._width/2,player._y+player.pl, ayerHit._y, true) {}

    etc.

  • How place you text within other text?

    I'm looking for type a big word and then fill it with a paragraph of text. In this case, a single 400pt word I want to fill it with 12pt text (and then remove the original Word so that the paragraph of the text of the word forms). Basically something a bit like that , but I don't need the text to be oriented in different directions or distorted. Basically what I think I have to do is to find a way to make the text box tool to work with the contours I create my text. I would use a mask, but which would cut the words I need to stay intact and readable. In my view, this technique is called micrograph, but google has no increase a lot of information. It is good if the text is a bit distorted, as what can happen with an envelope distort (which I couldn't get also works very well), but not too much because we work with a small enough text.

    I am able to use the tool without any error text box, the path is dedicated to the perheps was not released. you will also need to ungroup the objects after the creation of contours. To keep the sets of words, I used following steps:

    -Select all the paths that are created after dissociate and release compound path

    -Deselct paths that make holes in these letters

    -Create threaded text

    -Now select the paths that make holes in the letters

    -Change the fill color of these background paths

    -Create the skin of these paths

    In this way, I could text tyep in the word.

  • Requirements of the mobility for the comments of anchor WLC group

    Hello-

    I always assumed that you cannot create a tunnel between a local WLC and an anchor WLC comments that are in different groups of mobility.   However, I was told recently (no more details) that it is possible.  So I put to test this.

    I'm trying one of my local WLCs SSID comments point to an anchor of WLC comments in a different group of mobility.   I have a forthcoming maintenance window and I'm looking to anchor clients on a campus at anchor WLC on the campus on the other for the customer service does not lower.   Each campus is that it's mobility group.   Trying to set up I went to the "mobility anchors" screen for the SSID guest on one of the local WLCs and I cannot add anchor WLC on campus on the other because it is not in the drop-down list.  This is because it is not in the same mobility group.   So my question is how do customers of anchor across a local WLC in a group of mobility to a WLC anchor in another group of mobility?

    To me it seems not possible without major configuration changes.   I don't want to reconfigure / rebuild mobility groups.

    Thank you

    Chuck

    Not only is it possible, that I recommend. However, you can be confusing to some concepts.

    The mobility group is different from that of the field of mobility.  Generally, I am referring to group mobility as these WLCs with the name of the default mobility group and the field of mobility than the entire list of mobility (where you can set up to 72 controllers belonging to various groups of mobility).

    The point is that GroupA and WLCs of to WLCs 1-10 11-20 are GroupB, anchor to work, you at least need to add anchor to the mobility list wlc abroad and vice versa.

    If you notice, when you add an entry of mobility to the list, it should ask you for mobility group. If you leave this field empty, it must default to that of the WLC, but on controllers GroupA, you could define GroupB controllers (and specific group b) and then you should now have the mobility between your controllers and configuration of the anchor will be your anchor in the menu...

    Who is?

Maybe you are looking for