Set reference point for coordinates

How to set the reference point for a rectangle in coordiate system using javascript? I want to set this value before setting the geometricBounds property
Thanks.

Hi,
Try this:
app.activeWindow.transformReferencePoint = AnchorPoint.BOTTOM_RIGHT_ANCHOR;
Options:
AnchorPoint.BOTTOM_CENTER_ANCHOR
AnchorPoint.BOTTOM_LEFT_ANCHOR
AnchorPoint.BOTTOM_RIGHT_ANCHOR
AnchorPoint.CENTER_ANCHOR
AnchorPoint.LEFT_CENTER_ANCHOR
AnchorPoint.RIGHT_CENTER_ANCHOR
AnchorPoint.TOP_CENTER_ANCHOR
AnchorPoint.TOP_LEFT_ANCHOR
AnchorPoint.TOP_RIGHT_ANCHOR
Hope that helps.
Marijan (tomaxxi)
http://tomaxxi.com

Similar Messages

  • 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.

  • 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?

  • Script to set reference point

    I need a script to set transform reference point at desired position without clicking in these tiny squares in the selectors, both in control panel or transform palette.
    I will bind these scripts to numpad keys with AutoHotKey and will be happy at last.
    Help me, please, I have little experience in scripting and see entry for grabbing this task.

    Look up Transformation in the references

  • User set cliping points for Highlight and Shadow

    OK I know Lightroom 3 is currently available as a Beta version and is not complete and there may be more features to come.
    But
    Wouldn't it be nice in the develop module to set the point at which you get clipping warnings for highlight and shadow.
    I ask this as a lot of my work goes straight out for repro, and it would be usefull to be able to set the highlight  to say 90-95% and the shadow to about 15-20%.
    OK I know I can run  a tool over the image and see what the percentage is, but it would be a lot esier if I could set my own limits and just watch for the red and blue "blobs"
    Just a sugestion
    John c

    I too find the FTP server implementation to be sorely lacking in OS X Server. There is no option to share out only the designated FTP root folder without showing the other share points. It seems impossible to lock down subdirectories to specific users with letting them see the contents of the root directory. Maddening!
    I'm looking at other FTP server options. Rumpus comes highly recommended, but I also just found CrushFTP which also looks intriguing, especially its option to integrate with LDAP - something that Rumpus does not do. CrushFTP is also significantly less expensive.
    -Doug

  • IMG Setting for Fleet Management - Set Reference Object for Vehicles

    On other SAP 4.7 systems I have been able to access in the IMG "Set Reference Object Screen for Vehicles" under the "Settings for Fleet Management".  I am currently working in a system that doesn't have that option in the IMG.  What do I have to do to get this menu in the IMG?

    Hi,
    All the extra features provided by business functions in PLM are documented in note [1389108|https://service.sap.com/sap/support/notes/1389108]. See the pdf attachment in that note.
    -Paul

  • Set spawn points for each sprite?

    heres my dilema
    i currently have 5 sprites and 5 different set co ordinates for each one to spawn into with individual behaviour scripts, however i want each sprite to spawn into one of the set co ordinate without more than one of them spawning into the same point.
    so eventually each sprite will spawn into a random set co ordinate
    so something like
    pRandomStartingLoc = (200,100) (300,100) (400,100) so each sprite spawns into only one set of cordinates without more than one spawning into the same one

    Okay fourth time may be the charm.
    This behavior contains a Single Locations list that is global to all sprites with this behavior attached. Each sprite picks a random loc from the list and then deletes that value from the list so that no other sprite can use it.
    Note: This uses some advanced Lingo, but you should only need to replace the point values in the list of point values.
    --  Random Set behavior
    property  pSp   -- this sprite
    property  pStartLoc  -- this sprites location at beginsprite
    -- global/static behavior property
    property  curLocs  -- list of sprite locations used by ALL sprites with this behavior attached
    on beginSprite me
      -- define our quasi global locations list if it is not defined or is empty
      if me.script.curLocs.voidP OR me.script.curLocs = [] then
        me.script.curLocs = [point(200,100), point(300,100), point(400,100), point(500,100), point(600,100)]  -- Define Sprite Locs Here
      end if
      Locs = me.script.curLocs
      pSp = Sprite(me.spriteNum)
      pSp.loc = Locs[random(Locs.count)]   -- set my location to random point from list
      Locs.deleteOne(pSp.loc)  -- remove this Loc from list so that no other sprite can use it.
      pStartLoc = pSp.loc  -- store current location in case you want to return to it
      -- debug code. Check message window
      put "Sprite " & me.spriteNum & " is at location " & pSp.loc
    end beginSprite
    on goToStartLoc me
      pSp.loc = pStartLoc
    end
    on endSprite me
      me.script.curLocs = void
    end
    on reset me
      me.endSprite()
      me.beginSprite()
    end

  • Set starting point for x y position

    I've never used a program as frustrating as Flash CS4. How
    can I change the location of the X and Y starting point? I have
    some that are bottom left, some are near the center, others top
    left. It's very annoying.

    Francois - Thanks! Looks like set/get_view_property() is exactly what I need. I was hung up on set_canvas_property(), especially since my trigger was compiling with x_pos as a valid property. I completely forgot about set/get_view_property.
    Frank - I am using (small) stacked canvases to represent objects that the end users will be able to reposition. The new x,y coordinates will be saved in a database table, and the form will retrieve/apply these coordinates at runtime. Yes, I have accounted for the potential overlapping canvas issue.
    ...Still puzzled why get_canvas_property() compiles with x_pos as a property... but it doesn't matter.

  • Setting anchor point for changing page size

    Hi,
    I want to trimm the size of the pages of a document.
    Since the pages should be trimmed not on all side equal I need to set an anchor point before changing the page size.
    How can this anchor point be set for the whole page?
    Thanks for your help

    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics.html#translate(int,%20int)

  • Setting reference levels for scalar measurement of waveform

    Dear all,
    it would be great if somebodey could give me some help with the following:
    1. I am doing a "VOLTAGE AVERAGE" scalar measurement of a waveform. Is it correct, that I do not need to set the reference levels via the property node for this kind of measurement?
    2. If I am doing the "VOLTAGE AVERAGE" scalar measurement for e.g. 100 subsequent waveforms (multiple records) using a for-loop structure to fetch each waveform one-by-one, should I use the "ni Scope Clear Waveform Measurement Stat.vi" after each scalar measurement (after each iteration of the for-loop)?
    It would be very nice if somebody could give me some comments.
    Kind regards,
    beam

    1) The reference levels do not apply to the Voltage Average scalar measurement, so you don't need to set these. (They apply to rise time, fall time, width negative, width positive, duty cycle positive, and duty cycle negative measurements.)
    2) Clearing the waveform measurement statistics will not affect the Voltage Average measurement itself. The driver can give you back not only the scalar measurements, but also statistics about those scalar measurements. When you call niScope Clear Waveform Measurement Stats.vi, it will reset the statistics, but will not affect the actual measurement that you are making. For example, say you fetched the Voltage Average scalar measurement four times, without clearing the statistics...
    Voltage Average Mean (a statistic of the measurements)
    +1 +1
    -1 0
    +1 .33333
    -1 0
    If you cleared the statistics after each measurement fetch, you would see this...
    Voltage Average Mean (a statistic of the measurements)
    +1 +1
    -1 -1
    +1 +1
    -1 -1
    since the statistics get reset every time.
    To make a long story short, if you are only interested in the scalar measurement itself (Voltage Average, in this case), you don't need to call niScope Clear Waveform Measurement Stats.vi after each measurement.

  • Set Rotate Point for an Action

    Hi all,
    I'm trying to set an object action to rotate on a presentation that I'm putting together, however I don't want it to rotate about its centre but rather one of the points. I don't see how I can do that. Any suggestions?
    Regards
    Brian

    Brute force (unless someone comes along with a more elegant solution)...
    • Select, and duplicate the object to be rotated.
    • From the Arrange menu, flip the duplicate copy vertically, then horizontally.
    • While still selected, move the copy so that its intended rotation point is on top of the intended rotation point of the original object.
    • With the Graphics Inspector, adjust the duplicate's opacity to zero.
    • Shift-click on the original object to add it to the selection.
    • Choose "group" from the Arrange menu.
    • Finally, apply the intended rotation to the grouped object.

  • Actions which include Set Reference Pt via Transform Panel failing consistently during playback

    The title pretty much says it all. I have two different Windows XP machines, both got upgraded to CS 6 (the x.0.0 release, the Release Notes for the x.0.1 don't directly address this, but if this topic pulls up blank, I may go that route... it requires running an approval gauntlet via IT, otherwise I'd already have done it).
    Repeatable problem is this:
    0. Create and select an object. Even a basic rectangle will do.
    1. Creat a new Action.
    2. Begin recording.
    3. In the Transform Panel, specify a new Reference Point that isn't the lower right (if your machines are like mine, you will get a "double hit" of the same Action step, no matter how gently you click on the new Reference Point). I say "not the lower right" for a reason in a second.
    4. Feel free to make a couple other numeric transforms in the Transform Panel. I tried adjusting Width and Height.
    5. Stop recording.
    6. Undo back to the original state (though I suppose it isn't necessary to deomnstrate the point)
    7. Run the Action.
    First thing, the Set Reference Point seems to be utterly ignored, *or* sometimes it sets to the lower right and stays stuck there. I made one Action that was just a series of moving the Reference Point around a rectangle clockwise. The Action failed after the first Set and then stayed locked on the lower right for no discernible reason.
    In an attempt to revisit some old Actions that were working without fail under 5.5, I loaded those. For those imported Actions, every time playback hit a step calling for a "Transform Panel," it would return an error dialog "The object "Transform Panel" is not currently available."
    What in the blue blazes is going on here? Needless to say, this is taking a wrecking ball to our dozen mission-critical Action Sets, which all rely upon setting transforms to fit particular spaces automatically, precisely and consistently, and which, I might add, worked fine under 5.5.
    On the positive side, the bug where movement of objects by their X,Y coordinates via the Transform Panel during Playback seems to be fixed. So, I guess there's that.
    Help?
    P.S. Addendum: if anyone on CS6 (16.0.0 and/or 16.0.1) can at least run through the test case above and either confirm or deny that I am crazy to be witnessing this, that would be helpful, too.

    I FIXED IT!!!
    How? I made a simple Action that just recorded my changing the reference point around an object clockwise, saved the Action, then cracked it open in a text editor (Wordpad, in my case).
    Most of the items aren't terribly useful (for instance, Adobe, why are dialog texts in machine code rather than human-readable strings? That's be darn handy), BUT at the end of each step of the Action (called Events), I noticed that there was a variable being set to "8" every time. Yes, there are 9 possible reference points, but you need to think like a programmer/computer here. Yep, the first point isn't "1," it's "0." So, counting left-to-right, top-to-bottom gives you...
    0 = Top Left
    1 = Top Middle
    7 = Bottom Middle
    8 = Bottom Right
    So it isn't the playback that's at fault, it's THE ACTION RECORDER getting it wrong. I changed that last "8" variable to a "1" and brought it back into Illustrator and ta-da! My reference point gets accurately set at the Top Middle and proceeds from there! YAY! HAPPY DANCE!
    PS Adobe, YOU'RE WELCOME.

  • Reference point

    Hi Friends,
    Hope all are doing well,
    I hv one doubt.
    We maintain the reference point in network activity(in assignment tab) for BOM transfer.
    When I am going to enter any value suppose A there I am getting the error as
    Entry A does not exist in TCNRFP --check entry.So now
    I want to ask that whether reference point is maintained by PS person if yes then how can I do this and if not then what I shud do?
    Help will be rewarded.
    Regards

    Hello Amit,
    It is required define reference points in customizing before using the same in application.
    Only those reference points are allowed for useage. However, you are free to use same reference in multiple projects.
    Path is SPRO--- Project Sys -
    Material --- Bill of MAterial --- Define reference points for BOM transfer.
    However, there also provision to define user specific fields as reference points. Any field which is common in activity and BOM item level can be used. Should define it in customizing.
    Path is SPRO--- Project Sys -
    Material --- Bill of MAterial --- Define field in BOM and activity as reference points.
    Example: can be Sort string or any other field.
    Thanks
    Saikishore Ganga.

  • 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

  • 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

  • Creative Cloud updates fail due to error U43M1D212

    Problem: Creative Cloud desktop is installed. Login to Creative Cloud works. Applications can be installed BUT applications CANNOT be updated. Error message: "Unable to reach Adobe servers" System: Windows 7 Ultimate, 64-bit What I've tried so far: 1

  • Help! No output sound

    Hi, I'm in an emergent situation where my Macbook have no output sound. It's a Macbook, but the new lines all call them Pros. Here is what happens: 1. There is a Red Light inside the MIDI port, only in the one where the microphone sign is (the output

  • I accidentally said 'always trust' for a certificate, how do I repair that?

    I was presented with an 'untrusted certificate' warning om my iPhone. Thinking I knew this was because of a self-signed certificate I use I said always trust. But that probably was not  the one after all as I have set up my own trusted root cert whic

  • No error message and no itunes store

    Have downloaded 10.5.2 itunes, now can't open itunes store.  No error message just a blank page.  store seems to load but left with a blank page.  Itunes itself is very slow. Help, I want to buy music

  • PDF Metadata in Adobe Reader 9 Pro

    Hi, I am after specific information on how to edit metadata in Adobe reader 9 Pro....I have a number of new fields that I want to create instead of the standard fields. Is this possible? The fields vary in length. I dont have a great knowledge of jav