Rotate object by Reference Point?

I did a search on the forum on how to rotate an object by % using one of the object's reference points but came up empty.
It seems like something I've overlooked. I'm sure there's data on it, but I can't find it. Can anyone show me how to do this.
Thanks

app.layoutWindows[0].transformReferencePoint = AnchorPoint.topLeftAnchor;
myObject.rotationAngle = 30;
Peter

Similar Messages

  • How do I keep the Reference Point setting at top, left

    The nine-by-nine grid in the top left corner (where the vertical and horizontal rulers meet) won't stay selected as the top left setting depending on what I select in my document. Sometimes it's the top left, sometimes it's the bottom right and sometimes it's the top middle. How can I set it so that every box I select in a document will give me the top left reference point (X-Y coordinate)?
    I'm proofing a document to make sure it's set-up correctly and all the page-heading colored boxes are  starting at the same X-Y coordinate, have the same width and the next box down on the page starts at the proper location. None of these boxes were created on a master page so I have to check each one. (And even if they were, they've all been released from the master to change their colors and place images.) In other words, on one page there is a colored box across the top that is 10p6 high, so the next box down (vertically) needs to start at the X-Y coordinate of 0, 10p6. But when I click on it the reference point is not always at the top left. So I click on the box, then click on the top left reference point, check the X-Y location and height of the box, then click on the next box down the page and click on the top left reference point and compare the X-Y location to the previous box's height.
    I have selected the top left reference point with no documents open to set that as my default preference but I didn't create this document.
    InDesign CS5 7.0.4
    Mac OS X 10.6.8

    @Peter / @FergyMac – in case of rotated objects the reference point will change from object to object.
    Not rotated object selected:
    Rotated object selected:
    Uwe

  • Skew (Distort): reference point placement; proportions

    I use Photoshop CS on a Mac G4 (PPC), OS X 10.4.11.
    I am puzzled about the placement of the reference point when using Skew, e.g. to straighten the vertical lines of buildings. In Rotate, its function is clear: the image rotates around the reference point. But in Skew, I cannot observe any difference in the effect of the transformation regardless of where I place the reference point.
    I am interested in this, because preserving the proportions when skewing is important. What I have been doing is, for instance, to move the top handles outwards and the bottom handles inwards until the edges of the bouding box cross the edges of the image at about my eye-level when I took the photo. But even this does not accurately preserve the proportions of the buildings. What I am wondering is whether the reference point can in some way be used to preserve the proportions. But, as I say, moving it does not seem to have a visible effect; and in Skew, holding down Shift also does not seem to do anything. Any advice will be gratefully received.

    I agree, the reference point does not seem to affect skew result.
    However it gives you some added control. For example before the transform, you can hold down the shift key and move the reference point a precise distance to the left of center. Then drag the top left anchor until the middle left anchor lines up with the reference.
    Skew is more constrained than Distort but less constrained than Perspective. Somewhere in between. The shift key won't do anything. Any Skew transform can be replicated with Distort using the Shift key.

  • Set reference point for multiple objects in the middle of the document

    Hello Community,
    I want to mirror a layout.
    So I:
    1. Select all the objekts
    2. Set the reference point to the middle
    3. Mirror the objects
    BUT
    The reference point is the middle of all the OBJECTS. That leads to several objects crossing the border of my document because the layout isn't spread out evenly.
    I want to middle of the DOCUMENT to be the reference point. How can I do that?
    Thanks
    Christian

    Have you fiugured this out on your own?
    I just played around a bit and found a method, but it's not exactly intuitive. Select the object(s), then switch to the Rotate tool. The center of rotation will be defined as one of the transformation handles, but you can drag it to anywhere you like, so move it to the point that you want as the center of your mirror. Hold down the Alt/Opt key, and click the reflect button to make a mirrored copy. Without the modifier key the original objects will mirror their position around the repositioned reference.

  • How to always rotate objects around the same point, even using the right-click menu?

    I need some of my objects to always rotate around the same point. How can I select a point which will stay that way?
    Using the rotate tool resets after deselecting.
    Also, I'd like to rotate objects around a certain point even when using the right click > Transform > Rotate.
    Is it possible?

    Right, so this is where Illustrator falls short with respect you your need, but only in the sense that the reference point can't be made to stick. You can, however, use Smart Guides to make it so the point is easy to set at exactly the same location, (especially since your object has an anchor point there), manually before each rotation.

  • Snap object reference point to grid

    How can I snap the center of an arbitrary symmetrical
    object to the grid?
    For instance the center of a circle or rectangle.
    According to this discusssion it's not possible:
    http://forums.adobe.com/message/3759721#3759721
    How can I define a reference point in an arbitrary object
    or in a group of objects and snap this to the grid?
    Best regards  --Gernot Hoffmann

    Thanks for all contributions, much appreciated.
    I'm apologizing for not giving points, in my opinion it's a
    somewhat childish concept.
    Mike #1+ #4, thanks for taking the time.
    Carlos #5: this doesn't work here with Snap to Grid.
    It works with Snap to Point. This is a true alternative,
    probably intended by the programmers.
    I'm still using CS2, there may be a difference.
    JET #9: thanks for the hint. Making ten years long
    arrowheads in PageMaker manually, I had missed
    the possibilities in InDesign. 'Help' doesn't mention
    arrows or arrowheads. It's a feature in Stroke, simply
    accessible by Start and End.
    The very good news is this: Adding an arrowhead to
    a line doesn't make it longer!
    Perhaps the Illustrator staff should consult the InDesign
    experts...
    Problems solved - I can use InDesign and my own Post-
    Script graphis for docs like this:
    http://www.fho-emden.de/~hoffmann/project18032004.pdf
    Best regards --Gernot Hoffmann

  • Can one reference points to many objects?

    HI friend:
    Can I use one object reference points to all objects defined in same class? Because sometimes I only want to access some instance methods and they require a object reference to access. And it doesn't matter which object it is. For example:
    I have a table class:
    public class Table
    int tableNo;
         int tableSize;
         String tableSta;
         String reserName;
         public Table(int n, int s, String c)
              tableNo = n;
                        tableSize = s;
                        tableSta = c;
    Somewhere in the future, I will define a search method (a non-static method) inside table class and it doesn't really matter which object I use to call this method. Because the searching target is all the objects of this Table class. Is it possible to create 50 table objects from another class and use one object reference points to all these objects created and use that reference to access the search method?
    Here is the coding in another class:
    for (int i=1; i<=20; i++)
                   table = new Table(i, 2, "vacant");
                   for (int i=21; i<=30; i++)
                   table = new Table(i, 4, "vacant");
    for (int i=31; i<=50; i++)
                   table = new Table(i, 8,"vacant");
    Can I use table as object reference to access search method?

    Because if the method is static, it can't process instance variables, such as Table objects. But when I implement the search() method, it should search all table objects. That's why I don't want make the method static. :-)

  • Set reference point in objects and measure distance

    1) How can I set the reference point in objects?
      for example:  
            a) exactly in the center of a pad or a via
            b) exactly in any corner of the board outline
    2) How can I measure the distance of two points with the maximum accuracy?
      for example:
            a) measure the distance between two pads or via
            b) measure the lenght of a line

    dear Semaphore, thanx for your response.
    I already use the ways that you refer me, but like this I can't measure with accuracy, or setting the zero reference is not guarantee that I set it exactly in the center of via or pad.
    With grid seted in smallest option is difficult to target the center of a pad, and also is difficult to target the point in the edje of a line with accuracy. With ruler I also have the same problem, I cant be sure that the ruler is pointing exactly to the center of a via or pad.
    That I need is a kind of a snap option to attach the mouse-cursor exactly in the center of an object, that can help me to target exactly in the center and have an accurate measurement or accurate set the zero reference without mistake.
    Any other suggestion for accurate measurements?

  • Rotate an image after clicking two times on reference points on the picture

    Hello Community!
    I am looking for a solution to rotate an image by clicking on two reference points on the image. The two coordinate pairs of the mouse clicking can give me the rotation angle with simple geometry. After that I will rotate the image with the calculated angle.
    My problem is: How can I get those two coordinate pairs? I wanted to do it with an easy MatlabScript "input: path ... imread(path) ... imshow ... ginput(2) ... calculation ...output: angle". Apparently imshow doesnt work in Labview
    I already have the Mouse Down event but I dont know how I can make Labview let me click EXACTLY and ONLY two times on my picture and store the coordinates.
    Does anyone of you have a glue/ hint how to do that? 
    Best,
    Annki
    (Started LabView 2 weeks ago)
    Solved!
    Go to Solution.

    Hi Annkitranky,
    welcome to the forum!
    Here is one that works well: http://en.wikipedia.org/wiki/Cyanoacrylate  (Sorry, I couldn't resist...)
    Check this out: http://forums.ni.com/t5/LabVIEW/Using-mouse-click-to-return-image-coordinates/m-p/890731 and http://forums.ni.com/t5/LabVIEW/How-to-find-cursor-position-on-an-image-in-LabVIEW/m-p/1862495 There is a suggestion not marked as a solution, but I think it is: see last posts there; User Event Structure with the position reported implicitly. Further, I would put the Event Structure in the While Loop, where I wait for user input, collect the user inputs and finish (execute rotation on a two-element array).
    If you have a code or something, post it.
    Cheers

  • Custom Reference Point in CS5

    I just upgraded from CS3, in which I used to be able to click anywhere on an object with the scale or rotate tools in order to set a custom reference point. Now I can’t do that (unless I hold the option key, which brings up the settings box—which I don’t want). Having to drag the reference point is a hassle. What happened to the functionality of simply clicking to set a new reference point?
    One CS5 help article says, "Or, with one of these tools [scale, rotate, shear] selected, click anywhere on the object or page. The reference point moves to that location.” That’s exactly the behavior I was expecting, but I can’t get it to work at all.
    Any help much appreciated!

    Unfortunately, you've described exactly exactly waht the new options are, and it's not pretty. Find something new that you do like, and then call it even. You'll feel better.

  • Passing objects by reference in PL/SQL

    Hi,
    I have come across an unexpected problem using object types in PL/SQL that is causing me some grief. I'm from a Java background and am relatively new to Oracle Objects but what I'm trying to do is fairly trivial, I think. The code below illustrates the problem.
    --- cut here ---
    CREATE OR REPLACE TYPE test_obj_t AS OBJECT
    num INTEGER,
    CONSTRUCTOR FUNCTION test_obj_t RETURN SELF AS RESULT
    CREATE OR REPLACE TYPE BODY test_obj_t IS
    CONSTRUCTOR FUNCTION test_obj_t RETURN SELF AS RESULT IS
    BEGIN
    num := 0;
    RETURN;
    END;
    END;
    CREATE OR REPLACE PACKAGE test_obj_ref AS
    PROCEDURE init(o IN test_obj_t);
    PROCEDURE inc;
    FUNCTION get_num RETURN INTEGER;
    END;
    CREATE OR REPLACE PACKAGE BODY test_obj_ref IS
    obj test_obj_t;
    PROCEDURE init(o IN test_obj_t) IS
    BEGIN
    obj := o;
    END;
    PROCEDURE inc IS
    BEGIN
    obj.num := obj.num + 1;
    END;
    FUNCTION get_num RETURN INTEGER IS
    BEGIN
    RETURN obj.num;
    END;
    END;
    --- cut here ---
    The object type test_obj_t holds a integer and the test_obj_ref package holds a 'reference' to an instance of the object.
    To test the above code I run this PL/SQL block:
    declare
    obj test_obj_t;
    begin
    obj := test_obj_t;
    test_obj_ref.init(obj);
    dbms_output.put_line('obj.num='||obj.num);
    dbms_output.put_line('test_obj_ref.get_num='||test_obj_ref.get_num);
    test_obj_ref.inc;
    dbms_output.put_line('obj.num='||obj.num);
    dbms_output.put_line('test_obj_ref.get_num='||test_obj_ref.get_num);
    test_obj_ref.inc;
    dbms_output.put_line('obj.num='||obj.num);
    dbms_output.put_line('test_obj_ref.get_num='||test_obj_ref.get_num);
    end;
    giving the output:
    obj.num=0
    test_obj_ref.get_num=0
    obj.num=0
    test_obj_ref.get_num=1
    obj.num=0
    test_obj_ref.get_num=2
    It appears that the object held by the test_obj_ref package is being incremented as expected, but I would have expected the object declared in the PL/SQL block to be pointing to the same object and so should report the same incremented values.
    I suspect that the object is copied in the call to test_obj_ref.init() so I end up with two object instances, one that is held by the test_obj_ref package and one in the anonymous block. Although, I thought that all IN parameters in PL/SQL are passed by reference and not copied!
    Am I right?
    Is passing objects by reference possible in PL/SQL, if so how?
    I'm using Oracle 10.2.0.3.
    Cheers,
    Andy.

    the object being passed to the test_obj_ref.init+ procedure is passed by reference; however, when you assign it to your package variable obj it is being copied to a new instance. you can pass object instances as parameters to procedures using the +IN OUT [NOCOPY]+ *calling mode, in which case modifications to the attributes of the passed object will be reflected in the calling scope's instance variable.
    oracle's only other notion of an object reference is the +"REF &lt;object-type&gt;"+ datatype, which holds a reference to an object instance stored in an object table or constructed by an object view.
    hope this helps...
    gerard

  • Does Java pass objects by Reference

    The following is my code:
    public static boolean isValid(String tester, Integer intHours, Integer intMinutes)
              int dotPosition = tester.indexOf('.');
              String hours = tester.substring(0, dotPosition);
              String minutes = tester.substring(dotPosition +1, tester.length());
              try {
                        intHours = Integer.valueOf(hours);
                        intMinutes = Integer.valueOf(minutes);
         } catch (NumberFormatException nfe) {
         return false;
         return true;
    What Iam trying to do is pass the Integer Objects by reference so that they retain their values outside of the scope of the function. My teacher told me that objects are passed by reference in Java but (even though the values are being changed within the function they are not retaining their values outside the scope of the function. Was my teacher wrong?

    aden_jones wrote:
    So to get behaviour similar to passing by reference I would need to create my own object and give it a method e.g. MyObject.changeValue(new_value) but I can't do that with Integer objects because I can't change their actual value I can only change the Integer Object that is being pointed at??You cannot achieve behavior that duplicates PBR with Java.
    However, if by "similar to passing by reference" you mean that the method makes a change that the caller can see, then, yes, you need to pass a reference to a mutable object, and change that object's state inside the method.
    void foo(Bar bar) {
      bar.setBaz(123);
    Bar bar = new Bar();
    bar.setBaz(999);
    foo(bar);
    // after foo() completes, the caller now sees that the Bar object's internal state has changed
    // from 999 to 123Note the difference between changing the value of a caller's variable (which can be done with PBR, and cannot be done in Java) and changing the state of the single object pointed to by both the caller's variable and the method's copy of that variable (which can be accomplished in Java, as it does not rely on PBR).

  • Rotating objects in a table

    I have dropped an object (picture) into a pages document. Then I rotated it with 90°. When I copy or drop the picture into the cell of a table, it is rotated back into the original orientation and I cannot rotate it any more.
    Is there a possibility to rotate objects in table cells?

    The only way I can find to do it actually doesn't insert the graphic in the table per se. It's a workaround that may or may not suit your purposes. FWIW:
    1. Click outside the margin and insert a shape (square) as Fixed on Page and in the Wrap Inspector deselect Object Causes Wrap.
    2. Drag it over the cell you want the picture in and size it to fit the cell.
    3. In the Graphic Inspector's drop down Fill menu, choose Image Fill and choose your picture (rotated as you want it). In the drop down menu below the Fill menu, select either Scale to Fit or Scale to Fill, as necessary.
    4. When you have the picture situated as you want it, click on the picture and shift click on the table and from the Arrange menu select Group.
    At this point you can set it for Moves With text if that is what you need, or leave it as Fixed on Page and position it where you want it.
    Hope this helps.
    Walt

  • Rotate about a specific point

    I have a script that creates geologic map symbols, positions them, and rotates them into their proper orientation.  However, I do not know how to rotate about a specific point (not the center of the group). The portion of script in question is:
    if (dlg.symbol.bedding.value) {
    var myLine = stGroup.pathItems.add();
    myLine.stroked = true;
    myLine.setEntirePath([[posx,posy],[posx+3,posy]]);
    myLine.strokeWidth = .75;
    var myLine = stGroup.pathItems.add();
    myLine.setEntirePath([[posx,posy - 6.75],[posx,posy + 6.75]]);
    myLine.stroked = true;
    myLine.strokeWidth = .75;
    stGroup.rotate(-azi);
    and I wish to rotate around the point [posx, posy].  How do I accomplish this?

    Thanks!  That worked.  For future reference, here's the modified section of script:
    if (dlg.symbol.bedding.value) {
    var myLine = stGroup.pathItems.add();
    myLine.stroked = true;
    myLine.setEntirePath([[posx,posy],[posx+3,posy]]);
    myLine.strokeWidth = .75;
    var myLine = stGroup.pathItems.add();
    myLine.setEntirePath([[posx,posy - 6.75],[posx,posy + 6.75]]);
    myLine.stroked = true;
    myLine.strokeWidth = .75;
    mapDoc.theOrigin = mapDoc.rulerOrigin;
    mapDoc.rulerOrigin = [posx,posy];
    stGroup.rotate(-azi, undefined,undefined,undefined,undefined,Transformation.DOCUMENTORIGIN);
    mapDoc.rulerOrigin = mapDoc.theOrigin;
    Another parameter in the rotate method to specify a rotation point would be nice.  Still, this works just fine, so no complaints from me.

  • Set Default Reference Point to something other than center?

    I am making an action to place an smart object into my images to make a watermark...i would like for the image to place in the bottom right corner of the image but since the reference point is set to center it obviously places the image into the dead center of the piece.
    Is there a way to set the default reference point to the bottom right reference point by default so my placed image will automatically go to the bottom right of the image and so my action can run through completely without me having to create a dialog box each time to move it where i need it?
    I am using CS2 on both Mac (x10.5.1) and Windows 2000.
    Thank you,
    Leslie

    Look at this video tutorial:
    http://av.adobe.com/russellbrown/BrandingSM.mov

Maybe you are looking for

  • How to get Java source in applet stack trace to debug Java security manager

    How can I get line numbers for Java source in stack traces for my applet? I'm having a problem with my code-signing certificate. On one of my applets, I consistently get a NullPointerException inside the security dialog code in the JDK. As a result,

  • Need to run the report in different languages

    Hi All, i need to run the Bex report in different languages (SAP-BI). to maintain the Language plase give me the tables name. To maintain Query Description :Table? To maintain Desription of Key fig and CKF and RKF : Tables Regards Srinu

  • Help!!  White line around image with placed in Illustrator from Photoshop, possible CMYK issue?

    I have a CMYK file, outlined product, that looks perfect in Photoshop.  When I place the image into Illustrator, it shows up with a thin white line around parts of the product (fyi - it shows up on a print as well). I have tried to place an RGB file

  • Why is CS6 on trial when I've had it for a year

    Last year i started my game programming course and got a CS6 master collection code that I used and then a few months later they told me to create an account which I did. I then used my code again attaching it to my account instead of just my compute

  • Better library management & offline files

    Having recently converted from Aperture (mostly on account of more fluid editing, more intuitive brushes [I can go into detail if desired], and IMHO better image quality for my main camera), I do miss one aspect of Aperture's file management: the fac