Making an object line up horizontally

Hi,
If I have a shape, for example a square, and rotate it slightly, how can I make it go back to being exactly at a 90 degree angle so it sits equal with the horizon and vertical?
Presuming I can't use crtl z and don't know the angle that I originally rotated it?

There are probably many ways, some with fewer steps than this.
Switch on Smart Guides and Rulers. Pull out a Guide (horizontal or vertical depending on the way you want to rotate) to the anchor point that will be the pivot of your rotation. Select the Rotate Tool, click on the same anchor point and then click-drag on the path that will allow you to rotate the shape up to the horizontal/vertical guide.

Similar Messages

  • There are gray lines running horizontally on my screen. Does warranty cover it?

    I have the MacBook Pro Retina from 2014 and recently when I opened my computer I found small gray/black  lines running horizontally on the screen. I researched the issue and apparently the lcd screen is broken. I haven't dropped it and the screen isn't broken. Sometimes they flicker. Anyway what might be the cause, what is it and is it covered in the warranty?

    I would think so but the final verdict will be made at the Apple store genius bar.  Make an appointment.
    Ciao.

  • Icon with think veticall line & three horizontal lines flashing green

    icon with thick veticall line & three horizontal lines flashing green, what is the problem????

    Thanks.
    In the meantime I was looking more carefuly into some clips with horizontal lines (fences etc.)
    You are right playback with full resolution takes care of most of the problem.
    Thank you once again.
    arikw

  • Making Customer PO Line Filed Mandatory basing on Customer PO Number in SO

    Hi Gurus,
    I have the following requirement of making Customer Po Line Filed Mandatory basing on Customer PO Number at Sales Order Line level.
    We need to use Sales Order line "Customer PO" line level number to manage the "Cust PO Line" field.
    1.When ever "Customer PO" line level modified make Cust PO Line" field empty and as required field.
    2.When ever "Customer PO" at line level removed make Cust PO Line" field empty and as non required field.
    3.When ever "Customer PO" value at header level is also there,then Customer PO Line value should be Mandatory and Empty after REQUERYING.
    Please suggest me the possibilities as soon as possible.Please provide the soltuion steps as soon as possible clearly.
    which is the best one to accomplish the given requirement?
    1.CUSTOM.pll
    2.Form Personalization
    3.Form Customization
    Note:
    RDBMS : 11.2.0.1.0
    Oracle Applications : 12.1.3
    Oracle Forms Version : 10.1.2.3.0
    Thanks,
    RS

    Hi,
    Thanks for your Reply.I have gone through that metalink note 1309458.1.Can you please elaborate the step by step process so that i can complete my task.
    Thanks,
    RS.

  • I have lines running horizontally on my iPod classic

    I have lines running horizontally across the top of my iPod classic, do I need to get it serviced? I restored it and another set of lines appeared

    More than likely yes.  It sounds like you have a damaged LCD screen.  You can choose to have it serviced by Apple or a third party repair company for even less.
    B-rock

  • In Muse Design mode, on one of my site pages there is an aqua colored line running horizontal & I can't slide my page up past it?

    In Muse Design mode, on one of my site pages there is an aqua colored line running horizontal & I can't slide my page up past it?

    Ok well I realise that my source code needs changing to match that of the working page as transplanting the source code of a non working page into a copy of the working page doesn't work.
    At least I have some sort of starting point now to work from.

  • Need algrithim for constantly making new objects

    How would I go about making an object and then remake the same object again but with a different name.
    here is the problem:
    for(int i=0;i<23;i++){
    //But i want the second time to run around and create a Printer object
    //named something else not printer.
    Printer printer = new Printer();
    any help would be appreciated

    Well I my case I'm trying to get different names. So I guess the easist thing I can do is to make an array. But then it brings me to this question,
    This is my class:
    import java.awt.*;
    public class Printer {
         public void init(){
         public void paint(Graphics g,String string,int x,int y){
              g.drawString(string,x,y);
    }if I wanted to make an array out of it like so:
    Printer[] print = new Printer[xAmount];It says nullPointerException when I try to access the class's function by doing this:
    print[0].paint(g,"test",2,3);What can I put in print[0] to make it not null? I mean you can put numbers and letters. (
    Message was edited by:
    jkhoa
    Message was edited by:
    jkhoa

  • Can't Get Images to Line Up Horizontally Within Div

    I'm making a Fluid Grid Layout webpage. The bottom div contains 4 square images in a horizontal line. In the mobile mode, I want these 4 images to remain in a horizontal line and shrink to fit. I tried Block - Display - Inline-Block and I tried Block - Whitespace - nowrap, but neither works. The images just wrap themselves below one another without shrinking in size. They only shrink when I drag the entire page horizontally to less than the width of any one image.
    This is the page:
    http://savcp.com/index-fluid-12.html

    Have a look at my version:
            *, *:before, *:after {
                -webkit-box-sizing: border-box;
                -moz-box-sizing: border-box;
                box-sizing: border-box;
            #awards {
                margin: 0 auto;
                padding-bottom: 4%;
                vertical-align: top;
                width: 60%;
            .columns {
                float: left;
            .four {
                width: 25%;
            .columns img {
                display: block;
                width: 100%;
                padding: 10px;
         <div id="awards" class="clearfix">
            <div class="four columns">
                <img alt="Manhattan Bride" src="placeholder.png">
            </div>
            <div class="four columns">
                <img alt="The Knot" src="placeholder.png">
            </div>
            <div class="four columns">
                <a href="pressrelease-01.html">
                    <img alt="Bride's Choice" src="placeholder.png">
                </a>
            </div>
            <div class="four columns">
                <a href="http://www.mitzvahmarket.com/mitzvah-ideas/misc/dancejock-productions-present-madisons-squ are-garden/">
                    <img alt="Mitzvah Market" src="placeholder.png">
                </a>
            </div>
        </div>
    This works - set the width of the #awards container to a percentage that works for you. You may want to add a max-width and min-width in em/px to limit the fluid design somewhat.
    This would also work on the "how we met" page.
    Al Sparber is correct in saying you should unfloat those divs when the screen size becomes too narrow to accomodate those four columns.
    And a couple of other tips/suggestions:
    - #awards: remove clear:both (apply clearfix instead); remove display:block (a div is by default a block level tag already); remove float:left; (no need to float this to the left); remove margin-left:0 (a div by default already is set to a margin of 0 on all sides); and remove the width:100% (all block level tags by default go as wide as they can, so again no need for 100% width)
    - you have three rules with mostly identical properties set for the #awards div. Clean this up, and define only one id selector.
    - same for all the other main layout elements: three rule definitions for each! Think DryCSS (Don't Repeat Yourself). And only apply css properties that actually change the default behaviour of an element.
    - remove the float:left, clear:both and display:block from all those layout divs as well. Why would you add these to your main layout elements?
    - only apply a clearfix to parent layout elements that contain floated child elements.
    - when the pagecontainer div is set to a width, do not add 100% width to the child layout elements. Not required.
    - most of your image elements are missing the alt attribute. You should add those (otherwise the html will not validate).
    - structure your menu with an unordered list
    - The non-flash version of the image slideshow uses the gif image format. Unless you mean to add an animated gif Instead either use jpg or png. Many reasons for this - google it. And do not use Photoshop's limited save for web function to optimize your pngs. In my opinion, use other tools for both jpg and png (Color Quantizer, anyone?). Saves a LOT of bandwidth.

  • Making a Cut Line, around a vector image.

    The job: I have thousands of little vector images i need to put a cutline around.
    The solution: I have a little program that will record my mouse and keyboard strokes, repeat said recording as many times as i tell it to, so i can easily automate all the work i have to do.
    The problem: I need to find a way (preferably using illustrator only) to more reliably put a cutline around a vector image. Now I know of a few ways to do this, but so far none work across the board on all vector images.
    For example: I've tried making a copy of the vector image layer (theres only one layer on all these files) selecting the copy layer, then hitting the Unite button on the Pathfinder window. On most vectors this joins all the segments into one solid object that i can then put just a stroke on and voila, i have a cutline to rename CutContour and I'm good to go. But on some there are stray lines even after hitting the Unite button (i assume just left over from the original artist) and unfortunately cleaning up stray points doesn't clean it up since there short lil trash line segments left over, not just points.
    Normally if it were just a few images i would go in and delete them by hand, but i can't do that if I'm automating this. I could maybe rasterize it and get it to work, but i need to keep it a vector to blow up huge later.
    There has to be some way after selecting everything on one layer, to then tell illustrator to make that selection one solid object,.. outlined, no lines or shapes inside, filled one solid color, regardless of what it has selected.
    Anyone know how to do this?

    maryjanejungle wrote:
    Thanks for taking the time to illustrate that for me, good to know,.. doesn't seem to work with the dino image though, when you offset the line, it just blows up the little stray line segments too, then when you click Unite there still there. Nothing we're doing is actually looking for the outer most edge,.. or if this were photoshop i could fill in an area with a color,.. if it could some how do that, just fill the area solid and treat it as one shape on one layer.
    If you expand the appearance and turn it into a Live Paint Group you can color the stray paths so to speak with a stroke of none.
    But this might work as well
    Copy the art and paste behind
    Use the Unite filter in the pathfinder
    give the stroke the color of black
    then go to Effect>Path>Offset Path
    this might work, I did not try this on the dragon and i am afraid I trashed it yu will have to repost the file as it is not available on that download a page.
    If yo still have extra paths showing in the toes of the dragon then expand the art turn it into a live paint group with the option to paint strokes and with the Live paint brush stroke it with a color of either none or white.
    The Live Paint Bucket becomes a brush when hovered over a stroke is strokes are check as an option for painting.

  • Why does Vertical Align Center align objects along the horizontal?

    And why does Horizontal Align Center align objects along the vertical?
    -g-
    P.S. Please please please make the Eydropper tool available by function key so I can toggle to it while using the Text tool. Please!

    g,
    but when I select two objects and click the vertical align button they snap to an invisible horizontal line
    This is (almost) identical to:
    Because (the centres of) vertically aligned objects will be on the same horizontal level/line.
    And that is just one way of expressing what vertical alignment means. Here are a few others:
    Their centres have the same height,
    Their centres have the same Y value on the Artboard/Workspace,
    In all cases, you can draw a horizontal line through their centres.
    Mathematically, Y = C (Y is a constant value C) is the equation for a horizontal line.

  • How Would One Go About Making an Object Rotate to Face in Direction of Mouse?

    I'm just a teenager who happens to have Flash as part of CS4 Production Premium, which I got as a gift.  I don't have any training or previous experience in Flash, and have only just in the past few month been looking into what ActionScript is.  I've just been fiddling with Flash in my spare time, just as something to do, and am working on making very basic computer games.  Currently I am trying to make a very basic top-down shooter computer game.  I've gotten it to where I can move the player (a circle with an arrow on the edge) in eight directions using the standard FPS movement keys (W,A,S,D) and make it move faster for a limited time by holding down the SHIFT key. 
    But now I've come to a standstill.  I am trying to make the player rotate in the direction of the mouse cursor (made to look like crosshairs) so that the player can move in any of the eight directions and aim in any direction at the same time.  I've searched the Internet for hours on end, looking for anything that might help, but not a single Web page section relates to this kind of thing.  So now I'm giving up on searching for a help article, and am making one instead.  Is there anyone that's successfully done this kind of thing before?  Or at least someone who actually knows how to properly use ActionScript 3.0 and can figure it out themselves, then tell me what they did?   (In the meantime, I've made it so that the player rotates and faces in the direction he is traveling in.)
    I've attatched all the code that I've typed to make the game work, so that anyone can look at it and tell me if I'm doing something wrong already.  I've only been learning ActionScript by figuring it out on my own as I go (watched a few videos I have on a disc too), and in the case of this game, I've just been making is up as I go, so to all of you people who actually know this stuff pretty well, this code is probably going to look nasty.

    I pasted it to the bottom of my code on the main timeline (correcting it for my use), but I get this message in the Compiler Errors window:
    Warning: 1090: Migration issue: The onMouseMove event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0.  You must first register this handler for the event using addEventListener ( 'mouseMove', callback_handler).
    So what do I do about that?  (again, I'm just a beginner, so I don't know what any of this means)
    (attached is a snapshot of the various objects refered to in the code.  also the original code is attached to the original post.  in case these help at all.)

  • Objects (lines) and text boxes are not able to be made bigger or smaller

    first of all: For no reason at all, all of my text boxes are now set up as threaded text.  I dont know how that turned on.  When i go to "type"
    and try to select "threaded text" it wont allow me to select it - it is not highlighted.  So I have no clue
    how to turn this off.  Now I can not stretch my text boxes to suit whats in them - ie: make them bigger or smaller, ie:  there are only two boxes to drag - one at either side of text box and they wont allow me to drag them to make the box bigger - only to move the entire box (before there were 4 boxes to manipulate the size of the text box - one on each corner - now there are only two)    and this seems to apply
    to many other objects now.  when i draw a line, I have to make sure that line is the exact right size because once i draw it - it wont allow me to make it bigger or smaller - it only allows me to move it to a different place - i dont understand what is happening

    thanks for writing back
    i am pretty sure it is area type because in type i can see "area type options"
    i dont know how to turn bounding boxes on or off so I can not answer that question.
    yes i should be able to resize the bounding text box by dragging and ive always been able to do that.  however I can no longer do that.  the usual bounding text box that i am accustomed to has little teeny boxes all around the entire box - in each corner - so i can drag each corner easily
    this set up that has currenly taken over my illustrator program has only TWO little teeny weeny boxes that when selected wont allow me to drag them to resize at all.  when i double click on one of these two little teeny boxes it gives me the thread text tool... which i dont want and have never even used before
    i just want my text boxes and everything else to go back to normal so i can drag them to resize them again
    does that make more sense or have i explained it better?
    thanks for your help!  Kim

  • Script for making an object the artboard size.

    I am looking for some help on trying to make an object the exact size of the artboard.  This is something I do on a daily basis for several different reasons and it would be very helpful if this can happen automatically for whatever size the artboard may be.  As I understand it the only way is with a script but I have no experience with making illustrator scripts, im definately no programmer.  I have set up quickkeys in the past to copy from the artboard inputs when you are on the artboard tool but these round to the nearest .01 and this is not accurate enough for what I am working with.  Also if I do this with multiple pages open illustrator is very slow to respond to the artboard tool.  If anyone has any idea where to start or has seen other such scripts I would greatly appreciate it.  Thank you.
    Below is a script that I saw on here that I believe may contain what I need but now knowing programming I have no idea where to start on editing.  All I need is the part where an object is placed on the artboard that is the exact same size as the artboard.  If anyone can advise on editing I would greatly apprecaite it.
    #target illustrator
    function main() {
         if (app.documents.length == 0) {
              alert('Open a document before running this script');
              return; // Stop script here no doc open…
         } else {
              var docRef = app.activeDocument;
              with (docRef) {
                   if (selection.length == 0) {
                        alert('No items are selected…');
                        return; // Stop script here with no selection…
                   if (selection.length > 1) {
                        alert('Too many items are selected…');
                        return; // Stop script here with selection Array…
                   } else {                   
                        var selVB = selection[0].visibleBounds;
                        var rectTop = selVB[1] + 36;
                        var rectLeft = selVB[0] - 36;
                        var rectWidth = (selVB[2] - selVB[0]) + 72;
                        var rectHeight = (selVB[1] - selVB[3]) + 72;              
                        selection[0].parent.name = 'CC';
                        selection[0].filled = false;
                        selection[0].stroked = true;
                        var ccColor = cmykColor(0, 100, 0, 0);              
                        var ccCol = spots.add()
                        ccCol.name = 'CC';
                        ccCol.color = ccColor;
                        ccCol.tint = 100;
                        ccCol.colorType = ColorModel.SPOT;
                        var cc = new SpotColor();
                        cc.spot = ccCol;                   
                        selection[0].strokeColor = cc;
                        selection[0].strokeWidth = 1;                   
                        var tcLayer = layers.add();
                        tcLayer.name = 'TC';
                        var padBox = pathItems.rectangle(rectTop, rectLeft, rectWidth, rectHeight, false);
                        padBox.stroked = false;
                        padBox.filled = true;
                        var tcColor = cmykColor(0, 100, 90, 0);         
                        var tcCol = spots.add()
                        tcCol.name = 'TC';
                        tcCol.color = tcColor;
                        tcCol.tint = 100;
                        tcCol.colorType = ColorModel.SPOT;
                        var tc = new SpotColor();
                        tc.spot = tcCol;
                        padBox.fillColor = tc;    
                        padBox.move(docRef, ElementPlacement.PLACEATEND);
                        artboards[0].artboardRect = (padBox.visibleBounds);
                        redraw();
                        rectWidth = (rectWidth-72)/72;
                        rectWidth = roundToDP(rectWidth,1);
                        rectHeight = (rectHeight-72)/72;
                        rectHeight = roundToDP(rectHeight,1);
                        var textString = rectWidth + ' x ' + rectHeight;
                        prompt('Copy Me', textString);
    main();
    function roundToDP(nbr, dP) {
         dpNbr = Math.round(nbr*Math.pow(10,dP))/Math.pow(10,dP);
         return dpNbr;
    function cmykColor(c, m, y, k) {
         var newCMYK = new CMYKColor();
         newCMYK.cyan = c;
         newCMYK.magenta = m;
         newCMYK.yellow = y;
         newCMYK.black = k;
         return newCMYK;

    Thanks to CarlosCanto for the original script, it was very a very helpful starting point to optimize one of our workflows. We customized it a bit to maintain the aspect ratio (just takes the greater of the width / height and scales proportionally to the artboard size), and also center up the object in the middle of the artboard once scaling is complete. I hope it is helpful to someone:
    #target Illustrator
    //  script.name = fitObjectToArtboardBounds.jsx;
    //  script.description = resizes selected object to fit exactly to Active Artboard Bounds;
    //  script.required = select ONE object before running; CS4 & CS5 Only.
    //  script.parent = carlos canto // 01/25/12;
    //  script.elegant = false;
    var idoc = app.activeDocument;
    selec = idoc.selection;
    if (selec.length==1)
            // get document bounds
            var docw = idoc.width;
            var doch = idoc.height;
            var activeAB = idoc.artboards[idoc.artboards.getActiveArtboardIndex()]; // get active AB
            docLeft = activeAB.artboardRect[0];
            docTop = activeAB.artboardRect[1];
            // get selection bounds
            var sel = idoc.selection[0];
            var selVB = sel.visibleBounds;
            var selVw = selVB[2]-selVB[0];
            var selVh = selVB[1]-selVB[3];
            var selGB = sel.geometricBounds;
            var selGw = selGB[2]-selGB[0];
            var selGh = selGB[1]-selGB[3];
            // get the difference between Visible & Geometric Bounds
            var deltaX = selVw-selGw;
            var deltaY = selVh-selGh;
            if (sel.width > sel.height) {
                var newWidth = docw-deltaX;
                var ratio = sel.width / newWidth;
                sel.width = newWidth; // width is Geometric width, so we need to make it smaller...to accomodate the visible portion.
                sel.height = sel.height * ratio;
            } else {
                var newHeight = doch-deltaY;
                var ratio = sel.height / newHeight;
                sel.height = newHeight;
                sel.width = sel.width / ratio;
            sel.top = (doch / 2) - (sel.height / 2);
            sel.left = (docw / 2) - (sel.width / 2);
        else
                alert("select ONE object before running");

  • Making a straight line aligned with text and adjusting length

    i am trying to make a simple straight line above some text in after effects cs5 that lines up with the beginning and end of the text. Not touching or anything. Nothing special. then a line perpendicular to it of a different stroke size.
    Also i want it to draw or fill in.
    first of all, if i dont get the line length perfect the first time, and i try to adjust the length, then the stroke width changes, also the scale.
    this is maddening because if i am making other pieces that i will animate together, i want them to be the same. and every time i try to adjust the line length, it changes everything...
    or do i just make all lines and type graphics in illustrator or photoshop and import them...and make a mask.  I almost think that all those extra steps might be easier...(sarcasm)
    any tips on this as this super basic task is turning into a headache?
    thx in advance.

    Well, because if you dont get it exactly correct and you want to make it longer or shorter, not only does that change, but the stroke starts scaling. So now you have simply a shorter line, you have a line that appears the same but is inevitably different point sizes and different scales that are maddening to match. I am animating several iterations of a kind of type/line template in 3d space. So i have made each on its own composition that is not 3d.
    i thought you would be able to just click on the end of the line/path and make the line itself shorter or longer like in illustrator. Also when the scale changes, it changes its position slightly from its anchor point....

  • I have thin white lines going horizontally across the screen of my Ipod

    Its an 11 month old I-Pod touch 4th gen with some thin white lines horizontally across the screen. Its still under warr, so should I just mail it in for repairs/exchange or is this normal??

    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

Maybe you are looking for

  • Can I seamlessly toggle Apple TV between Mac Mini and Iphone / iPad?

    I am having a Mac Mini, iPad, iPhone and Apple TV. Currently i am using 2 HDMI cables 1 between TV and Mac Mini and 2nd between TV and Apple TV. Seems like If i toggle between iPad / iPhone display via apple TV and Mac Mini display via apple TV; it b

  • Severe issues with Macbook Pro

    Hello, My cousin has a Macbook Pro which is at least two years old, and it has been encountering some bad problems recently. There are two main problems described below. DVD Drive: -Optical Superdrive makes clicking noises when trying to mount blank

  • How we can increase decimal places in Sales Order for Qty

    Hi, In Sales Order qty field now its 3 decimal places for MON unit of measure but we want 4. how we can increase decimal places. Thanks in advance Thanks & Regards, PM

  • Protect images / content in PDF...

    Hi, How can I set up securities to protect copying of images / general content of a PDF? I went through the settings in Acrobat, but could not find what the name of this feature is. Thanks!

  • Youtube in opening in older firefox v10 only but not in newer one.

    Using WINDOWS 7, when i updates my firefox from 10 to 23, youtube page stop loading ( page not found) in newer firefox.. at same time youtube was working on my cell phone and also on laptop having firefox v10,, i restore older version 10 and youtube