About the "Registry point"?

Hi to everyone!
How can i change the registry point of and object?
I dont mean the pivot, i mean the "registry point".
When i want to center an object to the perfect center, if i put 50%, this count since the upper left corner, and adds all the height and width of the same object. I want to count since the center of the object.
How can i do this? Somebody can help me, please? Thnx a lot.

since any div is a rectangle or a square I suppose you can calculate the coordinate of the center like this:
the x axis would be at 1/2 width
and the y axis at 1/2 height.
var xAxis = 400/2;
var yAxis = 300/2;
so the registry point would be at (xAxis, yAxis)
Therefore if you wanted to center the element  400 x 300 according to a stage that is 500 x 400 and the center point you could use this:
var xAxis = 400/2;
var yAxis = 300/2;
var xPos = (500/2 - xAxis);
var yPos = (400/2 - yAxis);
sym.$('Rectangle').css({
     left: xPos,
     top: yPos
You could generalize this by getting the height of the stage and the height of your element as well as the width of your stage and the owidth of your element and apply the formula.
var elementHeight = sym.$('Rectangle').height();
var elementWidth = sym.$('Rectangle').width();
var stageHeight = sym.$('Stage').height();
var stageWidth = sym.$('Stage').width();
sym.$('Rectangle').css({
     'left': stageWidth/2-elementWidth/2,
     'top': stageHeight/2-elementHeight/2
Here is the file with 2 different elements, a rectangle and an ellipse being centered on the stage according to their registration point which is in this case the middle of the element.
https://www.box.com/s/79oh194blyk45wjcvw74
If you wanted to center the element according to its origin, then it would be different.
Hope this helps.

Similar Messages

  • I keep getting an error when I launch, about the registry setting being incorrect. I have reinstalled several times. Also when I try to burn a disc, it says No recorder found

    I get an error about the registry settig when I try and launch Tunes. Also when I try to burn a playlist, it says "no recorder found"

    This may help:
    iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows
    Also try the driver section of:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • I get an alert about the registry settings are missing and to reinstall iTunes.  It did that and still get the warning.  ITunes won't recognize my iPhone as a result.

    I get an alert saying "The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of installing other CD burning software.  Please reinstall iTunes."  I reinstalled iTunes, restarted pc, and I checked what other CD/DVD burning software by searching on DVD.  Results: Cyberlink DVD suite deluxe, HP Smartmedia DVD , and Windows DVD Maker, all of which I've had forever.  Should I delete these and try to reinstall iTunes again?  Are there other reasons that this message pops up?

    Got the same Pop-up and Apple Sppt told me that UNinstalling Quicktime had fixed this issue in most other cases. I asked IF I had to start over with Uninstalling iTunes, and she answered Yes.
    Read my too-long thread (below) that has an Apple Sppt link at the start about Manual Deletes of several Apple Folders/files being a Key to a proper Uninstall / Re-install of iTunes.
    Do as much as you want but this is what experience led me to so far. We haven't done it yet since the iPhone Sync'd OK and CD burning is not a priority.
    https://discussions.apple.com/thread/5901869

  • About the 3rd point of my question

    Yesterday I posted my question here. And one said that the 3rd point of my question is not so clear. I am sorry. And I repeated it here.
    In many cases it is interesting to know where a particular point in the image space moves in the course of time series. So, what I would like to do is:
    The images are arraged in a virtual space, where the z direction is the time axis. one can examine the whole image series by sliding the viewing slice up and down the z direction ( this is what I mean last time in the 3rd point.) :)
    Can I realize this function using JAVA 3D?
    Many thanks.
    tony

    So you have a whole series of images, and you'd like to stack them ontop of each other to represent the image changing over time? Shouldn't be too difficult, you'd just use something like a mouse behaviour to zoom the view via the mouse. And if you wanted to get a smoother transition you could alter the images transparency depending on the position of the camera.

  • Can somebody give me a good explanation about the exclamation points?

    I would really like to know why they show up suddenly, wnen nothing has been done to change anything except to sync the ipod.
    So many of my songs suddenly get the excl. point, and I can't locate them on hard drive (know they must be there, just not computer savvy enough to locate them), but they still show up on my ipod and play without any problem.
    Where might I find them? (when I answer yes to do you want to locate the file, it doesn't really help much).
    When I do actually find the file, what can I do to remove the excl. point so that I can edit title or artist, etc.?
    I'm just really curious as to why, for seemingly no reason, the excl. point just suddenly appears.
    Thanks,
    Sue

    The ! next to the songs can mean several things. The files have been moved from the iTunes music folder, or deleted from your computer entirely. Or the song files have been renamed/edited or otherwise changed by some method other than iTunes. Or they are on an ext hd which may at some point become disconnected or powered off. In any event, iTunes has lost track of these song files. If it's none of these things that's causing your issue, then I have no explanation.
    You can use Explorer to search your computer for missing songs.
    On the Start menu, click "Search".
    Select "All Files and folders".
    In the "All or part of the file name" field, type the song name and then click "Search".
    If you see the file you are looking for in the Search Results window, you can add it back into your iTunes library.
    See: How to add songs from your hard drive to iTunes.

  • Spend more 3500 a year - what about the excess points?

    Hi, 
    I'm a eliteplus member and have spent more than 3500 in this year. My question is, will the excess money be added to the next calendar year, or will it be reset on Jan 1 2016?
    Thanks for answering!!!
    Solved!
    Go to Solution.

    Hello again roshinichi,
    I hope that you are enjoying your Wednesday morning so far.
    I pulled up your My Best Buy™ account and can see that you have already requalified for Elite Plus status during the 2015 calendar year.  When it comes to qualifying for Elite or Elite Plus status an eligible Best Buy purchase would only count towards the calendar year in which it was processed, and any amount spent over the required $1,500 (Elite) or $3,500 (Elite Plus) would not carry over to the following calendar year.  Your spending total would reset to $0 on January 1st.
    As I mentioned in my response yesterday, please feel free to send me a private message if you have any other questions about the My Best Buy™ program or your account.  I am always more than happy to help.  You can send a private message by clicking on the blue button in my signature that is labeled "Private Message."
    Thank you for reaching out to us on the forum and congratulations on requalifying for Elite Plus status!
    Derek|Social Media Specialist | Best Buy® Corporate
     Private Message

  • QM about the Inspection Points

    Hello everyone, I have create the inspection points in the process of the material incoming inspection. BUT, now our Data Entry input worry information in the inspection points. SO, how can i delete this point ?
    I looking forward to your answer, thank you very much~~!

    once create point you cont  do any thing  remove inspection point  in routing or receipe then create  production order or process order  then you wont get the  inspection point in results recording

  • Everytime I start time machine, my computer backs up +/- 250MB, then freezes.  Tried it with 3 different external drives, all stop at about the same point (they all work fine on other macs). Any suggestions?

         The drives I have are Seagate 1TB GoFlex portable drives (one has UBS 3.0, the other USB 2.0), and a WesternDigital 1TB passport (USB 3.0).  I originally tried to backup with Time Machine using the Seagate USB 3.0, and when that didnt work, Seagate suggested maybe since my operating system is a little older, that I try with a USB 2.0, so they sent me another NEW external hard drive, with the USB 2.0.  Had the same issue.  Frustrated and convinced that Seagate just  sucked, I went and bought the 1TB WesternDigital passport (USB 3.0).  Have the exact same issue again.  Every drive was new, and formatted for mac.  When I started time machine it started to back up my files, but froze after copying give or take 250 MB (usually 252.5MB, to be exact).  I went and tried the drive on several other macs, and none of them presented any problems.  I also tried dragging individual files, but it still freezes on pretty much anything bigger than +/- 100MB.  Disk Utility says that all the drives are fine. Obviously this is a problem with my computer, and not the 3 brand new external drives.  I thought about upgrading to OSX 10.6, but don't know if this'll help or not (plus, I'd really prefer to have all the files backed up on a drive before doing that, just in case).  I dont know what else to do.. called apple, but I'm not about to pay them $50 to have them MAYBE give me a solution (done that twice now for previous unrelated issues, and each time they just told me to take it to a computer repair place.)  Just seeing if anyone out there has a solution before I cave and take it back to the certified computer guys for them to figure it out.. Also, I live in Montana and theres no apple store anywhere close (not suprising), so taking it to an Apple Store is just not an option.
    Side note:  Seagate tech support is awesome; they tried everything to solve the problem, and they even bent their rules a little to send me a new drive, even though it wasn't a malfunction issue with their drive.  Really helpful, friendly people, which is much more than I can say for Apple at this point...

    this is what you need to do to exclude everything apart from desktop.
    on time machine preferences, click on Options
    click plus sign, on the new window, click macintosh HD
    do a Control + A then deselect users then click okay
    go to options again, plus sign, go to users, control +A then deselect your user account
    go to options again, plus sign, go to your user account, control + A, deselect desktop
    start the back up.

  • Curious about the way points may have once been given

    Were points once assigned in the past not according to solved or helpful answers, but simply according to the number of posts made? I'm asking this because I occasionally encounter someone with maybe, several bars, registered years ago, who seems almost completely helpless technically.

    So, conceivably, absent any negative points, someone could have gotten up to two bars, maybe even more, just on the basis of the number of points?
    Yes.
    Did this happen?
    Yes.
    Does this explain the contradiction I've sometimes noticed between the obvious lack of technical chops and number of bars for some members?
    Yes.
    What was the mechanism for voting on posts?
    Each member, according to their level, was given a certain number of votes to use daily and weekly. Members were allowed to vote on any post in Apple Discussions. Members were allowed to vote posts up or down and they were able to award individual posts up to five votes.
    The algorithms for point gains and losses through votes that were received were fairly opaque. I believe the wording was something like "A point may be gained or lost for every five positive or negative votes that post receives," so it wasn't always easy to predict how (or how many) votes on individual posts earned or cost points for that post.

  • How to stop the registry without JVM restart

    Hi,
    I have a question about the Registry object. In my project, custom RMIClient/ServerSocketfactories are used (a wrapper to SSL), and a few components (distributed) have their own registries. These applications read their config files from XML documents. One of the parameters in the config files are keystore locations and passwords for these keystores. These applcations offers a simple CLI interface allowing to execute a few commands (like q - quit, r - restart and such).
    Now when I type the 'r' option so the application can restat and parse it's configuration file again, there is a possibility that some value related to the socket factories (keystore location or password) has changed. In that case, the registry created by CreateRegistry is no longer valid since it uses socket factories that are based on the old parameters.
    What I want to achieve is to stop the existing registry and create a new one (I'm not using the rmiregistry deamon). Of course I cannot simply create new registry cause then I'd get an internal error (ObjID already in use). I safely unbind all existing objects and unexport objects for which there can possibly be any references, but still I need to stop the entire registry and start a new one. I'd like to know if this is possible at all (via some deep Java guts?) without restarting the whole JVM?
    thanks,
    owczi

    Worked like a charm. I've seen Registry's javadoc hundreds of times and still I couldn't associate a simple fact that Registry extends Remote :]

  • The registry refers to a nonexistent java runtime environment installation

    I was having trouble running some Java programs (not my own) in Windows XP, and in the process I uninstalled and installed JRE versions 6, 7, and 8, one at a time, probably in the order 7, 8, 7, 6, 7. The program that had the original problem only worked in V6, but some other programs stopped working. I went back to V7, and those other programs still didn't work. The message was "the registry refers to a nonexistent java runtime environment installation". The only advice I could find with Web searches was to reinstall the JRE. Needless to say, that didn't work.
    So I looked at the registry, and I found that there were still references to V8, which had been uninstalled. The first was
    HKEY_CLASSES_ROOT\jarfile\shell\open\command - (Default) = "C:\Program Files\Java\jre1.8.0_31\bin\javaw.exe" -jar "%1" %*
    The folder re1.8.0_31 doesn't exist, so I changed it to jre7. That didn't work.
    Then I found
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment - CurrentVersion = 1.8
    I changed this to 1.7, and deleted some following entries such as
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.8 - JavaHome = C:\Program Files\Java\jre1.8.0_31
    retaining entries such as
    HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7 - JavaHome = C:\Program Files\Java\jre7
    That worked!
    So, there is a bug in the installer(s): if you uninstall V8 and install V7, the 'CurrentVersion' isn't set correctly, with the result that the registry points to a non-existent folder. The V8 uninstallation should delete these entries, or the V7 installation should change them.
    Question: Where do I report this bug? Or, better still, would someone report if for me? :-)

    Hello,
    Here's a direct link to the place to report bugs: http://bugs.java.com/bugdatabase/index.jsp
    I would recommend that maybe you see if it hasn't been reported already before submitting it.
    Hope it goes!

  • How do I get the rotate tool to default locate the pivot point in the exact center of an object or group of objects?

    My new copy of CC has the default pivot point set to one side, rather than the center. I know I can manually move the pivot point around, but this is not always exact. Is there a way to have AI determine the exact center and then make this the default?

    s,
    We are not talking about the Reference Points in the Transform palette, are we?
    In any case, you may consider the list.
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • TS1717 since updating itunes yesterday I now can't open it and get a pop up box about the procedure entry point not being located. anyone able to help?

    since updating itunes yesterday I now can't open it and get a pop up box about the procedure entry point not being located. anyone able to help?
    these are the boxes that open up:
    I am unsure as to wether I need to unistall and start again but then worry about the vast amount of songs already in the folder that I would have to reload.

    anyone able to help me with the above?

  • After updated software on mac mini with os x 10.7.5 and restart the mouse pointer after about 30 sec. converted to the rainbow wheel and I can't control the computer.

    After updated software on mac mini with os x 10.7.5 and restart the mouse pointer after about 30 sec. converted to the rainbow wheel and I can't control the computer. The rainbow wheel was runnig 8 hrs and I turn off mac mini by power button, then I turn on mac mini with key Shift and p/w, checked HD. My HD has
    capacity 499.25 GB used 86.91GB. Is there a solution to fix this problem axcept the reinstall os?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.  
    These steps are to be taken while booted in safe mode.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below to select it:
    for k in /Sy*/L*/Ex*/{,.?}*.kext; do test -f "$k/Contents/Info.plist" && /usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "$_" | egrep -qv "apple|Accusys|ArcMSR|ATTO|CalDigit|HighPoint|hp-fax|JMicron|print|SoftRAID|stex" && echo $k; done | open -f -a TextEdit
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    sudo defaults read com.apple.loginwindow LoginHook | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3 
    Repeat with this line:
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null | open -f -a TextEdit
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 4
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null | open -f -a TextEdit 
    Remember, Steps 1-4 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • Itunes keeps telling me "the registry setting for importing and exporting and burning cds are missing" reinstall itunes.  I have reinstalled itunes about 30 times and still get the same message.  I do not have another cd burning software loan

    I keep getting the message "the registry settings for importing and exporting and burning cds are missing. Please reinstall itunes. This may be the result of other cd burining software on your computer"  I do not have another CD burning software on my computer and have reinstalled itunes about 30 times and still get the same message and am not able to burn CDs.  All of my drivers and firmware are up to date. Please help

    Check out this Apple article -> iTunes for Windows: "Registry settings" warning when opening iTunes
    The article will walk you through reinstalling iTunes and then checking for or creating device filters. Did it help? Did you run into any problems?

Maybe you are looking for

  • How to activate campaign specific pricing in r/3 sales order

    Hi experts, How to activate campaign specific pricing in r/3 sales order .In the pricing procedure for particular condition type how value gets triggered even if u r not maintaining any condition records in VK11. We are only maintaining campaign in C

  • Calling Java/ABAP Webdynpro in Adobe Interactive From

    Hi, I need to invoke a Java/ABAP Web dynpro application on click of a button in the Adobe Interactive form. I know it is done using the FormCalc script in the onclick event of the button. Can you please help me with the script used for triggering the

  • External display sleep

    I have an LG l196wrtq 19 inch monitor hooked up to my macbook using the mini-dvi->vga adapter. The monitor seems to not be able to detect when i put my macbook to sleep and stays on with a message saying" check signal cable". I've called LG about it

  • Enhancement Pack 3

    Hi All, Has anybody implemented Enhancement Pack 3 and activated the profit center authorization?  We curious to hear about the posting and display of documents based on users' profit center authorization. Also, does Enhancement Pack 3 allow profit c

  • How to set focus on only one window?

    Say, I have a main window with a button inside, and if the user presses on that button, another warning window with an OK button inside will then pop up. Now the question is how can I disallow the user from returning back to the main window unless th