Resizing drawing objects defies pixel snapping

This happens mostly with drawing objects, and to a lesser degree with shapes. When resizing drawing objects in Flash CS6 with pixel snapping turned on, one would expect the dimensions of the shape to snap to even pixel numbers. For the most part it does, but too frequently the position and size values begin to drift into fractions of pixels.
If you create a rectangle as a drawing object, no stroke, it will snap to pixels properly. Drag it around and it always lands on whole pixel values. Now try resizing it using the free transform tool, or even by clicking and dragging the position and size values in the properties panel. Width and height values will mostly stick to whole pixels, but too often it will slip into fractions of pixels, bizarrely offsetting the x and y values as well. If you resize a drawing object and this error occurs, it does not help to try and move it to snap it back onto whole pixels, because it will snap to whatever fraction of a pixel it's currently stuck in, thereby forcing the user to manually edit the object's x and y coordinates.
This is a problem in my workflow as I'm constantly having to keep an eye on the properties panel and manually editing the numbers when shapes stray into 2.85 pixels or some such when I want it at 3. I find myself frequently just entering the numbers I want, which defeats the purpose of pixel snapping in the first place.

This happens mostly with drawing objects, and to a lesser degree with shapes. When resizing drawing objects in Flash CS6 with pixel snapping turned on, one would expect the dimensions of the shape to snap to even pixel numbers. For the most part it does, but too frequently the position and size values begin to drift into fractions of pixels.
If you create a rectangle as a drawing object, no stroke, it will snap to pixels properly. Drag it around and it always lands on whole pixel values. Now try resizing it using the free transform tool, or even by clicking and dragging the position and size values in the properties panel. Width and height values will mostly stick to whole pixels, but too often it will slip into fractions of pixels, bizarrely offsetting the x and y values as well. If you resize a drawing object and this error occurs, it does not help to try and move it to snap it back onto whole pixels, because it will snap to whatever fraction of a pixel it's currently stuck in, thereby forcing the user to manually edit the object's x and y coordinates.
This is a problem in my workflow as I'm constantly having to keep an eye on the properties panel and manually editing the numbers when shapes stray into 2.85 pixels or some such when I want it at 3. I find myself frequently just entering the numbers I want, which defeats the purpose of pixel snapping in the first place.

