Travel/table grid of squares all toward the center of the document?

Hi all.

We are working on a file that consists of a wide range of small squares.

I was wondering if it is possible to move all of the squares to the center of the document... a script, or simply a method.

Any ideas or suggestions would be greatly appreciated.

Thank you!

Best,

Don

Hi Don, I realized that the first script is only set up to manage 20 lines, so I modified it manages 120 lines, hopefully this should be sufficient.

function main(){
if(!documents.length) return;
var win = new Window('dialog','Space Layers');
g = win.graphics;
var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
g.backgroundColor = myBrush;
win.p1= win.add("panel", undefined, undefined, {borderStyle:"black"});
win.g1 = win.p1.add('group');
win.g1.orientation = "row";
win.title = win.g1.add('statictext',undefined,'Space Layers');
win.title.alignment="fill";
var g = win.title.graphics;
g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
win.g5 =win.p1.add('group');
win.g5.orientation = "row";
win.g5.alignment='fill';
win.g5.spacing=3;
win.g5.st1 = win.g5.add('statictext',undefined,'Horizontal');
win.g5.et1 = win.g5.add('edittext',undefined,'20');
win.g5.et1.preferredSize=[50,20];
win.g5.st1a = win.g5.add('statictext',undefined,'px');
win.g5.st10 = win.g5.add('statictext',undefined,'');
win.g5.st10.preferredSize=[55,20];
win.g5.st2 = win.g5.add('statictext',undefined,'Vertical');
win.g5.et2 = win.g5.add('edittext',undefined,'20');
win.g5.et2.preferredSize=[50,20];
win.g5.st2a = win.g5.add('statictext',undefined,'px');
win.g15 =win.p1.add('group');
win.g15.orientation = "row";
win.g15.alignment='fill';
win.g15.spacing=10;
win.g15.bu1 = win.g15.add('button',undefined,'Space Layers');
win.g15.bu1.preferredSize=[150,30];
win.g15.bu2 = win.g15.add('button',undefined,'Cancel');
win.g15.bu2.preferredSize=[150,30];
if(version.substr(0,version.indexOf('.'))<10){
 alert("Sorry this script is only valid for Photoshop CS3 or higher");
 return;
}
win.g5.et1.onChanging = function() {
  if (this.text.match(/[^\-\.\d]/)) {
    this.text = this.text.replace(/[^\-\.\d]/g, '');
  }
}
win.g5.et2.onChanging = function() {
  if (this.text.match(/[^\-\.\d]/)) {
    this.text = this.text.replace(/[^\-\.\d]/g, '');
  }
}
win.g15.bu1.onClick=function(){
if(win.g5.et1.text== ''){
    alert("No horizontal pixels entered");
    return;
    }
if(win.g5.et2.text== ''){
    alert("No vertical pixels entered");
    return;
    }
win.close(1);
spaceMasks(Number(win.g5.et1.text),Number(win.g5.et2.text))
}
win.center();
win.show()
}
function spaceMasks(spacingA,spacingD){
var startRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.PIXELS;
var selectedLayers = getSelectedLayersIdx();
if(selectedLayers.length <2){
    alert("Not enough layers selected!");
    return;
    }
var boundsList=[];
var tempbnds=[];
showFX(false);
for(var a=0;a (boundsList[f][2]-50) && boundsList[f][2] < (boundsList[f][2]+50)){
  eval("row" +arrayNumber).push(boundsList[f]);
  }else{
            TOP =Number(boundsList[f][2]);
   arrayNumber++;
   eval("row" +arrayNumber).push(boundsList[f]);
  }
}
for(var d=0;d 
         

Tags: Photoshop

Similar Questions

  • Re: Mouse cursor jumps all over the documents on Satellite

    Bought my Satellite in August 08. Cursor jumps all over the document, a spreadsheet, or a text document.
    I saw messages that the problem existed on Toshibas in 2002!

    How to solve this problem?
    How can this company having the same problem since 65 years?
    I would not buy another Toshiba.

    Help.

    > How this company may have the same problem since 65 years?
    Nice and funny statement. Really funny. I don't me remember more that this computer has developed there is 65years :D

    First of all, it would be really useful if post you a few details on your OS and your laptop model

    Secondly, I have read similar questions might appear if you accidentally touch the surface of the touchpad while typing. That is why it s advisable to disable the touch pad using the FN + F9 key and to check if this problem still persists.

    Last but not Lea check if you are using the latest version of the BIOS. If this isn't the case, then update it!

    Good bye

  • Uninstalled all of the Documents folder - desperately need help

    Let me give you some information on this problem.

    I started trying to install a PC game on my computer, and it was recommended that I have a place outside of C:/Program Files, because Vista has been having administrative access errors and prevent the game to patch automatically. So, I chose to install it in the Documents, because I have a few other games installed in the Documents for various reasons. Well, by typing the path of the file, I typed the following text:

    Games\Documents of C:\Users\the contact

    I forgot to also add the folder with the name of the game to the end to give all the files that would be settled in their own folder. Therefore, I checked my Documents folder when I started to try to patch the game, and the game files were sitting just individually in the Documents and not their own folder. Rather than collect all the files and make a folder for them manually, I thought, forget it, I'll just uninstall and reinstall once more then this is a quick installation, this time by adding a folder for the files in the Documents folder. (that is, C:\Users\the boyfriend games\Documents\Europa Universalis III).

    So I started to uninstall it, everything worked, not reinstalled, no problem, although I noticed when I tried to install it in the Documents there was no other... strange subfolders. It installed very well and as I started patching the game even once, I went to the Documents, and Documents My horrifying discovery, was empty except for the folder of the game I did.

    I realized it happened instantly. When I choose "Uninstall" the game again, he chose to uninstall all the contents of the folder they have been stored in... sense to uninstall all files in 'Documents,' some other games, irreplaceable images and documents from the school.

    If you have stuck with me this far, I thank you. My question can be summed up by asking, what can I do to get all the files in the Documents that uninstalled? My basket is empty, but I didn't since this discovery other type of this message. I have not the computer shuts down automatically, installed another thing I understand is crucial in data recovery. Reliable, free software is one that can recover the data for me? I'll have to dig through the Interior edges of my computer files? Please answer as soon as possible and to help me, I lost a lot of irreplaceable data and not just "delete" and "empty trash".

    Thanks a lot in advance and have a nice day.

    You've done well not to do anything else on the computer since the discovery of the problem.  Which will maximize the chances of recovering your files.

    Download and run a program like Recuva file recovery.

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • lost my 'extract all' in the documents

    When I tried to unzip a folder asked me what program I want to use to open with. Has been given the choice of internet explore and something else. I clicked on internet explore and the screen started blinking on and off for a certain time. Then, all my files zipped turned to white and there was no more any and no excerpt zipped folder. What should I do to get my back zipped folders and choosing "extract all"? Thanks for your help.

    Hello

    You are welcome

    The problem is simply to do with the file being modified association, the best way to solve this problem maybe run the Windows system restore.

    Try the following.

    First of all, if you have Norton Internet Security installed, you should disable Norton Protection Tamper as shown in the link below.

    Norton self-protection.

    Once you are done, turn off the PC.  Windows system restore is usually better run in Mode without failure.  Tap away at f8 that you start the PC to enter the Windows Recovery Console.  Use the arrow keys to select Safe mode and press ENTER.  When it has loaded, on the Start Menu, click principally made programs, accessories, click System Tools and run the system restore.  Choose a restore point at least 24 hours before the file association for .zip files has been modified and then proceed to the restoration.  When you are finished, Windows will restart normally.

    Best regards

    DP - K

  • How to display the document in adf UI of UCM using resourceId?

    Hi all

    I have a need in application composite oracle webcenter. I have a few tables such as Department and Department_Dos. Department of earch have certain documents. I have ADF UI when I show master-details table service that it will show the documents row tables related to the selected Department

    Here, my requirement is to table documents I resource ID which is UCM document resource ID.in table I have to show some id to link resource. If I click clink I open corresponding doc UCM resource id, I need to show in popup/page like this.
    How can I integrate this way please give me a solution.



    Concerning
    Siva

    solved by using this link http://jonathanhult.com/blog/2012/12/ridc-examples/

    Concerning
    Siva

  • The document - view initial properties

    Is there a way to set the parameters of the "first sight" when the dialog box for creating PDFs rather than change them manually all via the Document properties?

    Specifically, I would like to set the magnification "Fit Page" for all of the PDF files I create. I don't see it as something that can be set in Acrobat Distiller presets.

    Not found something about this on the forums after several searches.

    Thank you.

    See this post.

  • Rows from the outer Table shows only not all data.

    Hello

    I have a line to 80 characters that I import in an external table.

    80% imports fine line data, but some lines are cut.

    The bytes in the file are as follows.
    ABCABC2334 0000001000010000001000000001 000000 00001C A002

    Bytes in an external table.
    ABCABC2334 0000001000010000001000000001 000000 A002

    The bytes in the row of the outer table stop somewhere at the end of 000000 and the 00001C is cut.

    What build be the cause of this?

    I am able to read the characters at the beginning and towards the end of the record of 80-character line.

    The external file below performs the following operations.
    ABCABC2334 0000001000010000001000000001 000000 01B A002

    I can even make a definition of the external table (c1 char (1), c2 char (1),... c80 (1) tank and all the characters see fine in the specified columns.)

    Here is the last definition of the external table. The "middle" column still shows this behavior. Basically, it is in the file and can be seen with every character in the definined line, but not as a group of characters.

    DB CHARACTERSET WEBISO8859P1

    CREATE TABLE EXT_PROJ_1
    (
    Field1 tank (6 BYTES),
    Field2 float (4 BYTES),
    medium (67 BYTES)
    field3 tank (3 bytes),
    CR tank (2 bytes)
    )
    EXTERNAL ORGANIZATION
    (TYPE ORACLE_LOADER
    THE DEFAULT DIRECTORY EXP_DIR
    ACCESS SETTINGS
    (
    RECORDS delimited by '\r\n '.
    FIELDS (field1, position(1:6),
    position(7:10) Field2.
    average position(11:77)
    field3 position(78:80).
    CR position(81:82)
    )
    )
    LOCATION (EXP_DIR: 'ext_proj_1.txt')
    )
    REJECT THE LIMIT 1
    noPARALLEL
    NOMONITORING;

    Published by: 917320 on March 13, 2012 09:07

    Looking at your table definition:

    field1 char(6 BYTE),
    field2 char(4 BYTE),
    middle char(67 BYTE),
    field3 char(3 byte),
    cr char(2 byte)
    

    column in which you will store a string of 80 bytes?

    BTW: You said "import into an external table." You import FROM an external table or EXPORT to an external table?

  • 23 "all-in-one: Black squares randomly on the screen

    All of a sudden screen has randomly black and square rectangles covering the screen. Cannot find the logout button because there is a black square, cannot click to go to the next page, impossible to use Google as the question box has a black screen. Windows 8.1. Help.

    Was not comfortable making the black squares of reset, so downloaded Chrome, went away (so far). Can assume it is Internet Explorer. Have other problems with IE.

    Thank you for your help

  • Write a string and an integer and a table all in the same file?

    Hello

    I am currently it several different types of values with LabView.

    I have a shot, a few numbers and several paintings.

    Thus, for example, I have a timestamp of the chain, several values of "integer" amplitude of the signal for example, RMS value, frequency and I have several paintings - table of signal, the FFT (PIC and location) values.

    Basically, I'm trying to find a way to write all the values in a single file. I can write all the individual types to separate files (so I can write the RMS, amplitude and frequency to a single file, some of the tables in the other)
    but is it possible to write a string and an integer and a table all in the same file?

    Pointers would be much appreciated,

    Thank you

    Paula

    Your file will be all text... any format in a table of text, to build as a single table, "table chain worksheet", to write to the file.

    (I'm sure this has been on the forums before... a search it would have thrown upward)

  • WANT TO 4500 DOES NOT PRINT ALL OF THE GRID

    WANT TO 4500 ALL IN ONE PRNTER DOES NOT PRINT ALL OF THE GRID

    My problem seems to have resolved itself.

    Thanks for responding.

  • Hi, I have a question. After installing this program in my (brand Asus k 4 table) the icon of my program its very small and I can not see all of the icons...

    Hi, I have a question. After installing this program in my (brand Asus k 4 table) the icon of my program its very small and I can not see all of the icons...

    What exact version of After Effects you are trying to use? 13.7.1 is?

  • get all seleected the table values

    Hi I have a table and try to get all of the selected objects to it.
    I have this code:

    DCBindingContainer = dcBindings
    (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    FacesCtrlHierBinding = treeData
    (FacesCtrlHierBinding) dcBindings.getControlBinding ("CourseAndSubject");

    Rank [] rows = treeData.getAllRowsInRange ();

    for (line: lines) {}
    ......
    }

    This works fine as long as the table has too many objects inside, the RowsInrange returns only 25 I think.
    How can I get all the columns. I could use something like "treeData.getAllRows ();"

    Concerning
    Johannes

    The code that I had initially worked almost if only there was a way to get all the lines and not only 25

    You can go to the def file and RangeSize = "-1", then you will get all the documents

     
    

    ~ Abhijit

  • Table is not fetch all the data of the VO at a time?

    Hello world

    My version of Jdev is 11.1.2.3.0.
    I developed page ADF that has a single Table that should show all the data in the original Version at the same time.
    The table has vertical and horizontal scroll bars. And the VO has more than 900 documents.
    The question is, at the start when loading the page table shows 20-25 records then when I try to scroll down and then the data is going to look this day there ("retrieving data" message) by which its takes a long time to see the data because its extraction at the time where I scroll down.
    How can I avoid this?
    How will I be able to retrieve all data from VO (all 900 records) by which when I scroll data should not look at this time?

    And also increases the size of the table and is based on the data when I scroll down.
    How can I avoid this?
    How can we fix the size of the table regardless of the content?

    All suggestions will be really useful...


    Thank you.

    The message «Retrieving data...» "is issued by the client component of table rich user interface when it retrieves data of the server-side model component lines in its local buffer of lines. Even if the server-side model component has recovered all the rows from the database (e.g. VO has recovered all of the rows from the database in the cache of the VO), the client component of table UI does not download all of them locally, but it downloads as needed into portions whose size is controlled by the attribute 'fetchSize' of the table. By default, the 'fetchSize' attribute is set to the value of the property "rangeSize' of the corresponding mandatory ADF iterator (whose default value is 25). In this way, if you scroll to the bottom of the table of the UI after the 25th row, the table would download the next set of 25 lines of its components side server model (and it then displays the message "retrieving data... ('') and so on.

    If you want to avoid downloading frequent of the next rowset of the component side server model to the customer table component user interface, you can set attribute 'fetchSize' of the table to a more fixed, for example:

    
    

    In this way, only the client user interface table would download locally 1000 lines (if there are so many existing lines, of course) and it won't download more rows until you scroll the table after the 1000th line (when it would download a next series of 1000 lines).

    Be wise when the setting 'fetchSize' of the table to a large number, because more the 'fetchSize', greater would be the size of HTTP, the longer answer response would be and more memory at the customer level would be consumed for the customer table buffer. Note that-1 (for example "get all") is not a valid value for the attribute 'fetchSize '. If you set it to-1, it will default to 25.

    Dimitar

  • How obtain all of the relationship when the table contains information of the hierarchy?

    I have a table containing the information relationship MySQL master & slave, look like this,
    Master  Slave
    ---------- ----------
    1  2
    1  3
    3  4
    4  5
    4  6
    4  7
    2  8
    11  12
    11  13
    21  22
    The requirement is to gather all of the relationship in a group, the result should look like this.
    1,2,3,4,5,6,7,8
    11,12,13
    21,22
    Could someone give me a tip how to do?
    Thanks in advance!


    Best wishes
    Satine

    Nikolay Savvinov wrote:

    Oops, I misread your original post - you want to break a together in connected groups, it's a little more complicated, sys_connect_by_path probably help here...

    It is sys_connect_by_path + connect_by_root + chain aggregation (I used XMLAGG). The only question to OP is MySQL is owned by Oracle, but does not have the Oracle database and my solution won't work in MySQL. In any case:

    with sample_table as (
                          select 1 master,2 slave from dual union all
                          select 1,3 from dual union all
                          select 3,4 from dual union all
                          select 4,5 from dual union all
                          select 4,6 from dual union all
                          select 4,7 from dual union all
                          select 2,8 from dual union all
                          select 11,12 from dual union all
                          select 11,13 from dual union all
                          select 21,22 from dual
                         ),
                    t as (
                          select  connect_by_root master root,
                                  slave
                            from  sample_table
                            start with master not in (select slave from sample_table)
                            connect by master = prior slave
                         )
    select  root || ',' || rtrim(xmlagg(xmlelement(s,slave,',').extract('//text()') order by slave),',') path
      from  t
      group by root
      order by root
    /
    
    PATH
    ----------------
    1,2,3,4,5,6,7,8
    11,12,13
    21,22
    
    SQL> 
    

    SY.

  • check the table to see if all the conditions are met.

    Hello

    I want to see if all my items in my table have hit an area on the stage and got a bit doing wrong.

    the following code works:

    If (ball1.hitTestObject (Box) & & ball2.hitTestObject (box) & & ball3.hitTestObject (box)) {}

    trace ("Completed");

    }

    However, my goal is to have these movieClips stored in a table and would still like to call the hitTestFunction and AFTER THAT each item has hit the area to trigger an action, like that I could just add however items I want and keep the same line of code. Obviously if I set the table in a loop and assign [i], it's just going to join this element and the trigger, and I "m thinking that each property on the table could work it is just a matter of implementing a function to capture the right information. I hope this makes sense, and I appreciate your help.

    Try this. Loop breaks when it is not hit - so a single object success will leave false hit test.

    var ballsArray:Array = [ball1, ball2, ball3];
    
    function checkHits():void {
        var isAllHit:Boolean = false;
        for each(var ball:Sprite in ballsArray) {
            isAllHit = ball.hitTestObject(box);
            if (!isAllHit) {
                break;
            }
        }
        trace("all hit?", isAllHit);
    }
    

Maybe you are looking for

  • How adjust us the window size when you reply to a video of Hello?

    When you start a videoconference Hello, call system shows the video in a pop up window that can easily be resized. But the answering machine has the video in a tab and the size of the video seems to be fixed. How can we get the same effect on respons

  • Error in fullscreen with FF4

    When I ran FF3.6, everything was fine. However, recently, I went to FF4 and noticed problems with the mode full screen. Full screen, the cursor must remain in the top of the window for at least 15 seconds for the tabs and the navigation bar to pop up

  • Satellite Pro A100: DVD UJ850 of disk I/O error - will not read disks

    I got a glance at other posts on the site of the people who have had a similar problem and I'm starting to think that my drive is defekt! The defective hard drives after extracting audio from a CD to store on my MP3 player. I arrived at almost the en

  • HP laptop G71 - 340US SSD instead of the Original HARD disk replacement

    Looking for a replacement for an original HDD SSD in a laptop HP G71-340US. I am told that the interface in this laptop is a 3.0 GB/S (SATA II). What I am curious to know is whether or not improving impact of performance will be probably quite notice

  • Installation BEFW11S4 v.4 to the new location without installation disk

    I recently bought a new linksys router. My wife wants old V.4 BEFW11S4 for his office. I have not saved all the installation disc for the BEFW11S4, but what I read here that they might not be necessary. Can someone please clarify if I need installati