Updated smart object clips the mask to the shape of the smart object

if i update a smart oject, the mask snaps to the shape of the smart object.
this is super inconvenient if i've masked a shadow or other feathered object, when the mask clips to the the shape, it peaks around the edges of the newly cropped mask. and i have to go back in and refine the mask further, but elegantly removing the hard line edge is a royal pain in the ***.
why does this happen?
this example is in CS5 on OS X. this same thing occurs in CC.
i can't believe this inconvenient flaw is still around. even further, i can't believe there are no other posts regarding this issue.
am i missing a preference that turns this "feature" off?
before update
after update

http://feedback.photoshop.com/photoshop_family/topics/changing_canvas_size_for_smart_objec t_with_mask_crops_to_bounding_box

Similar Messages

  • CS6 problem. When I open the Mask panel, it takes up the entire screen width and the Looks controls disappear, Also, there is a new panel below the Mask panel that seems to have no purpose that I can find. The documentation says "Mask and Look panels - Th

    CS6 problem. When I open the Mask panel, it takes up the entire screen width and the Looks controls disappear, Also, there is a new panel below the Mask panel that seems to have no purpose that I can find. The documentation says "Mask and Look panels - The Mask panel is now placed next to the Look panel. WIth the masking and grading tools placed side-by-side, you can now work faster on the mask workflow." Is there a way to move, hide, or otherwise manipulate the panels for a custom layout? All the examples I can find on the Web show the Looks panel to the left of the Mask panel where the controls are available.

    Ok, here is what I have so far. Appdelete the iWork and reinstalled. Pages and Number work, but not Keynote.
    Now, I downloaded a couple apps that I need, and no matter what I did, the spinning ball came up and the download stopped till it unlocked itself. It is really frustrating because the download was not completed and whatever came through would not mount. Could this issue be the internet connection? Permission fix showed a lot of Airport issues. I will try to run permissions fix again.

  • Why in a new Keynote the mask does not level to the horizon if the picture is canted it is also remains canted?

    Why in a new Keynote the mask does not level to the horizon if the picture is canted it is also remains canted?

    Thank you so much Gary!
    Could you help me please with the another question?
    How could I adjust speaker's note window in presenters screen. It is too narrow. In the old Keynote it was adjustable.

  • My serialnummer includet letters and numbers, in the mask i can only use the numbers. It ignore the letters. what can I do?

    I have subscribed crativecloud prepaid. I am prompted to enter the serial number. The displayed in my Adobe ID serial number contains letters and numbers. In the input mask for the serial number but the letters are consistently not accepted. What can I do

    Hwelchert if you are being prompted to enter a serial number it is due to the computers inability to contact our activation server.  You can find additional details on how to resolve the connection error at Sign in, activation, or connection errors | CC, CS6, CS5.5 - http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html.

  • AttachMovie under the Mask

    I have a movie in which I have a "Mask arrangement." The
    arrangement is that I have a Mask layer with several "cutouts."
    That layer is masking the layer below it which has only a single
    movieclip. I position the movie clip under a particular cutout so
    that it shows, then do some other stuff with it. Here's the trick:
    At a certain point, I have that small movieClip execute an
    attachMovie and pull another movieClip from the library. I *want*
    it to be "under the masked layer" so that this new movieClip also
    is able to peek out through the holes in the mask.
    However, when I attachMovie the new movieClip appears ON TOP
    OF the mask instead of inside being masked. I've tried playing with
    various layer management tricks, but it's not working.
    I think the issue is that when I add a new movieClip to the
    stage, it's either going on a layer BELOW the mask (and the objects
    it should be masking)...so don't see it. Or it's going on a layer
    ABOVE the mask (and the objects it's masking).
    How do I get a new movieClip to appear "inside" the masking
    arrangment?
    ---Damian

    > Apply the mask to the holder, and then any movieclips
    > you add inside that holder will be masked.
    Or use MovieClip.setMask();.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Is this possible to access arbitrary frame and to modify the mask?..

    Sorry for a bit messy discussion title. Please, let me explain.
    I have some experience in implementing video processing algorithms, but as our own software and never under AE. Now there is an idea to implement something for AE and first of all, I'm curious, if this is possible at all.
    1) When processing the n-th frame, I need the full access to the data of (n-k)-th and (n+k)-th. Is this possible to do in general case? Or the only variant is to implement frames buffering during the first pass?
    2) Our algorithm uses the mask as one of the inputs. But in contrary to the usual case, mask does not define an area of interest. In any case the full frame is processed, but the processing differs for different regions, depending on mask. In our software, it works like this: user defines a mask (and some parameters). Then effect is slightly modifying (let say – refining) the mask during the render and renders final images. After this user can modify the mask somehow again if he/she is not satisfied with what algorithm has done. Can I produce the same workflow in AE? The only way is using a drawbot (this means CS 5.5 and higher)? And what if I want masks to be raster images?
    The second question in the framework of this one is how to do two video inputs for an effect (first – the video to be processed and second – the mask (grayscale sequence in general case))?
    The possible workflow is that user provides trivial mask – lets say, the black solid. But even during the first pass effect should produce the mask, according to its sight to the video – so, it should somehow substitute the black solid with the sequence on black'n'white images. Is this all possible in AE?
    3) Is this possible (should be, I guess) to implement multipass algorithms? How the preview works then, if I need, for example, to pass all the video length 3-4 times, to produce the final render?
    I can expect that all this is solvable in AE, but may be experienced users could be so kind to give me some basic recommendation on how to do this. Looking through the PDF, which accompanies the SDK has not allowed to come to a distinct answer for the question: is this possible or not. So, I rely on your consultation.

    hi Theofil Mulony, welcome to the forum!
    in short, yes, what you want to do is possible, but some parts may be tricky.
    and now the long version:
    1) When processing the n-th frame, I need the full access to the data of (n-k)-th and (n+k)-th. Is this possible to do in general case? Or the only variant is to implement frames buffering during the first pass?
    you can access the pixel data of any layer at times other than the currently processed time. this concept of getting that data is referred to as "layer checkout" in the AE SDK, and "wide time" is the name of getting pixel data at times other than the current.
    the following thread discusses the difference between two methods of getting such data:
    http://forums.adobe.com/message/4033930#4033930
    you can also look at the "checkout" sample project to see how both concepts are implemented.
    2) Our algorithm uses the mask as one of the inputs. But in contrary to the usual case, mask does not define an area of interest. In any case the full frame is processed, but the processing differs for different regions, depending on mask. In our software, it works like this: user defines a mask (and some parameters). Then effect is slightly modifying (let say – refining) the mask during the render and renders final images. After this user can modify the mask somehow again if he/she is not satisfied with what algorithm has done. Can I produce the same workflow in AE?
    masks in AE generate a matte by default. the user can turn that mask off, so that the shape remains, but the mask does not... mask. (you can also set the mask mode to "none" via API commands).
    you can then read the "off" mask attributes and either render using an API command (see "pathmaster" sample to see how), or write your own algorithm if the API constraints on that operation are a problem for you. (and there are a few constraints on rendering masks in the API)
    now. when you say "modifying the mask" do you mean you modify it's generated matte, or do you mean change it's defining vector?
    both are possible, but completely different.
    if you turned the mask off, and rendered it's alpha yourself, then you can modify that alpha as you wish.
    if you want to use AE's generated matte of the mask and change the mask's outline shape, then you need to look into "streams" and the "mask outline suite".
    the user can modify a mask's shape as he/she pleases, unless you lock that mask or otherwise sabotage the user's operation.
    The only way is using a drawbot (this means CS 5.5 and higher)?
    drawbot is the API for drawing over AE's interface in CS5 and up.
    it's only a drawing tool. previous versions used OS drawing tools. that's all the difference.
    what i think you're asking is weather you need to create the mask drawing/handling capabilities or not.
    the answer is: you can, but you don't have to.
    unless you need control over the mask drawing that AE's existing masks don't have, i would have used AE's masks and not create a brand new mechanism (that the user need to learn as well).
    if you insist at creating a custom UI for drawing masks, the "CCU" sample project would be a good place to start the research.
    (just don't come crying to me when you get a splitting head ache)
    And what if I want masks to be raster images?
    The second question in the framework of this one is how to do two video inputs for an effect (first – the video to be processed and second – the mask (grayscale sequence in general case))?
    The possible workflow is that user provides trivial mask – lets say, the black solid. But even during the first pass effect should produce the mask, according to its sight to the video – so, it should somehow substitute the black solid with the sequence on black'n'white images. Is this all possible in AE?
    by default, "effect" plugins (as opposed to AEGPs) get only one input - the image of the layer, post masks and previous effects (but before transformations).
    you can put as many "layer param"s in your effect and let the user select any number of other layers, which you can the "checkout" and use as second inputs.
    you can also checkout other layers without the user selecting them manually.
    however, checked out layer results are pre-masks and effects. so if the user draws a mask over a black solid, you will not be able to read the "post mask" image unless the user pre-composes the layer with the mask inside the pre-comp. it's a common practice for users to do so, as many effects rely on a second input, and that's the only way to make the input pos-masks and effects. (so it's no biggie from the user's point of view)
    in the same manner, you can read any layer's image and use it as a mask.
    you get the image buffer, so it's up to you to decide whether to use the alpha channel of that image or the rgb (or any other method you see fit).
    3) Is this possible (should be, I guess) to implement multipass algorithms? How the preview works then, if I need, for example, to pass all the video length 3-4 times, to produce the final render?
    AE doesn't do multi pass rendering.
    it actually can render arbitrary frames, in no particular order.
    but as you already saw, you can access the image data from any time - of any time, so you can emulate passes.
    if you need to fly through the whole sequence for every frame, that would of course be very time consuming and wasteful.
    in such a case, you can try to do these passes only once, when effect is implemented, and cache the results.
    look up "sequence data", to see how to manage memory specific to a single instance fo you effect.
    but i must say that if you have to do full length scans of the footage, a couple of times over, and cache EVERYTHING, then you're in a bit of a problem in AE.
    it's just not set up for such rendering logic.
    not impossible, but highly inefficient in the AE rendering pipeline.
    there is a lot more to al of the above, but i hope this gave you a clearer picture of how things are in AE.

  • Effect of a mask is off-set from the mask itself.  Help ...

    I have a corner-pinned layer (it's a screen replacement) that a character passes in front of.  I need to animate a mask so the character can pass the screen, but the effect of the mask is off-set from the mask line.  It's really annoying.
    It seems like the mask is set to the original layer size ... but I have to corner-pin the layer so it fits the screen I'm replacing, which makes the visible part of the layer smaller.  Is there a way to make the mask perform in an "aboslute" way?
    Pic attached to show how the mask is behaving ...

    For anyone who's curious, this didn't really solve the problem, but it was a satisfactory work-around:
    I went ahead and exported the corner-pinned, UNmasked screen replacement on its own, sitting on a transparent alpha channel.  I then brought that new video layer into my composition and masked it.  Since the new layer wasn't being corner pinned, the mask halted perfectly right on the visible masking line.

  • In RGB mode, why does pasting 50% gray into a layer mask actually put K 59% in the mask?

    Create a new (small) document in RBG mode, 8 bit, transparent background.
    Fill the resulting Layer 1 with 50% gray, 100% opacity.  The eyedropper reports RGB=(128,128,128).
    Copy the layer to the clipboard.
    Create a new Layer 2. Fill it with Green #00ff00 (the contents don't actually matter here).
    Add a layer mask to Layer 2.
    Bring that mask up for editing.
    Paste in the contents of the clipboard.  The eyedropper reports the contents of the mask as K 59%.
    I was expecting 50% gray (or K 50%). Why did I get K 59%?
    Addenda:
    I'm using CS3 on a Mac. I haven't had a chance to see if the same thing happens with more current versions of PS.
    Apply the layer mask in Layer 2. Extract the transparency to a new layer.  The eyedropper gives the RGB of the
      new layer as (106,106,106), with variations pixel by pixel of plus/minus 1.
    Take the Difference between that new layer and Layer 1; the eyedropper gives the RGB of the difference as (22,22,22),
      again with variations of plus/minus 1.
    Paste the contents of the clipboard into a new layer.  The eyedropper gives the RGB contents of that new
      layer as (128,128,128), both without and with a Black & White adjustment applied.
    Create a new layer, add a layer mask, fill the mask with 50% gray. The eyedropper gives the contents of
      the new mask as (128,128,128) (now as expected).
    The 50% gray used above is just for simplicity. I'm actually interested in inserting a complicated RGB
      image containing only shades of gray into the layer mask. This example indicates that pasting won't
      preserve the gray levels. Indeed, when I replace the initial 50% gray with a Black to White gradient,
      the differences between the initial gradient and the one in the mask range roughly quadratically from 0 at 0,
      22 at 128, and 0 at 255.

    Thanks. First doing Edit > Color Settings, Gray > Gray Gamma 2.2 resulted in putting 50% gray in the layer mask.
    Does changing the Gray setting have any effect on channel calculations, via Image > Calculations?
    Or what you get from
    Image > Apply Image, Channel > Transparency ?
    I don't see "sGray" listed among the options for Gray in the Color Settings. Is it somewhere else?

  • Problems with the masks options.

    i am working on adobe premiere pro cc 2014. until this morning it worked fine (well most of the times), but suddenly the masks options in all of the effects, stopped functioning. so here i am and i need your help. thank you.

    i am working on a win 7 ultimate platform. i tried many things and the adobe representatives took over my computer and didn't find a solution.
    when i open a project new or old and i press the mask button, it doesn't do nothing. no mask apears, not in the program window and not in the effects control window.
    i tried to reinstall the program and it also didn't help. i also created new admin user and took out all the plug ins and it didn't work.
    i also tried to restore my computer to an earlier time and for some reason the computer didn't let me, so that is the only other abnormal behavior i detected.

  • Complex mask renders look blocky in the feather region

    Has anyone ever had a multi point mask that just renders a pattern in the feather region? It doesn't happen on simple masks with less than 6 points or so. This footage was originally edited in Premiere and then sent to Speedgrade. This is a recurring issue on this system. Also, in this case Speedgrade crashed almost immediately after I took this shot.
    2011 MBP 2.3GHz Intel Quad Core i7 OSX 10.9.5
    8gb 1333 MHz DDR3 ram, Adobe CC 2014 - up to date.

    I direct link Speedgrade from Premiere, apply masks but never seen that abnormality in your feather region. However, for my complex masks I strickly use Speedgrade in ircp projects. I was trying to duplicate your abnormality and did not succeed. I even saved the complex masks from the ircp and applied as lumetri in a prproj direct link to Speedgrade (which I don't recommend with respect to proper workflow - my test).
    I did get abnormalities with lumetri in Premiere when I used the masks in Premiere - as in the ellipse mask or maybe it was the free draw bezier to mask the Speedgrade lumetr. I added some points and feathered out - did not like the abnormalities in the feather region and trashed the idea.
    I do add an adjustment layers in Premiere which I add my lumetri to in Speedgrade.
    In Speedgrade ircp projects, my current sample has 4 layers, 3 of those layers are masks, where the masks have between 20 to 40 points and double that for feathering. My Speedgrade crashes constantly while building masks and I am forced to save constantly. If I move to fast in Speedgrade the result is 'crash'. Sometimes I stop to admire the work Speedgrade does and then move for the save button and 'crash'.
    My point is - I have never seen that abnormality in my Speedgrade projects. I did think I saw it in my current sample, but it was a tiny spot. It was a beach line, where my two masks met and the feather region overlapped - and the tiny spot was a sun-faded dead stump on the shore line - seeming to be over-exposed and Speedgrade trying to tell me I was stripping pixels seemed to be. That sample no longer exists , as I reversed the one mask and worked at things from a different direction.
    I have no problems with Speedgrade - I love what Speedgrade does to adding, enhancing, changing color,,,,,

  • Masked Input Plugin - Cannot change the length

    I use the masked plugin alot. But the strange thing is that it does not have a length field so it defaults to 30. In order to change the length, I have to change it to a Text Field, then change the length (e.g., to 15 for phone number) and then change the type back to Masked Input. The length is then shorten.
    Can't the masked input plugin be changed to include the length field? It seems to still use it.
    Robert
    http://apexjscss.blogspot.com

    Hi Robert,
    are you talking about the display length of the field or the number of characters which can be entered.
    Don't have access to the source code now from my iPad, but in the plugin definition you could check if the checkbox for field width (don't remember the exact name) in the standard attributes region is checked.
    Have you downloaded the plugin from http://apex.oracle.com/plugins or do you use the copy from the sample app?
    Regards
    Patrick

  • Overlay Images and Shapes on the same canvas

    The example copde below was taken from: http://math.hws.edu/eck/cs124/javanotes3/source/
    Is it possible to update the code so that images (jpg,gif) can be added as well as shapes?
    Any help with this is much appreciated.
        The ShapeDraw applet lets the user add small colored shapes to
        a drawing area and then drag them around.  The shapes are rectangles,
        ovals, and roundrects.  The user adds a shape to the canvas by
        clicking on a button.  The shape is added at the upper left corner
        of the canvas.  The color of the shape is given by the current
        setting of a pop-up menu.  The user can drag the shapes with the
        mouse.  Ordinarily, the shapes maintain a given back-to-front order.
        However, if the user shift-clicks on a shape, that shape will be
        brought to the front.
        A menu can be popped up on a shape (by right-clicking or performing
        some othe platform-dependent action).  This menu allows the user
        to change the size and color of a shape.  It is also possible to
        delete the shape and to bring it to the front.
        This file defines the applet class plus several other classes used
        by the applet, namely:  ShapeCanvas, Shape, RectShape, OvalShape,
        and RoundRectShape.
        David Eck
        July 28,  1998
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    import java.util.Vector;
    public class ShapeDrawWithMenu extends Applet {
       public void init() { 
            // Set up the applet's GUI.  It consists of a canvas, or drawing area,
            // plus a row of controls below the canvas.  The controls include three
            // buttons which are used to add shapes to the canvas and a Choice menu
            // that is used to select the color used for a shape when it is created.
            // The canvas is set as the "listener" for these controls so that it can
            // respond to the user's actions.  (The pop-up menu is created by the canvas.)
          setBackground(Color.lightGray);
          ShapeCanvas canvas = new ShapeCanvas();  // create the canvas
          Choice colorChoice = new Choice();  // color choice menu
          colorChoice.add("Red");
          colorChoice.add("Green");
          colorChoice.add("Blue");
          colorChoice.add("Cyan");
          colorChoice.add("Magenta");
          colorChoice.add("Yellow");
          colorChoice.add("Black");
          colorChoice.add("White");
          colorChoice.addItemListener(canvas);
          Button rectButton = new Button("Rect");    // buttons for adding shapes
          rectButton.addActionListener(canvas);
          Button ovalButton = new Button("Oval");
          ovalButton.addActionListener(canvas);
          Button roundRectButton = new Button("RoundRect");
          roundRectButton.addActionListener(canvas);
          Panel bottom = new Panel();   // a Panel to hold the control buttons
          bottom.setLayout(new GridLayout(1,4,3,3));
          bottom.add(rectButton);
          bottom.add(ovalButton);
          bottom.add(roundRectButton);
          bottom.add(colorChoice);
          setLayout(new BorderLayout(3,3));
          add("Center",canvas);              // add canvas and controls to the applet
          add("South",bottom);
       public Insets getInsets() {
            // Says how much space to leave between the edges of the applet and the
            // components in the applet.
          return new Insets(3,3,3,3);
    }  // end class ShapeDraw
    class ShapeCanvas extends Canvas implements ActionListener, ItemListener,
                                                MouseListener, MouseMotionListener {
          // This class represents a canvas that can display colored shapes and
          // let the user drag them around.  It uses an off-screen images to
          // make the dragging look as smooth as possible.  A pop-up menu is
          // added to the canvas that can be used to performa certain actions
          // on the shapes;
       Image offScreenCanvas = null;   // off-screen image used for double buffering
       Graphics offScreenGraphics;     // graphics context for drawing to offScreenCanvas
       Vector shapes = new Vector();   // holds a list of the shapes that are displayed on the canvas
       Color currentColor = Color.red; // current color; when a shape is created, this is its color
       ShapeCanvas() {
            // Constructor: set background color to white, set up listeners to respond to mouse actions,
            //              and set up the pop-up menu
          setBackground(Color.white);
          addMouseListener(this);
          addMouseMotionListener(this);
          popup = new PopupMenu();
          popup.add("Red");
          popup.add("Green");
          popup.add("Blue");
          popup.add("Cyan");
          popup.add("Magenta");
          popup.add("Yellow");
          popup.add("Black");
          popup.add("White");
          popup.addSeparator();
          popup.add("Big");
          popup.add("Medium");
          popup.add("Small");
          popup.addSeparator();
          popup.add("Delete");
          popup.add("Bring To Front");
          add(popup);
          popup.addActionListener(this);
       } // end construtor
       synchronized public void paint(Graphics g) {
            // In the paint method, everything is drawn to an off-screen canvas, and then
            // that canvas is copied onto the screen.
          makeOffScreenCanvas();
          g.drawImage(offScreenCanvas,0,0,this);
       public void update(Graphics g) {
            // Update method is called when canvas is to be redrawn.
            // Just call the paint method.
          paint(g);
       void makeOffScreenCanvas() {
             // Erase the off-screen canvas and redraw all the shapes in the list.
             // (First, if canvas has not yet been created, then create it.)
          if (offScreenCanvas == null) {
             offScreenCanvas = createImage(getSize().width,getSize().height);
             offScreenGraphics = offScreenCanvas.getGraphics();
          offScreenGraphics.setColor(getBackground());
          offScreenGraphics.fillRect(0,0,getSize().width,getSize().height);
          int top = shapes.size();
          for (int i = 0; i < top; i++) {
             Shape s = (Shape)shapes.elementAt(i);
             s.draw(offScreenGraphics);
       public void itemStateChanged(ItemEvent evt) {
              // This is called to respond to item events.  Such events
              // can only be sent by the color choice menu,
              // so respond by setting the current color according to
              // the selected item in that menu.
          Choice colorChoice = (Choice)evt.getItemSelectable();
          switch (colorChoice.getSelectedIndex()) {
             case 0: currentColor = Color.red;     break;
             case 1: currentColor = Color.green;   break;
             case 2: currentColor = Color.blue;    break;
             case 3: currentColor = Color.cyan;    break;
             case 4: currentColor = Color.magenta; break;
             case 5: currentColor = Color.yellow;  break;
             case 6: currentColor = Color.black;   break;
             case 7: currentColor = Color.white;   break;
       public void actionPerformed(ActionEvent evt) {
              // Called to respond to action events.  The three shape-adding
              // buttons have been set up to send action events to this canvas.
              // Respond by adding the appropriate shape to the canvas.  This
              // also be a command from a pop-up menu.
          String command = evt.getActionCommand();
          if (command.equals("Rect"))
             addShape(new RectShape());
          else if (command.equals("Oval"))
             addShape(new OvalShape());
          else if (command.equals("RoundRect"))
             addShape(new RoundRectShape());
          else
             doPopupMenuCommand(command);
       synchronized void addShape(Shape shape) {
              // Add the shape to the canvas, and set its size/position and color.
              // The shape is added at the top-left corner, with size 50-by-30.
              // Then redraw the canvas to show the newly added shape.
          shape.setColor(currentColor);
          shape.reshape(3,3,50,30);
          shapes.addElement(shape);
          repaint();
       // ------------ This rest of the class implements dragging and the pop-up menu ---------------------
       PopupMenu popup;
       Shape selectedShape = null;     // This is null unless a menu has been popped up on this shape.
       Shape draggedShape = null;      // This is null unless a shape has been selected for dragging.
       int prevDragX;  // During dragging, these record the x and y coordinates of the
       int prevDragY;  //    previous position of the mouse.
       Shape clickedShape(int x, int y) {
             // Find the frontmost shape at coordinates (x,y); return null if there is none.
          for ( int i = shapes.size() - 1; i >= 0; i-- ) {  // check shapes from front to back
             Shape s = (Shape)shapes.elementAt(i);
             if (s.containsPoint(x,y))
                return s;
          return null;
       void doPopupMenuCommand(String command) {
             // Handle a command from the pop-up menu.
          if (selectedShape == null)  // should be impossible
             return;
          if (command.equals("Red"))
             selectedShape.setColor(Color.red);
          else if (command.equals("Green"))
             selectedShape.setColor(Color.green);
          else if (command.equals("Blue"))
             selectedShape.setColor(Color.blue);
          else if (command.equals("Cyan"))
             selectedShape.setColor(Color.cyan);
          else if (command.equals("Magenta"))
             selectedShape.setColor(Color.magenta);
          else if (command.equals("Yellow"))
             selectedShape.setColor(Color.yellow);
          else if (command.equals("Black"))
             selectedShape.setColor(Color.black);
          else if (command.equals("White"))
             selectedShape.setColor(Color.white);
          else if (command.equals("Big"))
             selectedShape.resize(75,45);
          else if (command.equals("Medium"))
             selectedShape.resize(50,30);
          else if (command.equals("Small"))
             selectedShape.resize(25,15);
          else if (command.equals("Delete"))
             shapes.removeElement(selectedShape);
          else if (command.equals("Bring To Front")) {
             shapes.removeElement(selectedShape);
             shapes.addElement(selectedShape);
          repaint();
       synchronized public void mousePressed(MouseEvent evt) {
             // User has pressed the mouse.  Find the shape that the user has clicked on, if
             // any.  If there is a shape at the position when the mouse was clicked, then
             // start dragging it.  If the user was holding down the shift key, then bring
             // the dragged shape to the front, in front of all the other shapes.
          int x = evt.getX();  // x-coordinate of point where mouse was clicked
          int y = evt.getY();  // y-coordinate of point
          if (evt.isPopupTrigger()) {            // If this is a pop-up menu event that
             selectedShape = clickedShape(x,y);  // occurred over a shape, record which shape
             if (selectedShape != null)          // it is and show the menu.
                popup.show(this,x,y);
          else {
             draggedShape = clickedShape(x,y);
             if (draggedShape != null) {
                prevDragX = x;
                prevDragY = y;
                if (evt.isShiftDown()) {                 // Bring the shape to the front by moving it to
                   shapes.removeElement(draggedShape);  //       the end of the list of shapes.
                   shapes.addElement(draggedShape);
                   repaint();  // repaint canvas to show shape in front of other shapes
       synchronized public void mouseDragged(MouseEvent evt) {
              // User has moved the mouse.  Move the dragged shape by the same amount.
          if (draggedShape != null) {
             int x = evt.getX();
             int y = evt.getY();
             draggedShape.moveBy(x - prevDragX, y - prevDragY);
             prevDragX = x;
             prevDragY = y;
             repaint();      // redraw canvas to show shape in new position
       synchronized public void mouseReleased(MouseEvent evt) {
              // User has released the mouse.  Move the dragged shape, then set
              // shapeBeingDragged to null to indicate that dragging is over.
              // If the shape lies completely outside the canvas, remove it
              // from the list of shapes (since there is no way to ever move
              // it back onscreen).
          int x = evt.getX();
          int y = evt.getY();
          if (draggedShape != null) {
             draggedShape.moveBy(x - prevDragX, y - prevDragY);
             if ( draggedShape.left >= getSize().width || draggedShape.top >= getSize().height ||
                     draggedShape.left + draggedShape.width < 0 ||
                     draggedShape.top + draggedShape.height < 0 ) {  // shape is off-screen
                shapes.removeElement(draggedShape);  // remove shape from list of shapes
             draggedShape = null;
             repaint();
          else if (evt.isPopupTrigger()) {        // If this is a pop-up menu event that
             selectedShape = clickedShape(x,y);   // occurred over a shape, record the
             if (selectedShape != null)           // shape and show the menu.
                popup.show(this,x,y);
       public void mouseEntered(MouseEvent evt) { }   // Other methods required for MouseListener and
       public void mouseExited(MouseEvent evt) { }    //              MouseMotionListener interfaces.
       public void mouseMoved(MouseEvent evt) { }
       public void mouseClicked(MouseEvent evt) { }
    }  // end class ShapeCanvas
    abstract class Shape {
          // A class representing shapes that can be displayed on a ShapeCanvas.
          // The subclasses of this class represent particular types of shapes.
          // When a shape is first constucted, it has height and width zero
          // and a default color of white.
       int left, top;      // Position of top left corner of rectangle that bounds this shape.
       int width, height;  // Size of the bounding rectangle.
       Color color = Color.white;  // Color of this shape.
       void reshape(int left, int top, int width, int height) {
             // Set the position and size of this shape.
          this.left = left;
          this.top = top;
          this.width = width;
          this.height = height;
       void resize(int width,int height) {
             // Set the size without changing the position
          this.width = width;
          this.height = height;
       void moveTo(int x, int y) {
              // Move upper left corner to the point (x,y)
          this.left = x;
          this.top = y;
       void moveBy(int dx, int dy) {
              // Move the shape by dx pixels horizontally and dy pixels veritcally
              // (by changing the position of the top-left corner of the shape).
          left += dx;
          top += dy;
       void setColor(Color color) {
              // Set the color of this shape
          this.color = color;
       boolean containsPoint(int x, int y) {
             // Check whether the shape contains the point (x,y).
             // By default, this just checks whether (x,y) is inside the
             // rectangle that bounds the shape.  This method should be
             // overridden by a subclass if the default behaviour is not
             // appropriate for the subclass.
          if (x >= left && x < left+width && y >= top && y < top+height)
             return true;
          else
             return false;
       abstract void draw(Graphics g); 
             // Draw the shape in the graphics context g.
             // This must be overriden in any concrete subclass.
    }  // end of class Shape
    class RectShape extends Shape {
          // This class represents rectangle shapes.
       void draw(Graphics g) {
          g.setColor(color);
          g.fillRect(left,top,width,height);
          g.setColor(Color.black);
          g.drawRect(left,top,width,height);
    class OvalShape extends Shape {
           // This class represents oval shapes.
       void draw(Graphics g) {
          g.setColor(color);
          g.fillOval(left,top,width,height);
          g.setColor(Color.black);
          g.drawOval(left,top,width,height);
       boolean containsPoint(int x, int y) {
             // Check whether (x,y) is inside this oval, using the
             // mathematical equation of an ellipse.
          double rx = width/2.0;   // horizontal radius of ellipse
          double ry = height/2.0;  // vertical radius of ellipse
          double cx = left + rx;   // x-coord of center of ellipse
          double cy = top + ry;    // y-coord of center of ellipse
          if ( (ry*(x-cx))*(ry*(x-cx)) + (rx*(y-cy))*(rx*(y-cy)) <= rx*rx*ry*ry )
             return true;
          else
            return false;
    class RoundRectShape extends Shape {
           // This class represents rectangle shapes with rounded corners.
           // (Note that it uses the inherited version of the
           // containsPoint(x,y) method, even though that is not perfectly
           // accurate when (x,y) is near one of the corners.)
       void draw(Graphics g) {
          g.setColor(color);
          g.fillRoundRect(left,top,width,height,width/3,height/3);
          g.setColor(Color.black);
          g.drawRoundRect(left,top,width,height,width/3,height/3);
    }

    Manveer-Singh
    Please don't post in old threads that are long dead. When you have a question, please start a topic of your own. Feel free to provide a link to an old thread if relevant.
    I'm locking this 3 year old thread now.
    db
    edit You have earlier been advised not to post in old dead threads.
    [http://forums.sun.com/thread.jspa?threadID=354443]
    Continuing to ignore this advice will render your account liable to be blocked.
    Edited by: Darryl.Burke

  • • Link the mask to a "smart object"

    Hello -
    I searched already for a while now, and I was wondering if there is a way to link a smart object and its mask (directly)?
    Not via a folder, or some others trick/tip, but simply directly.
    Thank you, have a nice day…
    - Dimitri

    Hi guys -
    Thanks anyways for your replies…
    - Dimitri      http://www.thebend.be/notlookingforsuchpicturesrightnow/

  • Smart Objects between Photoshop, Illustrator and Dreamweaver while managing the version in Vesion Cu

    Ok, so the title of this post sounds confusing. First off, I created a graphic in Illustrator CS3. It is to be used on a web page created in Dreamweaver CS3. I want to be able to streamline the editing process by using the Smart Object linking feature between Dreamweaver and Photoshop CS3.
    Obviously, the problem is, I cannot link the Photoshop source to Dreamweaver because the source is not a Photoshop file, it is in Illustrator. The obvious solution to that is to export the Illustrator file as a Photoshop file. The problem with that is, I want to maintain the source in Illustrator and make edits in Illustrator.
    So, my solution was to place the Illustrator file in Photoshop and make the Illustrator file a Smart Object in Photoshop. Then link that Photoshop file to the Dreamweaver page. So, basically, Photoshop is just the link between Dreamweaver and Illustrator. It works well! I click the little edit button in Dreamweaver abd it calls up the file in Photoshop. Then I double-click on the Smart Object layer in Photoshop and the source comes up in Illuistrator.
    Now, here is the problem. To add to the confusion, I maintain versioning in Version Cue. So whenever I change the Illustrator file, I check it in to Version Cue. The Illustrator file I linked to in Photoshop is the local file on my computer. This file is syncronized with the version of the file that gets uploaded to Version Cue. This may sound complicated, but to see how I did it is pretty straight forward.
    My assumption was, when I double clicked on the Smart Object layer in Photoshop, I would get the local copy of the Illustrator file to edit. But, that wasn't the case. Problem is, I got a temp file of the Illustrator graphic and NOT the original source file I linked to in Photoshop.
    I can still edit the temp file and have those changes automatically made in Photoshop and then update the image in Dreamweaver. BUT, when I got to check in the new edits of the Illustrator file to Version Cue, it wants to create a new file and not rev-up to the new version of the original file. That's because the file I'm checking in is NOT the original file, it is a temp file.
    Does anyone else use a workflow like this? If so, how do you do it?

    Ok, so far I have come up with this solution. Usually after editing the Illustrator file I would check it in. But, as mentioned, I can't just do that because the file I'm editing is the temp file and not the original file syncronized with Version Cue.
    So, instead of using Check-In when I'm done, I can use Save As... I can then overwrite my local file that is syncronized with Version Cue. That will save the new file as the correct name and automatically check it into Version Cue as the next version of the correct file.

  • Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services

    Getting this error from DirSync
    Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [UserPrincipalName
    [email protected];].  Correct or remove the duplicate values in your local directory.  Please refer to
    http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute values.
    Quick eyeball and couldn't see the cause in the user account so used the script here:
    http://gallery.technet.microsoft.com/office/Fix-Duplicate-User-d92215ef
    And got these outputs:
    PS C:\Windows\System32\WindowsPowerShell\v1.0> Export-OSCADUserPrincipalName -UserPrincipalName "[email protected]" -Path .\outputs.csv
    WARNING: Cannot find objects with specified duplicate user principal name
    [email protected]
    Found 0 user(s) with duplicate user principal name.
    Where to from here?
    Richard P

    Hi,
    Did you talk about the Microsoft Azure Active Directory Sync tool ?
    If yes, this issue occurs if one or more of the following conditions are true:
    An object in the on-premises Active Directory has an SMTP address that's the same as the SMTP address of the object that's reporting the problem.
    An object in the on-premises Active Directory has a mail attribute that's identical to the object that's reporting the problem.
    An object already exists in your organizational account and has the same SMTP address or mail attribute as the object in the on-premises Active Directory
    More detail information, please refer to:
    http://support.microsoft.com/kb/2520976/en-us
    [Troubleshooting] Unable to update this object because the following attributes associated with this object
    http://blogs.technet.com/b/aadsyncsupport/archive/2014/05/20/troubleshooting-unable-to-update-this-object-because-the-following-attributes-associated-with-this-object.aspx
    Regards.
    Vivian Wang

Maybe you are looking for

  • Indesign 5.5 or 6 + yosemite = production at standstill

    recently I brought into a production of about 25 mixed OS 10.6.8 and 10.9.4 Xeon Mac Pros and i7 iMacs two additional iMacs running Yosemite 10.10 When the graphic artists who need these systems work on shared InDesign pages the redraw (with multiple

  • BDC to upload DATA

    Hi,      This is my BDC Program to upload batch data into infotype 0006 ans subtype 0001 plz check the code and correct i am getting one error when i compile the error is: Description                            ROW         Type Program ZBDCPA30      

  • Compiling CLDC RI (KVM)

    Hello, I have problems compiling KVM with the following configuration: javac 1.5.0_03 gcc (GCC) 3.3.5 GNU Make 3.80 I get: src/java/lang/Object.java:132: cannot access java.lang.StringBuilder file java/lang/StringBuilder.class not found return getCla

  • Exchange portlet (Oracle Team???)

    I'm getting following errorcode when I try to run the test.asp exzmple to test Exchange? Does somebody know what this error means? Error Type: Server object, ASP 0177 (0x800401F3) Invalid ProgID. For additional information specific to this message pl

  • CS5 won't update

    Im using lightroom 4.4 and when I try to Edit using CS5 a dialog boz pops up telling me to update Camera raw in CS5 but, CS5 nothing happens when I click "Help, Updates". Any ideas?