Get all the layers and apply to other documents

Hello everyone,

I'm copying all layers from one document to the other. But just copy paste is not enough for several reasons (root document may already be closed, copy at a time when the new document is not open yet,...).

This means that I have to remember all the layers and use them later.

At the moment I am sth. Like this:

---------------------------------------------------------------------------------------

public static std::vector < PIActionDescriptor > layeractions;

Sub testGet()

{

Result PIActionDescriptor = NULL;

numLayers Int32;

SPErr error = kSPNoError;

DescriptorTypeID typeID = 0;

Int32 docCounter = 1;

error = PIUGetInfoByIndex (docCounter,

classDocument,

keyNumberOfLayers,

& numLayers,

(NULL);

If (numLayers > 0)

for (int32 layCounter = 1;

layCounter < = numLayers & & error == kSPNoError;

layCounter ++)

{

error = PIUGetInfoByIndexIndex (layCounter,

docCounter,

classLayer,

classDocument,

0,

and result,

(NULL);

layeractions.push_back (result);

}

}

Sub testSet()

{

SPErr error = kSPNoError;

Result PIActionDescriptor = NULL;

for (auto & it: layeractions)

{

error = sPSActionControl-> Play (& result, eventMake, he, NULL);

}

}

---------------------------------------------------------------------------------------

So what I'm doing, open a doc with some layers. Then testGet(), open new document then testSet().

But bench always puts "the command 'Make' is not currently available." and error = - 128.

Hope you get what I'm trying.

Thanks for any thoughts!

Who's going to be a difficult path to travel to this topic. Even if you can get all the properties of the active document and the layers within the document, you have not dealt with pixels on a normal layer data. You will need to save this broad as well. And for dynamic objects and linked smart objects... you have a job to do. Any topic of a document is not capable 'get '.

Trying to cope with this: "document might already be narrow" would be almost impossible IMO.

Remember, the source document, which is now closed I now want to copy. Then you can do:

1. open closed source document. (Or make it more if it is already open)

2. for each layer in the source document

a. Select the layer

b. copy of the document target

3. close source document.

The Get accessor routines are not for 'read' directly. You must get the interesting bits of information on and then use the game code that you found using listener.

Tags: Photoshop

Similar Questions

  • Satellite L500 - can I get all the instruments and the driver for Win 7?

    good then I got this Toshiba Satellite L500 with Intel... its installed with Windows Vista Home Premium...

    The first problem I had with it was that the Toshiba programms stoped working and reformatting the drive and put it back, then I 'solved' this part...

    Now, the second is that RUNDLL32.exe stops working after that the pc started motor pump and the computer stops responding or becomes slow...
    I tried to format the drive but is still of problems.... more the toshiba programms are defective...

    After research I did his seems to have a place of Vista so I asked of upgrade me to windows 7 and then I also had a few questions?:  :|

    1. is it possible to get all the programms Toshiba Windows 7, flash cars, webcam etc.

    2 does windows 7 run all the programms vista only?

    3 - is so great that I heard?

    Thank you! {for your help, I really need some help... thank you: 8}

    Hello

    I put t know why you have software problem with the Vista OS preinstalled but my Toshiba tools and utilities work fine! Once the control buttons stopped working, but I could fix it reinstall the VAP.

    Back to your question:
    Yes, you can get all the Win 7 drivers and tools for the L500 series. Why not?
    If you would take a glance on the Toshiba page you would find all the stuff for download!

  • I will get all the protions and additional programs when I download Photoshop CS3 Extended

    Will I get any form of extended programs Photoshop CS3 download because it does not have the long version and should I disable or uninstall the product I installed on my drive before you download it from the website?

    Yes and if you want to uninstall, disable (help > deactivate) first.

  • Is it possible to copy all the layers in the layers panel and paste them in a new document?

    The content of each layer will be different on each document so I don't want to copy. I have 12 documents to be used in a calendar and I want all the layers as well as their names and colors to be the same in each document. I already have all the pages designed and built, but personal information is to be added, and I want each of them to match all the others.

    Basically, all I want to do is to copy the contents of the layers panel and past in each of the other documents.

    I just create a page at the end of the document w / layers and on this page, add an item by layer. Also, if you have 15 layers, drag the small fifteen frames on the page and the layer icon to assign each image to another layer.

    Then in the Pages panel menu, choose move Pages. Choose this 'page of layers' to move to your receiving document (another of your calendar documents), Destination: end of the Document.

    The receiving document will get all the layers. Remove all items (15 views) on the extra page and the layers remain.

    Next time you make a schedule, you should check the add-on for InDesign Calendar Wizard. You will cry all the time you wasted it making manually ;-(

    Home Calendar Wizard

    Anne-Marie

    InDesignSecrets.com

  • How do you manage the layers and objects and to rear of the other

    I do not understand how it is possible to have many objects on the stage and be able to handle the motion tweens with each of them, but ALSO to manage the objects are in front and behind them. I have a boot animation and there are many ongoing action, and there are times where I need my guys to be in front of the objects, and the time when they need to be behind.

    I do not know how to handle things regarding the layers and the movements in a way so I can get the items in the order that I need them to be (as the element on which passes in front of the other).

    Someone at - it advice or a way that I can manage my objects and queries and be able to classify them on the stage so that I can arrange things how I need them to be investment and who should be in front of the other objects?

    Yes, if you want to animate 20 items, you must put each item in its own layer. There are a number of ways to make it a little less tedious. For example, if you place each element on the stage, in the same layer, and then name each instance, you can then select all the elements on the stage and then select the Edit menu and then the timeline and finally distribute to layers. This will place each item in a layer newly created at the same position on the stage and then name each layer to match the name of instance for this element.

    To change the Z-order of any given scene element, you can use a number of different methods. One method is to use Actionscript as I mentioned in my last post. ActionScript is the best method if you need to be able to respond to user input and show the changes that cannot be built in animation since the beginning. If you're just showing an animation preset, you can use a number of methods different timeline based.

    In your example, if you want to have a figure to move another object on the stage, you can do that by creating two layers of the same object. One on one with the figure between the two. So that you have the object to move around both in front and behind, the figure. When you want to display the number in front of the object, set the object in the layer that is on top is not not visible. Then you will see only the object that is at the origin and the figure in front of him. How you go about changing the visible property or the alpha property, of this object. You can use keyframes in the timeline panel or the simple ActionScript.

    You want to find a small pool in the basics of Flash or take a book to guide you. There are a number of very good tutorials on the basic available free animation: http://www.gotoandlearn.com, or at a cost: http://www.lynda.com .

  • The ' OK and apply "buttons disappeared after I changed the DPI and made too big screen. How can I get back them? I can change the DPI back but I can't OK it without the buttons!

    How to restore the ' OK and apply "buttons to change the DPI back to original size

    How to restore the ' OK and apply "buttons to change the DPI back to original size

    1. you can try just pressing the entry instead of the apply/OK key. It should work normally.

    2 If #1 does not work, go to safe mode and the CIO adapt them again.
    How to get in Mode safe:
    Shut down your computer > turn it back on and immediately and repeatedly tab key F8 until you see a black and white screen. Use the up/down arrow and select Mode safe for the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • I have the HP envy window8 and monitor AOC 22 "Led. I can't get all the colors to be displayed.

    Original title: color monitor

    I have the HP envy window8 and monitor AOC 22 "Led.  I can't get all the colors on the screen. The colors are bright that I receive, but can't get the yellow, green, purple. etc. I followed in the Help menu for calibration of the colors without success by the buttons on the monitor in windows.

    Hi Ellen,.

    (a) you use HP ENVY laptop or desktop computer?

    (b) what is the model number for HP ENVY and monitor AOC?

    (c) what kind of connector do you use to connect the monitor?

    (d) have you tried to use the other cable and check if works?

    You may experience this problem if the connections between your computer and your monitor is loose or if the drivers of graphics cards is corrupted. Try these methods and check if that helps:

    Method 1: I suggest you to update the latest drivers for the graphics card for Windows 8 and check if it helps:

    http://WWW8.HP.com/in/en/support-search.HTML?tab=1#/qryterm=HP%20envy&SearchType=s-002

    Method 2: Visit the COA Web site and install the latest drivers by selecting the drivers of the AOC monitor for your model and see if it helps:

    http://www.aocindia.com/service_manual_monitor.php

    See the documentation for your monitor and see if you can find the menu to restore default settings. If the problem persists I suggest you to contact the manufacturer (AOC) for assistance.

    Also refer to this article: get the best display on your monitor

    http://Windows.Microsoft.com/en-in/Windows-8/get-best-display-monitor

    Hope this helps, if you need help on Windows let us know we will be happy to help you.

  • I created signatures and look OK in preferences, but I can't use them.  It worked once, but I don't know how or why.  I don't get all the dialog boxes.

    I created signatures and look OK in preferences, but I can't use them.  It worked once, but I don't know how or why.  I don't get all the dialog boxes.

    Thank you.  I read the article you quoted, as well as others, several

    times.  Creation has been problem free.

    My problem is that AID has never said, that I could find, HELP or

    TIP to search for a tool called certificates.  I searched,

    Signatures, Signatures Digital and many others but they lead no where.

    I think that HELP need HELP.

  • Is it possible to get clip names and additional descriptions (and other metadata) in a report? The number, .xls or some other document available?

    I have about 12 tablespoons of images recorded on several projects. Each clip has a description added to it. I'm trying to find a way to search for a specific content easier. Since so much information was laboriously on slot form of description of metadata, it would be great to be able to use it. Which brings me to the question -

    Is it possible to get clip names and additional descriptions (and other metadata) in a report? The number, .xls or some other document available?

    Thank you!

    Karim.

    one way is to highlight all the media/bins in the project Panel and from the menu, export the batch list. This will create a .csv text file.

    There is also this option in another post, but do not know how it works. First Pro CC - how can I export metadata custom in Excel?

  • I use 5s iPhone and upgrade to iOS 9.3.1 but he can't get all the features...

    I use 5s iPhone and upgrade to iOS 9.3.1 but he can't get all the features...

    What features Miss do you?

  • I reinstalled the air combat Simulator 3 but he can't play. He gets at the beginning and then freezes. I've got shield deluxe antivirus 2009. He has not done this with the 2008 deluxe version of shield. Yet, I can play any other game.

    I reinstalled the air combat Simulator 3 but he can't play. He gets at the beginning and then freezes. I've got shield deluxe antivirus 2009. He has not done this with the 2008 deluxe version of shield. Yet, I can play any other game.

    Hi gullo56,

    Welcome to Microsoft Answers Community Forums.

    To help you better I would ask,

    a. If it functioned very well under Windows 7 before?

    ·         I suggest you to disable your firewall security software and check if you are able to play the game.

    From the link below, what I discovered is Microsoft Flight Simulator 3 is not completely compatible with Windows 7, but I would suggest that you follow the steps below to help troubleshoot your problem.

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/search.aspx?type=software&s=combat%20flight%20simulator%203

    1. as Microsoft Combat Flight Simulator 3 is supported by Microsoft Windows Vista to function normally, I suggest you run this program in Vista compatibility mode in Microsoft Windows 7.

    For information about how to run a program in an earlier version of Windows, visit the link below,

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    2. you can also try to reduce the hardware acceleration and check if it solves your problem,

    1. Click Start-> Control Panel-> appearance and personalization.

    2. under customization, click on adjust the screen resolution.

    3. in the display settings dialog box, click the Advanced Settings button.

    4. in the monitor Properties dialog box, click the Troubleshooting tab.

    5. click on the change settings button.

    6. in the Security dialog box, click on continue.

    7 move the hardware acceleration slider to none to reduce or turn off video hardware acceleration.

    8. click on OK.

    9. restart Windows.

    Hope this information helped you.

    Kind regards

    Arona - Microsoft technical support engineer

    --------------------------------------------------------------------------------------

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • What is an application error, wmiprvse.exe? It keeps popping up all the time and its quite annoyinng. Can I get rid of him?

    What is an application error, wmiprvse.exe? It keeps popping up all the time and its pretty boring. Can I get rid of him?

    What this has to do with Windows Media?

    Rwillet,

    Thank you for visiting the Microsoft answers community.

    The wmiprvse.exe file is otherwise known as Windows Management Instrumentation.

    In research, I found a few articles that might help you:

    Windows wmiprvse.exe related errors

    Wmiprvse - wmiprvse.exe

    You can run your scan virus and if necessary, perform a System Restore to a point prior to the error occurring.

    I hope this helps.

    Lisa
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • My screen on my laptop is amplified and can not get all the info on the screen... How to make all this fit?

    My screen seems to be enlarged and cannot get all the info on the screen... How to make all this fit?

    Go to the website of the manufacturer of your laptop > drivers and downloads Section > key in your model number > look for the latest Vista drivers > download/install them.

    http://Windows.Microsoft.com/en-AU/Windows-Vista/change-screen-resolution

    Change the screen resolution

    Screen resolution refers to the clarity of the text and images on your screen. At higher resolutions, items appear sharper. They appear also smaller, so more items adapted to the screen. At lower resolutions, fewer items adapted to the screen, but they are larger and easier to see. At very low resolutions, however, images may have serrated edges.

    See you soon,.

    Mick Murphy - Microsoft partner

  • I can't get all the connections. HP Pavilion laptop g6 was working fine and then just stopped to say the connections of the error.

    I can't get all the connections. HP Pavilion laptop g6 was working fine and then just stopped to say the connections of the error. I tried everything I could but to no avail.

    Hi Sheryl,

    more information is needed for a better response from the community.

    Here's a generic convenience store to try:

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    B Eddie

  • How can I get rid of the square with the time and date in which pops out all the time and also the thing aside

    Would like to know if there is a way to get this huge place with date and time to turn off my computer and also the side thingy that comes out all the time and the date and time... it is frustrating to do something on my laptop and all of a sudden here they come out and I can not do a thing until I get them to go back whence they came there at - it a path to delete or if they are not all the time I don't really care for windows 8... Windows 7 was fine with me... not sure what to do thank you for your help frustrated

    What a kind screensaver which is scheduled to start after one minute of inactivity?

    What has happened since the first day?

    Another program or process is causing the problem, what happens if check you mode safe and a clean boot to see if you can find the cause?

    How to start Windows 8 in Mode safe
    http://www.bleepingcomputer.com/tutorials/start-Windows-8-in-safe-mode/

    How to perform a clean boot for a problem in Windows Vista, Windows 7 or Windows 8
    http://support.Microsoft.com/default.aspx/KB/929135

    If you test with another Windows user, rather than your current user, you have the same problem?

    Any chance of linking to, or provide a screenshot of what you see?

    How i: post a screen shot on this forum?
    http://answers.Microsoft.com/en-us/feedback/forum/feedback_other-na/how-to-insert-images-in-MS-answers/94a5cb36-A21F-4A6A-B266-611cf6c910c8

    How can I insert a picture in a reply to a message
    http://answers.Microsoft.com/en-us/feedback/forum/user/how-do-i-insert-a-photo-into-a-reply-to-a-post/17a15382-c587-44BB-9594-c0673c8402af

Maybe you are looking for

  • Satellite A30 303: no update firmware for drive UJ-811 H100

    Hello! I have model witch toshiba A30-303 have mast * one optical drive UJ-811 H100, I have this laptop for over 2 years and I have strength to find any update on this drive I n even know if this company exists (matsu * a). I've changed this disc abo

  • GPS on Stream 8 5801WT?

    The hp 8 Stream model Tablet 5801WT there really on-board GPS? I want to use the maps here to navigate on a trip to Europe using the downloaded maps. I lose the point fixed gps 300 m about to my wifi connection in the preliminary trials around my hou

  • Results of increasing frequency generated unexpected behavior of the signal

    I'm generating a composite using a sawtooth wave, square, signal that produces the desired signal as shown on the left. Unfortunately, when the increase of the frequency beyond 1 Hz, I get undesirable results as shown on the right.          I tried t

  • Cannot re - install using the cd - Help!

    I'm pulling my hair out here.  Accidentally, I uninstalled the HP software.   So, I returned the drive and tried to run but everytime I do I get a fatal error during installation and it distracts me from all these other fixes.  But I just keep ending

  • BB10 Dev Alpha Simulator Dev Mode doesn't work

    Hello! I have a problem with BlackBerry 10 Dev Alpha Simulator. When I go into the VM for the 10 Dev Alpha settings BlackBerry Simulator and enable development mode, the icon of the Mode of development will not displayed it. I can't see the IP addres