Similar Messages

  • Resizing TextField objects problem

    Hi there,
    I am writing an AS3.0 application, which arranges TextField
    objects in a grid
    format. These may be of variable width and height, so each
    row/column works
    out how large it needs to be, by polling its contents for the
    largest
    width/height. (I was unable to find a pure AS3.0 object that
    does this sort of
    thing, but that's another story). The TextFields update over
    time, so their
    widths/heights change, and the grid dimensions with it. This
    is all working
    fine.
    However, what I am having a problem with, is I am trying to
    make the
    TextFields resize to fill the area of their "Cell" in the
    grid, if they are too
    small. This is because I am doing some highlighting with
    background/foreground
    colours, and want the effect to fill the whole cell. So for
    instance, if the
    Textfields in a column are 100, 100, 50 and 100 pixels wide,
    I want to make the
    50-pixel wide one 100 pixels wide as well, so if its
    background colour changes,
    it affects the same width as the rest of them and looks right
    If I try to force the TextField's width property, it doesn't
    cooperate very
    well - sometimes it simply ignores it (I guess the rendering
    tells it what to
    do). I currently have the autoSize feature turned to
    TextFieldAutoSize.LEFT so
    it trims off from the default (100,100) dimension. I
    understand this may be
    what is interfering with the resizing I am trying to do.
    However, with
    autoSize set to TextFieldAutoSize.NONE, it seems to resize
    the entire text
    object (eg if it is 10 pixels wide, resizing it to 80 pixels
    wide makes the
    text 8 times bigger!!), which is obviously not what I'm
    after.
    I'm trying to do this TextField resize so I can keep all the
    highlight
    formatting in one place (ie I can just set the TextField
    forground and
    background, rather than its foreground and call some other
    object to set the
    background). Does anyone have any tips how I can accomplish
    this resizing of
    the TextFields to fit in the grid structure?
    Thanks very much in advance! :)
    DavidW

    hi peterent, thanks for getting back to me.
    the issue isn't the grid layout (i implemented my own because
    i wanted to have specific control over some of its layout
    abilities, and also, this is a pure AS3 project, without flex
    elements, to keep the file size tiny), but expanding the contents
    to fit the cell it's given, so they all line up correctly within
    it.
    i think i've got it - i implemented getter/setter methods for
    a variable in an interface for the text fields i mentioned, which
    then fires off events to control the highlighting. so i'm going to
    create a displayobjectcontainer which both contains the textfield
    and draws the background, but implements the interface, so i won't
    have to change the rest of the surrounding code :)
    if you have any suggestions for neater ways to control that
    issue of filling grid cells, with variable size contents, do let me
    know. but thanks!
    DavidW

  • Cannot resize grouped objects

    I have a document with a collection of grouped drawing objects. They used to be floating objects and I have now converted the entire group to be inline. Unfortunately it is slightly wider than the page and hence I try to resize it but the group only seems to constrain itself to doubling in width. This can be seen here:
    http://www.zedkep.com/stuff/pagesresizemouse.mov
    http://www.zedkep.com/stuff/pagesresizeinspector.mov
    Any ideas? Someone want to ... y'know ... fix this?
    Dave

    I don't hate Pages, but I don't use it because it is so extraordinarily difficult to do anything useful with. Something I find ridiculously frustrating but addictive.
    Typically if I don't fawn over it and praise it for what it is not, you describe that as hate.
    It is the old "love it or leave it".
    As to the generalisation, maybe, but it is something which I have frequently experienced so I can't help noticing, and as another generalisation, not something Americans like to talk about. Another topic for censorship.
    Given the absurdities of the last 8 years, it seems that this is why you missed out on a lot that was obvious all round.
    I first encountered it at a Mac User Group many years ago where an American friend got over the top angry at an article in a magazine and immediately threatened to cancel his subscription. I thought what an odd reaction, and asked him should the magazine perhaps poll him first as to what he would like to hear, then only tell him that?
    Then, as now, it went straight over his head.
    P.
    PS Watch this post disappear into the ether like so many others have.

  • Align New objects to pixel grid does not seem to work - Windows 7

    Here is another issue I've been struggling with for a while.
    Scenario:
    1. Working on a web UI, so want to use pixel grid, which is handy. So I create a new document, web profile and making sure 'Align New Objects to Pixel Grid' is selected:
    2. Yay! We have a nice and clean new document, cannot wait to start drawing rectangles! But let's double-check if everything is hunky dory:
    3. Right! Let's go and start making rectangles!
    4. And NOOOOOOOO!!!! As you can see in the image above, the rectangle is not aligned to pixel grid (look at the values), and it's "Align to pixel grid" option is not selected. Let's triple-check our options:
    So yeah, there you go. It's all lies! You have to check the check box AFTER you create the shapes FOR EACH SHAPE!
    Illustrator why you do this?! What am I missing here?!
    Windows 7 Ultimate
    AI 18.1.1 (64-bit)

    kaanungur,
    I am afraid you have come across the Live Rectangle bug sorry feature where it refuses to align to the Pixel Grid.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool or the Free Transform Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • Pixel Snap & Symbols

    Here's a repeatable behavior that has been driving me crazy.
    When you create a symbol from an object that was snapped to pixel, it will snap to pixel correctly when you edit the symbol but...
    if you create a symbol from an object that was not snapped to pixel, it will not snap to pixel correctly when you are in symbol editing mode.
    Steps to recreate the problem:
    Create an object without Align New Objects to Pixel Grid in the Transform Panel. It should have x and y values with multiple decimal places.
    Create a symbol from it.
    Edit the symbol.
    In the Transform Panel, enable Align to Pixel Grid. The object will not Align to Pixel Grid and the x and y values will still have multiple decimal places.
    I would expect that any object that has Align to Pixel Grid enabled would align to the pixel grid regardless of how it was originally created.
    Can anyone recreate this behavior?

    in the future. you should start out with a symbol, then you can select the symbol you want to replace and choose the symbol you want to replace it with.
    for now i would use a script.
    go here: http://www.wundes.com/JS4AI/
    there are several scripts in that could apply here.
    CopyToMultipleObjects
    CopyToObject
    SwapObjects
    i use swap objects a lot, but i modified it so there are no dialogue windows. you can pretty much guess what they do by their name and when replacing the hexagons with your symbols using any of those scripts, your symbol wil be centered with the replaced hexagon.

  • [CS2] [JS] Resize anchored object...

    Good morning:
    I need help figuring out how to resize different objects that are anchored in text. They do have a script label on them.
    For example I have an inline text box with the script label "gadget" that needs to be resized from 1 inch to 2 inches.
    Is there away to do this by way of a script?
    Thanks in advance!
    Theresa

    Hi Teresa,
    This is a very basic example: it adds 1 inch to the width and height of the inline text frame with "gadget" label (I assume that it may occur only once in each story and measurements are set to inches). I wrote this on CS3 — don't have CS2 any more.
    var myDoc = app.activeDocument;
    var myStories = myDoc.stories;
    for (i = 0; i < myStories.length; i++) {
        var myTextFrame = myStories[i].textFrames.item("gadget");
            if (myTextFrame != null) {
            var myGb = myTextFrame.geometricBounds;
            var myNewGb = [myGb[0], myGb[1], myGb[2]+1, myGb[3]+1];
            myTextFrame.geometricBounds = myNewGb;
    Kasyan

  • Resizing selected objects

    Ok, so I am trying to write a script that resizes an object that is selected. I have two objects selected, the one on top is a group item, the one below it is a rectangle. I am trying to resize the rectangle to the size of the group item on top of it with a little margin around it. Here is what I have so far.
    var design = app.activeDocument.selection[0];
         var top=design.visibleBounds[1]+5*2; 
         var left=design.visibleBounds[0]-5*2; 
         var width=design.visibleBounds[2]-design.visibleBounds[0]+10*2;
         var height=design.visibleBounds[1]-design.visibleBounds[3]+10*2;
    var background = app.activeDocument.selection[1];
    background.position = (top, left, width, height);
    The problem is the last line there. I'm not sure how to manipulate the position/size of the selected object or if it is even possible I have searched for it and haven not found an answer. Thanks in advance!

    position property expects an Array, with x and y values, in that order. As for the width and height properties, use them in separate statements
    background.position = [left, top];
    background.width = width;
    background.height = height;

  • Smart Guides, Constrain Proportions and Resizing an Object.

    When I have Smart Guides on and I'm trying to resize an object while holding shift (to constrain) Indesign seems to ignore the shift key. Usually when there's other objects in close proximity, or just closely aligned, vertically or horizontally. The image I posted is a good example. Trying to resize the bracket object while near all those other objects results in a lot of skipping around, and constrain not working. You can see in the image the outline is not constrained, even though I'm holding the shift key. It just wants to jump to those Smart Guides regardless of what I'm trying to tell it to do.
    This isn't much of an issue, but basically I'm wondering if this is a bug, or if the Smart Guides, just take priority. It's bit annoying turning smart guides on and off constantly to accomodate this odd behavior. Does anyone have any insight on this?

    Hi,
    I'm on a Mac Snow Leopard/CS5, and there actually is an update I haven't installed yet. I'm on 7.0.3, so I'll try that out.
    If it is a bug it's certainly not the end of the world, but I was curious if anyone else had been dealing with it as well. I love the Smart Guides, except for that.

  • Align New Objects to Pixel Grid by Layer

    It would be very nice to have the setting "Align New Objects to Pixel Grid" at the layer level.

    kaanungur,
    I am afraid you have come across the Live Rectangle bug sorry feature where it refuses to align to the Pixel Grid.
    To get round it in each case, it is possible to Expand the Live Rectangles to get normal old fashioned rectangles, or to Pathfinder>Unite, or to use the Scale Tool or the Free Transform Tool.
    A more permanent way round that is to create normal old fashioned rectangles, after running the free script created by Pawel, see this thread with download link:
    https://forums.adobe.com/thread/1587587

  • Copy Multi-Layered Drawing-Object and keep the same Layers

    Good evening
    We often have to clone a Drawing-Object and the clone should use the same Layers. We expected that we can just select the Objects on the related Layers, Drag and keep a key (e.g. Ctrl) and Drop the copy
    An example:
    The original Object has an rectangle and a text on two layers:
    Layer 1: Rectangle (Original)
    Layer 2: Text (Original)
    After cloning, we should have:
    Layer 1: Rectangle (Original) Rectangle (Copy)
    Layer 2: Text (Original) Text (Copy)
    Thanks a lot for all ideas in advance,
    kind regards,
    Thomas

    Thank you for your fast answer!, unfortunately it does not work as expected: after the Copy-Operation I always have more Layers than before. To use my example again:
    The original Object has an rectangle and a text on two layers:
    Layer 1: Rectangle (Original)
    Layer 2: Text (Original)
    Then I select the Rectangle and the Text an copy these Objects.
    I always get:
    Layer 1: Rectangle (Original)
    Layer 2: Text (Original)
    Layer 3: Rectangle (Copy)
    Layer 4: Text (Copy)
    What I expect after copy is:
    Layer 1: Rectangle (Original) Rectangle (Copy)
    Layer 2: Text (Original) Text (Copy)
    Kind regards,
    Thomas

  • Resizing grouped objects keynote

    In keynote I would like to be able to resize grouped objects without maintaining proportionality - is this possible?
    The "Constrain Proportions" button is greyed out for grouped objects for me.
    I'm using version 6.2

    Why can't I resize grouped objects in the new Keynote without constraining proportions
    The only people who can give an informed answer are the Apple engineers, however they don't post in the user to user community.
    Keynote 5.3 certainly could do this, but the latest version of Keynote is a completely separate application with different tools and features and file format.
    You can let Apple know of your concern by using:     Apple Feedback

  • Resizing 3d objects

    Hello! I'm new at java3d and i'm researching for my university project. I have the following question: how can i resize a object imported from a .obj file? There is any way to do that? Suppose i've a .obj that i want to load to my project but i need to resize it to be with the same width but a different weight.
    I've the code above:
    Transform3D objLocation = new Transform3D();
    objLocation.set(p.scale, new Vector3d(p.posx, p.posy, p.posz));
    //returns a scene with the object i want
    Scene s = ObjLoad();
    TransformGroup newScene = new TransformGroup();
    newScene.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    newScene.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    newScene.setTransform(objLocation);
    newScene.addChild(s.getSceneGroup());
    objSpin.addChild(newScene);
    The solution i figured out makes possible to place the object where i want and scale it, but it doesn't work because i want to redimensionate the object and not to scale it...
    I would appreciate any help!
    tks in advance
    ps: sorry about the poor english, hope you understand it
    Bruno
    Portugal

    Java3D uses a 4x4 matrix for these operations. Scale and rotate happen in the upper-left 3x3 matrix.
    This matrix doesn't affect translation at all.
    I think the 3x3 matrix that do what you want is the following :
    xscale 0 0
    0 yscale 0
    0 0 zscale
    so you just have to create your TransformGroup using this Transform3D.
    Matrix3d scalematrix = new Matrix3d(xscale, 0, 0, 0, yscale, 0, 0, 0, zscale);
    Vector3d translationvector = new Vector3d(xtranslation, ytranslation, ztranslation);
    Transform3D t3d = new Transform3D(scalematrix, translationvector, 0d);hope this will help !
    c ya
    GnG

  • Not able to resize my objects in Nested iview

    Dear all,
    This is how I created my dashboard.
    Model -> iview -> Layers(tabs) -> Each layer has various forms, queries and charts.
    Now I have changed it to
    Model -> iview -> Layers(tabs) -> Nested iview-> Each Nested iview has various forms, queries and charts.
    Can you suggest the best approach in terms of flixibility and performance.
    When I introduced a Nested Iview I amd not able to resize my objects ( table, chart, forms etc). I am not sure why. When I go into nested iview and go to Layout tab I see a blank page and can see nothing.
    Could anyone help me please.
    Also I would appreciate if anyone can  suggest me the best practice for creating a dashboard.
    Thanks,
    KK

    Hi,
    Yes you are correct.
    to make good Layout for Nestedview contents drilldown to the Nestedview and then go to its layout there you can make the Chages to layout.
    Regards,
    Govindu

  • Text objects don't snap properly

    Has anyone noticed that text objects (and in particular point text objects) don't snap properly to guides even if Type Object Selection by Path Only is checked in Preferences? I'm on CS2 but on older versions of Illy this was never a problem. The objects appear to snap, but when you zoom in you can see that the snap wasn't accurate and the text point didn't stop on the guide.
    Neither does Average work for text points any more. Sure you can use Align, but this sometimes produces unexpected results because it seems to measure the type itself and not the points as you would normally expect. The same thing applies to Distribute Spacing. It produces unevenly spaced lines instead of distributing spaces between points or groups of points.
    Has anyone got a method of aligning the points of text objects accurately? I always used to use Cmd+Alt+J (either vertical or horizontal) but there seems to be no way of doing this any more. Maybe it has been corrected in CS3, but it seems that there are so many bugs in CS3 that I don't think I want to go there.

    It's been my experience with iDVD in iLife that it is only for basic, quick & easy dvd creations with some presentation. I currently use DVD Studio Pro by Apple and it gives you the option you are looking for commonly referred to as motion marker points. Anyway, I hope this helps.

  • Problem resizing certain objects

    I converted a project from Captivate 1 to 2. I noticed that I
    am having trouble resizing certain objects. For example, by
    clicking on a highlight box, I expected the sizing handles to show
    up on the object so I could resize it. The handles weren't there. I
    ended up having to delete the object and create a new one.
    Constrain Proportions is "unchecked." By the way, this doesn't
    happen everytime. Sometimes it works; sometimes it doesn't. Is
    there a patch for Captivate 2 I could install?

    Hi Jerilyn
    Indeed a patch does exist for Captivate 2. However, I'm very
    doubtful it will have any effect on what you reported.
    Unfortunately, we see many such reports here in the forums with odd
    behavior related to projects that were "converted" from version 1.
    If you are interested,
    click here to see the
    Technical Note regarding the hot fix.
    Cheers... Rick

Maybe you are looking for