Need UNDO command to undo multiple objects at once

I'm writing an Illustrator plugin (in actionscript, no C code) that creates a group object and then adds some path items to it. The problem I have is as follows:
If the user tries to UNDO (Ctrl+Z) what my plugin has done, Illustrator will undo each pathItem seperately. I need to mek it undo ALL the pathItems that the plugin have created at once. Can you guide me into the right direction to do it?

Process your objects and add app.redraw(); in the end - should help.
I'd also suggest to put all processing code into external .jsx, and just call required functions from AS. Had a lot of problems with ActionScript recently, and had to convert to javascript after all

Similar Messages

  • How to image trace multiple objects at once on Illustrator CC?

    Hello,
    This may sound like a stupid question, but I am having troubles trying to image trace multiple objects all in one go.
    I'm currently working on Illustrator CC and I remember this process being a lot easier to do on Illustrator CS5.
    I have a typical job where I create client specific barcodes on a separate program, and then bringing them into Illustrator to vectorize.
    When I used to do it in CS5, all I had to do was release clipping masks, select all 50 or so barcodes, then Image Trace - and voila, al of my barcodes were vectorized at once - easy.
    I now have to vectorize about 120+ barcodes and Illustrator CC is only letting me select & image trace one barcode at a time. There has to be a better way, and I'm hoping someone here can help.
    (I would open up CS5 and do it from there, but my work computer was recently replaced with a newer iMac and was only provided with Illustrator CC)
    Thanks!

    Not sure what your barcode-specific challenges and methods may be, but my general aversion to the image trace feature compels me to suggest that you just create the barcodes in vectors in the first place. I do that using Terry Burton's free online barcode generator.

  • Changing multiple objects at once

    is there a way of setting eg thre end jump for multiple tracks at once - if they all have the same end jump?
    best tommy banana

    Not really, but you can do it another way around...
    Make the first track, set the end jump and hen duplicate the track twice. You do this by clicking on the track in the outline view panel, hold the Apple key, press 'D" on your keyboard.
    The two new tracks should have the same attributes as the original, including the end jump, menu settings and so on. You can then add the different footage to these new tracks.
    But - are you certain you ned two other tracks? Can you not use a single track and put all of your clips into that, then use stories to divide it up?

  • Resize multiple objects at once

    How do I set the height of mutliple objects at once? I'm creating a form and the I want to ensure all the text fields are the some height.

    OK...I guess my question stems from wondering how you're creating your Text Frames in the first place, and after that, how you copy and resize them.
    When I do this sort of thing, I like to use the Rectangle Frame Tool, then I click in the document and enter the size numerically. Then Option + Drag to create copies. The "Content" parameter for the frames can be assigned now, or later, after you resize them.
    I guess what I don't understand is how you're resizing them? You're doing them individually, and manually, to fit the space, right? If you constrain the resizing to horizontal only, you shouldn't have a problem with the height of the boxes changing.
    I dunno, maybe I'm missing something from your workflow that presents a special case?

  • Need same logical path for multiple objects in a Single project

    Dear All,
    I have a requirement where I wish to ensure that whenever an object is created in the LSMW transaction (In a Single Project), that object has to be created always under the same logical path name.
    This logical path I want to define under the transaction FILE.
    Is it possible to get this done?
    Please help,
    Regards,

    Nimish,
    Please tell me how to ensue that for every object created we get the same logical path without entering any value.
    The path i mean is the one defined in the transaction FILE
    Thanks for your input.
    Regards,

  • Is there a way to scale multiple objects at once?

    I'm trying to select and scale three objects (imported PSD files) at the same time. It seems like it will only scale one at a time (i.e., two of the selected objects do not scale, while the other does). Is there something I'm overlooking, or is Captivate just really deficient in this area?
    Alternatively, is there anywhere you can enter a scale percentage manually? I want all of the scaled objects to remain the same size in proportion to one another.

    I have three objects (see below) and I want to scale them all at the same time (so they scale proportionally). Something like this is easy in Illustrator or any Microsoft product.
    I did find a fix though - apparently if I group them first, I can scale the group, and ungroup the objects after the scale operation. It's not the most elegant solution, but it will do.

  • Dragging to select multiple objects within a Pages document

    I am trying to select multiple, closely spaced objects (text boxes, lines, shapes, etc) within a Pages document. They are located ~1/3 of the way from the left margin of the document, and there are objects both to the left and the right of this group.
    I know that you can click outside of the Pages document with the mouse, then drag into the document to select multiple objects. However, is there any way to drag to select multiple objects without first clicking outside the document?
    Command click is a pain in the butt because I inevitably mis-click and have to start again to select all objects. I don't like having to drag in from the margin and then command-click to de-select objects I don't want.
    is there not an option to just shift-click to form a selection box around objects within the document? It seems like there should be a simple solution to this, but I have yet to find it.
    Thanks

    mattcass wrote:
    Command click is a pain in the butt
    Isn't it just! The people who created Pages should get a right spanking on this fundamental stuff up.
    All you can do is try again. I find myself repeating the same task over and over in Pages simply because you can't easily grab things.
    When you do +command click+ try and get the edges of objects, otherwise Pages thinks you are still trying to click inside the object.
    Once you have +command drag lassoed+ multiple objects you can +shift command click+ to unselect the ones you don't want. Again a problem if they are close to each other.
    Peter

  • Simple Script for Multiple Objects?

    Someone recently helped me with setting an opacity level for an object using this one line script and binding a keyboard shortcut to it: app.selection[0].transparencySettings.blendingSettings.opacity=50; (Pressing "5" sets the object's opacity to 50%)
    Although the script works perfectly for one object, when mutiple objects are selected it only affects the first selected object. Can someone show me how to get this script to affect multiple objects at once?
    Thanks in advance!

    Thanks for the help man, but what's with the snarky comment? lol. Yeah I use my "5" key daily as well. But in ID it does nothing while in the default context, so why not put it, and the other digits to use to quickly set object opacity? (this function is similar to setting opacity for Photoshop layers by the way).
    Have a nice day, and cheer up. Spring's almost here.

  • Is there a command which terminates all functions at once?

    I need a command which terminates all functions at once beside the red knob in the headline. Is there any?

    Are you talking about LabVIEW? If so, you can stop a running VI by calling the "Stop" function, located in the Application Control palette. Also, using the VI Server functions located in the same palette, you can open a reference to a VI and Abort it using the "Invoke Node" primitive.

  • Need Undo/Redo Help

    hi,
    I'm trying to make a program where I can undo any sort of action and also redo it.
    I have created a sample; can't get it to work with the undomanager.
    Help. Thanks.
       import javax.swing.*;
       import javax.swing.undo.*;
       import java.awt.*;
       import java.awt.event.*;
        public class UndoManagerTest extends JPanel implements ActionListener
          JButton add;
          JButton undo;
          JButton redo;
          JPanel panel, buttonpanel;
          UndoManager manager;
           public UndoManagerTest()
             manager = new UndoManager();
             setPreferredSize(new Dimension(800, 600));
             setLayout(new BorderLayout());
             panel = new JPanel(new FlowLayout());
             buttonpanel = new JPanel();
             panel.setPreferredSize(new Dimension(800, 400));
             // this.addUndoableEditListener(manager);
             add = new JButton("Add Label");
             add.addActionListener(this);
             undo = new JButton("Undo");
             undo.addActionListener(this);
             redo = new JButton("Redo");
             redo.addActionListener(this);
             buttonpanel.add(add);
             buttonpanel.add(undo);
             buttonpanel.add(redo);
             add(panel, BorderLayout.NORTH);
             add(buttonpanel, BorderLayout.SOUTH);          
           public void actionPerformed(ActionEvent e)
             if(e.getSource() == add)
                panel.add(new JLabel("New Label"));
                panel.updateUI();
             if(e.getSource() == undo)
                if(manager.canUndo())
                   try
                      manager.undo();
                       catch(CannotUndoException b)
             if(e.getSource() == redo)
                try
                   manager.redo();
                    catch(CannotRedoException b)
           public static void main (String[] args)
             JFrame frame = new JFrame("UndoManagerTest");
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             frame.add(new UndoManagerTest());               
             frame.setVisible(true);
             frame.pack();
       }

    Everything can be done.
    You don't undo clicking a button. You undo what your programa did when the button was clicked. In other words if you, for instance, created a jlabel and put it in a jpanel. You must "save" that information so the jlabel can be removed and/or be put again if the user wants.
    How you do that? You create an undoEdit class for every kind of "event" you want to undo. When I say event I don't mean java event like mouseEvents but your own doing in the methods.
    This is an example of one of my undoEdits:
    import javax.swing.undo.*;
    public class UndoBorder extends AbstractUndoableEdit{
        Parent parent; // any object you want to use like a Jframe o whatever
        int r, c;
        Border old, neww;
        String key;
        public UndoBorder(Parent parent, int r, int c, String key, Border old, Border neww) {
          this.parent=parent;
          this.r=r;
          this.c=c;
          this.key=key;
          this.old=old;
          this.neww=neww;
        public void undo(){
          if(old == null) parent.getBorders().remove(key);
          else parent.getBorders().put(key, old);
        public void redo(){
          if(neww == null) parent.getBorders().remove(key);
          else parent.getBorders().put(key, neww);
        // I don't recall why this is here but don't remove it cause it is necessary.
        public boolean canUndo(){ return true; }
        public boolean canRedo(){ return true; }
    }How do you use this:
    When I create a border and add it to the application (a hashMap) I also create the undo so the user can undo the action:
    Border neww = new Border(row, col, true, BorderLines.THIN, black);
    borders.put(row+colS, neww);
    edit.addEdit(new UndoBorder(this, row, col, row+colS, old, neww));In case you need to undo several action at once you have to create a CompoundUndoEdit object. Let me know if you need it.

  • Can't select multiple objects in Pages 10 with "command+click".

    I've always been able to "command+click" to select multiple objects in Pages. However, since I updated to Pages 10, this shortcut does not work. Any thoughts?

    Apple is trying to make the iOS version and Mac versions match. Some incredibly stupid or lazy developers/designers took the iOS version as the standard and changed the OSX version to match. The stupidity in this is that iOS is not a good platform for work in the first place, it's incredibly cludgy to edit/write documents on the ipad, email maybe but editing real documents is a pain is the wazoo. The iPad is ok for watching videos, reading, browsing, but not for efficient work. Being able to select multiple items and work on them is a basic feature of most editors and has been for years. Microsoft Office for OSX is so much better that it will be difficult for Apple can catch up even if they wanted to. It's too bad for Apple makes prettier apps. And now MS Word for the iPad is available and free.

  • Can't find "undo multiples changes"

    I am really frustrated. I spent hours formatting a document with pictures, then made some changes on the first page which altered the whole document - pictures all shifted to a different position. I tried to do "undo changes" but I can only undo ONE change! When I went to help - undoing changes - it says to go to edit>undo multiple times" - but there is no such option available! Please help!

    I hadn't saved the document - still haven't saved it - because I was worried about the very thing you mentioned. Do you have any other ideas why i can't see the "undo multiple changes" on the edit menu?

  • Need to shift multiple objects across many frames

    I don't know if this is even possible, but what I'd like to
    do is shift multiple objects, in multiple layers, across multiple
    frames. The problem is that I built a complex animation as a movie
    symbol within the root movie. It got so complex, however, that I'd
    like to just go ahead and make it the main timeline for the root
    movie. But when I copy and paste the frames from the symbol back
    out into the root timeline, the location is wrong. Everything is in
    the correct location relative to each other element, but wrong
    relative to the stage. Is there any way to grab everything up in
    all of those layers and frames and just shift it all over to where
    it's supposed to be? Or can I somehow shift the stage under it?
    Thanks in advance.

    Edit Multiple Frames.
    it's in the help docs but also here:
    http://www.biteycastle.com/lessons/emf.htm
    --> Adobe Certified Expert (ACE)
    --> www.mudbubble.com :: www.keyframer.com
    -->
    http://flashmx2004.com/forums/index.php?
    -->
    http://www.macromedia.com/devnet/flash/articles/animation_guide.html
    -->
    http://groups.google.com/advanced_group_search?q=group:*flash*&hl=en&lr=&ie=UTF-8&oe=UTF-8
    thewizzard24 wrote:
    > I don't know if this is even possible, but what I'd like
    to do is shift
    > multiple objects, in multiple layers, across multiple
    frames. The problem is
    > that I built a complex animation as a movie symbol
    within the root movie. It
    > got so complex, however, that I'd like to just go ahead
    and make it the main
    > timeline for the root movie. But when I copy and paste
    the frames from the
    > symbol back out into the root timeline, the location is
    wrong. Everything is in
    > the correct location relative to each other element, but
    wrong relative to the
    > stage. Is there any way to grab everything up in all of
    those layers and frames
    > and just shift it all over to where it's supposed to be?
    Or can I somehow shift
    > the stage under it?
    >
    > Thanks in advance.
    >

  • Flatten Multiple Objects in a PDF

    Can anyone let me now how to flatten multiple objects in a single Page PDF

    Not sure you understand the definition of "flatten" in PDF:
    Flattening a page means that annotations (comments and markups) are converted into elements on the page, and are removed from the comments list. The page objects (text, vectors, bitmaps etc.) are not altered in any way, not combined and not rasterized.
    If you want to convert an entire page into a bitmap image of a page, then export the file as a series of images (File > Save As > Image) and combine them back into a PDF, making sure to disable OCR. If you want to selectively-combine some page elements and retain others, you will need to do that in the original file, or import the page into Adobe Illustrator and perform the edits there. Acrobat can't do it.
    If you want to flatten comments, in the sense I described above, then you can either open the debug console (Ctrl-J) and type flattenPages() [press ENTER], or use one of the scripted add-on tools which run the command via menu items or panel buttons.

  • Selecting multiple objects in Pages '09

    Hi everybody,
    I was just wondering how to easily select multiple objects in Pages, as in Keynote. I mean, in Keynote you can just drag the mouse over the objects you want to select, and that's it. But in Pages I haven't be able to do that (not even with option or command keys), so I have to press shift and click on every object I want to select. This is quite tedious when you want to select many objects.
    Any help on that?
    Thanks,
    Rodrigo

    Thanks to both, I already sent my feedback to Apple, and I really hope that iWork X comes out soon, with more wonderful features.
    I have tried fruhulda's advice and it works, my thanks for that! My question now is: Why Apple doesn't provide any help on that? I knew that cmd-A selected all the floating objects on the document, but I needed to select only a few of them. That was the only Keynote feature I was missing (apart from the themes, with all those predefined colors, backgrounds, textures...).
    So thank you!
    Rodrigo

Maybe you are looking for