Constrain Resize

How can I set a maximum and minimum size of a JFrame to make sure that the user can't resize it to be too small or too large?
My application would like to have a minimum size. In some cases, it must also only allow resizing along one axis.

Unfortunately, this is not sufficient. I would like the user to be able to resize, but I want to make sure they don't make the frame too small. Almost every java application I've seen lets the user resize the frame down to almost nothing, which is very bad. I'd like to make sure they don't make the frame too small.

Similar Messages

  • Space bar not working to move the document

    I am having issues with shift-constrain resizing not working, and option-drag duplication not working, also using the space bar to move the document around the viewport. OSX 10.10, InDesign CC. I reset the preferences, restarted which failed to solve the problem, anyone knows how to make it work? Thanks!

    Hi
    I'd just like to add, since updating a couple of Mac Pro clients, running Mavericks 10.9.2 and Photoshop CC with the latest 6.3.8-2 Wacom Driver, early signs are that users have noted an improvement in performance of Photoshop CC.
    Its quite early days yet, however shortcuts that had been slow to respond and we have had multiple app crashes in Photoshop CC when using multi-layed 16-Bit Tiffs, seem to be ironed out.
    Also we have had to use the whitewindow plugin for photoshop too.
    Sorry to crash in on an InDesign thread regarding Photoshop CC issues, however I have seen a lot of common ground for many folks issues with Adobe software being they are using a Wacom device of some sort.
    Would be good to know if others have noted any improvements with this driver?

  • When i cropped a picture using the crop tool to 9x6" when it was printed everyone was stretched looking tall and thiner how can i crop pictures but keep the people looking as they do in real life?

    oops put the while question in the wrong place!!!  but I'm at a loss on how to do this every picture I took everyone looks stretched when I use the crop tool any help would be much appreciated,
    I have PS6
    thank you

    suzukidi wrote:
    I have been trying so hard to try and get my head round this since your last comment so what I think I know is with my Nikon d80 having 3:2 aspect ratio pictures that I wanted printed can only be the sizes you mentioned above which is fine as the pictures I got printed were 9x6" but it's from now I'm still bit lost when I use the crop tool and pre set the size to 9x6" with a resolution of 240 and crop out all the bits I don't want it comes back from printers stretched so i'm still lost as I don't know the  point where I'm doing something that causes the stretching? thank you for your patience
    Lets separate this into topics  Aspect Ratio,  resolution and size ... etc
    Aspect  Ratio is just the ratio of an image's two sides.    Your camera captures an image with a 3:2 Aspect Ratio.   If you want to print the whole image your camera captures it can be printed and image size that has sides the have a 3:2 ratio without distorting the image.
    Images are re-sized two ways:
    One way is to keep the pixels your camera captures and print them at different resolutions. Resolution is nothing more then pixel size.  Pixels have no size till there is a resolution set. Pixels themselves may have a aspect ratio themselves.  These days most devices use square pixel.  Some video standards use non square pixels. So if you have square pixels and an image with 1800px by 1200px and set the resolution to 300DPI the print size will be 6" by 4"  if you set the  to 200DPI the print size will be 9" by 6".  Its simple math. 300DPI means pixels are 1/300"x1/300" there are 90,000px/inch 200DPI 1/200"x1/200" 40,000px/inch  100DPI 1/100"x1/100" 10,000. Note how quickly the pixel count climes as resolution increase doubling an image resolution requires four times as many pixels not two timas as many.
    The other way is to create a new image using the pixels you camera captures.  Your Camera pixels are resampled(interpolated) into a totally new image not a single camera captured pixel remains intact the new image has a different numbers of pixels it a different image.  There are different interpolation methods some work better then others depending on image content and the direction of the re-size.  Any time you resample an image you loose some image quality.  The pixels are generated they are not captured using optics and a sensor.
    Normally I do not resample when printing I just set the DPI so the image prints the size I want.  In the Image size Dialog I un-check resample and the set the print width or height I want to print.  Photoshop will calculate the DPI and set the other side size.    If you crop without setting a DPI resolution in the crop tool the crop tool will not resample the crop to a particular DPI it should just set the appropriate DPI.
    I resample image for the web Cameras capture more pixels then can be display by displays.  So in the image size dialog I check resample and constrain the width and height to the image current aspect ratio then I set the number of pixels I want the width or height to be. Photoshop will calculate the number of pixels the other side will be. The DPI is meaningless for web images for Web images are displayed on screens at the resolution a displays has.  Your images will display large on a large Low DPI resolution HDTV screen and small on a high resolution cell phone display.
    If you want to print you image a size that does not have a 3:2 aspect ratio without distortion  you need to crop you image to the aspect ratio you want to print at.  You need to discard part of your image.  The Crop Tool does not distort it discards part of you image.  It may or may not resample the crop selected.  I do not use the crop tool but if I did I would not use it to resample the crop I would not set in a DPI resolution in the crop tool.
    Photoshop can also resize an image from one aspect ratio to and other aspect ratio a non constrained resize.  The resulting image will be distorted.  However Photoshop does have have a content aware re-size that tries to maintain recognizable objects perspective during the distortion process.  This process can also be aided by user masking.
    Cropping:
    A 3:2 aspect ratio image can in theory be cropped to an infinite number of smaller images that have any aspect ratios including an infinite number of images that have a 3:2 aspect ratio.  All crops can be resampled to a particular DPI resolution. However digital pixels can not be sliced up so there are a finite numbers of crops you can hack form a digital image

  • Suggestion: Object Manipulation Handles

    When resizing objects on the FP, objects only have resize handles on the corners. It would be helpful to have resize handles on each side (green circles) like "Classic LabVIEW" to constrain resizing to one direction. Also, consider having a rotation handle (where applicable).
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

    Just realized that resize handles already exists on the BD:
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Smart Guides, Constrain Proportions and Resizing an Object.

    When I have Smart Guides on and I'm trying to resize an object while holding shift (to constrain) Indesign seems to ignore the shift key. Usually when there's other objects in close proximity, or just closely aligned, vertically or horizontally. The image I posted is a good example. Trying to resize the bracket object while near all those other objects results in a lot of skipping around, and constrain not working. You can see in the image the outline is not constrained, even though I'm holding the shift key. It just wants to jump to those Smart Guides regardless of what I'm trying to tell it to do.
    This isn't much of an issue, but basically I'm wondering if this is a bug, or if the Smart Guides, just take priority. It's bit annoying turning smart guides on and off constantly to accomodate this odd behavior. Does anyone have any insight on this?

    Hi,
    I'm on a Mac Snow Leopard/CS5, and there actually is an update I haven't installed yet. I'm on 7.0.3, so I'll try that out.
    If it is a bug it's certainly not the end of the world, but I was curious if anyone else had been dealing with it as well. I love the Smart Guides, except for that.

  • Resize Images proportionally using constrains

    Hi,
      I need to resize the images proportionally in INDD document based on height & width or Scaling using Constrains.  If anyone know pls let me know.
    Thanks in advance,
    Sudha K

    HI,
    Manual process :
    -> Select the image in  indd document
    -> Go to control pallet and  then give the value of scaling to 60% or the value of width/ height to some value (Eg. 800 pts)
    -> Check the constrain property of height and width or scaling is enable or not.
    -> If not enable, enable tat and then give enter.
        Then my image is getting resized... Its my manual process.
    Script :
    I will select the image and run the script.
    app.selection[0].resize(CoordinateSpaces.INNER_COORDINATES, AnchorPoint.CENTER_ANCHOR, ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH, [200, 200]);
    Thanks,
    Sudha K

  • CS2: Resizing with shift held down does't constrain box shape or font anymore?

    Ok am using CS2 Illustrator on a Mac running system 10.5.3, all has been running fine for over 3 years.
    But all of sudden I can not constrain box shapes or fonts while holding down the shift key anymore??
    I've dump prefs file and restarted and still the same, I've even reinstalled CS2 Illustrator and it still the same.
    Anyone have any ideas for me, as to why the holding down shift to action the constrain isn't working for me anymore?
    I've spoken to Adobe support and they are saying the system I am running is not supported with CS2 Illustrator.
    Benn

    http://forums.adobe.com/message/2657882#2657882

  • How to resize groups WITHOUT constraining proportions?

    If I have e.g. group 3 boxes and I want to change their width I have to do this one by one because if I group them I can't uncheck "Contrain proportions". This changed with Keynote 6, before that it was easily possible to change widths of objects in one group. To me that looks like a usability fail...

    If you had Keynote version 5 installed use that, it will still be in applications, in the  iWork 09 folder.

  • How can I constrain proportions when resizing a crop?

    the questions in the title folks! thanks in advance...
    Or is there a better way to do this...I am adding some simulated camera shake to my shot, now black shows top or bottom when it is shaking, hence I need to zoom in to prevent the viewer seeing the black parts...with zoom I still see the rest...any suggestions?

    thanks!\
    shake keeps crashing...here is on of the reports...
    do you have any idea why?>
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNINVALIDADDRESS (0x0001) at 0x102444c7
    Thread 0 Crashed:
    0 <<00000000>> 0x102444c7 0 + 270812359
    1 com.apple.shake.UI 0x1a1ddc66 NRiUIOverlay::createControls() + 58
    2 com.apple.shake.UI 0x1a1ddff9 NRiUIOverlay::eval(NRiPlug*) + 133
    3 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    4 com.apple.shake.core 0x0207527c NRiPlug::asVoid() + 28
    5 com.apple.shake.UI 0x1a1df0c6 NRiUIOverlay::eval(NRiPlug*) + 4434
    6 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    7 com.apple.shake.core 0x020750cf NRiPlug::getVal() + 175
    8 com.apple.shake.core 0x02075abd NRiPlug::asInt() + 29
    9 com.apple.shake.UI 0x1a08744a NRiContainer::paint() + 666
    10 com.apple.shake.UI 0x1a2209d8 NRiWidget::eval(NRiPlug*) + 406
    11 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    12 com.apple.shake.core 0x02075abd NRiPlug::asInt() + 29
    13 com.apple.shake.UI 0x1a08744a NRiContainer::paint() + 666
    14 com.apple.shake.UI 0x1a2209d8 NRiWidget::eval(NRiPlug*) + 406
    15 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    16 com.apple.shake.core 0x02075abd NRiPlug::asInt() + 29
    17 com.apple.shake.UI 0x1a0874fe NRiContainer::paint() + 846
    18 com.apple.shake.UI 0x1a1fa2dc NRiViewCtrl::paint() + 356
    19 com.apple.shake.UI 0x1a2209d8 NRiWidget::eval(NRiPlug*) + 406
    20 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    21 com.apple.shake.core 0x02075abd NRiPlug::asInt() + 29
    22 com.apple.shake.UI 0x1a087280 NRiContainer::paint() + 208
    23 com.apple.shake.UI 0x1a2208c7 NRiWidget::eval(NRiPlug*) + 133
    24 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    25 com.apple.shake.core 0x02075abd NRiPlug::asInt() + 29
    26 com.apple.shake.UI 0x1a08744a NRiContainer::paint() + 666
    27 com.apple.shake.UI 0x1a19a58e NRiTabber::paint() + 28
    28 com.apple.shake.UI 0x1a2208c7 NRiWidget::eval(NRiPlug*) + 133
    29 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    30 com.apple.shake.core 0x02075abd NRiPlug::asInt() + 29
    31 com.apple.shake.UI 0x1a0874fe NRiContainer::paint() + 846
    32 com.apple.shake.UI 0x1a14aeec NRiQuad::paint() + 28
    33 com.apple.shake.UI 0x1a2208c7 NRiWidget::eval(NRiPlug*) + 133
    34 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    35 com.apple.shake.core 0x02075abd NRiPlug::asInt() + 29
    36 com.apple.shake.UI 0x1a0874fe NRiContainer::paint() + 846
    37 com.apple.shake.UI 0x1a2208c7 NRiWidget::eval(NRiPlug*) + 133
    38 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    39 com.apple.shake.core 0x02075abd NRiPlug::asInt() + 29
    40 com.apple.shake.UI 0x1a08744a NRiContainer::paint() + 666
    41 com.apple.shake.UI 0x1a2208c7 NRiWidget::eval(NRiPlug*) + 133
    42 com.apple.shake.UI 0x1a10f807 NRiMainWin::eval(NRiPlug*) + 191
    43 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    44 com.apple.shake.core 0x02075abd NRiPlug::asInt() + 29
    45 com.apple.shake.UI 0x1a0c0520 NRiEvSrc::update() + 530
    46 com.apple.shake.UI 0x1a1e8713 NRiUpdater::eval(NRiPlug*) + 267
    47 com.apple.shake.core 0x0207514a NRiPlug::getVal() + 298
    48 com.apple.shake.core 0x02075abd NRiPlug::asInt() + 29
    49 com.apple.shake.UI 0x1a0c0509 NRiEvSrc::update() + 507
    50 com.apple.shake.UI 0x1a0c22ac NRiEvSrc::runLoop() + 28
    51 com.apple.shake 0x0001ca1b NRiStartShakeGUI(int, char**, NRiScript*) + 39575 (crt.c:305)
    52 com.apple.shake 0x0000863a NRiStartShakeCmd(int, char**, NRiScript*) + 5130 (crt.c:305)
    53 com.apple.shake 0x0001e01e main + 654 (crt.c:305)
    54 com.apple.shake 0x000027b6 _start + 228 (crt.c:272)
    55 com.apple.shake

  • Mouse-over image resizing in CS4

    on my website (www.kogamusic.us) i have an image that changes to another image when mousing over it. the two images are different sizes, so as it is now the second image distorts because it is constrained to the aspect ratio of the first image. My question is, how do i make it so that both images auto-resize depending on the size of the window while keeping the second image constrained and distorting to the size of the first image. I am able to auto resize the first image with with=#% and hight=#%, but i can't figure out where to put html in the correct place to auto-resize (while constrained and distorted) the second image.
    this is the code i am looking at:
      <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','DSC03696.jpg',1)"> <br />
    <img src="fish pencil.jpeg" name="Image2" width="538" height="830" border="0" id="Image2" /></a><a href="mailto:[email protected]">[email protected]</a></p>
    <p> </p>
    THANKS!

    Hard to say. Just maybe a hickup in the system. The popping up is slightly delayed on about every system but I have never had them not pop up at all.
    Anyways, here is a link that pretty much fixes weird stuff happening in Photoshop that is called resetting the Prefs.
    http://forums.adobe.com/thread/375776?tstart=0

  • Constrain window to image in tab view, how?

    I have photoshop workspace set up with the open documents across the top in tabs. Usually one of those tabs is the "Host" document and the other tabs are "Element" documents.
    In the process of creating, Element documents are usually resized to fit into the Host document. I tend to go through and select the element documents one at a time which opens them up over the full screen. i.e. there is gray background around the borders of the image. I then crop to the size that I estimate that I will be using in the Host document. Now I open the Host document which opens full screen with gray background.
    Here is my problem. When I drag the "Element" documents down to the Host document, the window is very large with a large amount of gray showing around the element image. So large that it covers the whole Host document.  I have to drag the edge over to shrink the window, allowing me to see the Host document. I would like to find a preference that would force the Elements window to be constrained to the edge of the image rather than showing the large gray border. This would usually create a smaller window i.e. the size of the image in which I can simply drag the elemnent into the Host which would be visible.
    If there is no solution for this, could it be transfered to a feature request?
    Thank You, John

    I think the real point of confusion here is that you feel everyone should just know what you mean when you say "when we drag images from their tabs over a working image".
    You're mixing tabbed view and windowed view by doing this. This is supported by the screenshot you posted.
    I don't believe most people drag tabbed images around to turn them into windows, so that some of the images are still captive in the Photoshop window in tabbed view while others have been disconnected from the Photoshop window and and are now in their own windows.  I think this is probably why there's some confusion here and no one's jumping in to say "yeah, that bothers me too".
    What are you trying to accomplish in all this?  Are you trying to make more than one image visible at the same time so that you can see them all while you're working on them? 
    If so, have you considered pressing the Arrange Documents button to have Photoshop tile the open documents in one of the various ways?
    -Noel

  • Elements 11.  Resize image tool doesn't work.  Tried online chat with Adobe  - no help.

    I recently got a new computer (pc) and decided to download Elements 11 instead of the old version that was on my old computer.   I've discovered that the image resizing tool doesn't work, although the other functions seem to be working fine.
    I tried an online chat with Adobe.  Their suggestion was to buy another photo service from them for $10./month !!

    Do you have Resample Image and Constrain Proportions checked?

  • How to resize photo to fit screen without loosing proportions?

    I am in the process of creating a PowerPoint presentation and it will basically consist of photos, some text and a music background.  I want the photos to fill my computer screen, so when I am in Elements 5, I am going to Image menu and then to resize - Image Size, and changing the pixel dimensions here.  My monitor is set at 1280 x 1024 pixels and I am trying to resize my photos to 1280 x 1024 so that they will perfectly fill the entire monitor when the PowerPoint presentation is played.  The problem is that when I go to resize the photos, I have to leave the Constrain Proportions options unchecked so that I can manually and freely enter the values I want for both the Width and the Height to match my monitor dimensions.  When my photo is resized using this method, the proportions get thrown off and the picture looks a little funny.  But if I check mark the Constrain Proportions option, then I will only be able to enter a value for one of the dimensions since Elements will automatically figure the other dimension for me.  This way the proportions look fine, but the photo may not completely fill the screen the way I would like.
    Is there some kind of work-around for this seeming catch-22 type of problem??
    Thanks,
    Lee

    That's great about being able to use px (pixels) as the unit of measurement regarding the cropping tool.  I will be playing around with this.  Thanks for this great bit of information.
    Real quick on my question regarding the original proportion of the photo.  I am sorry about the confusion here.  In my initial question I had mentioned how I had tried to resize my photo(s) by using the Image - Resize - Image Size command from the main menu and was not able to check the Constrain Proportions option because I needed to enter both values for the Width and Height to match my screen size in pixels.  But when I did that, I lost the original proportion of the photo and it looked funny and such.  People's faces were thinner and longer than they should have been etc...  So when you started talking about using the crop tool to get my photo to the same pixel dimensions as my screen, I am just asking if the photo can maintain its original proportions, or might I be running into the same problem I had before when I was using the Image - Resize command.  I am not talking about loosing my original photo, I am making all these changes to a copy of the original photo so my original is protected and safe.  Maybe I should be calling it the aspect ratio.  I am wondering if after I make these changes with the crop tool, can I also still maintain the original aspect ratio of the photo?  Because this was my original problem, I was contorting the photo due to the aspect ratio changing.  I hope I am using the right terms here being more clear?
    Lee

  • Resize a layer to a percentage of the document size and position in corner

    I need to create a script that places a logo in the corner of my main document but i need the logo to be constrained to a percentage of the document size. my logos needs to live in the bottom right corner of my images and be no larger than 28 percent height and no larger than 60 percent of the width of the document. i need it to constrain proportions of the original file so if the logo is square it will remain square, or if it is more rectangular it will maintain its rectangular shape.  Heres what i've come up with so far, i am pretty inept at scripting so if disregarding my current script is more helpful than building upon it please ignore mine:
    if ( documents.length > 0 )
        var originalDialogMode = app.displayDialogs;
        app.displayDialogs = DialogModes.ERROR;
        var originalRulerUnits = preferences.rulerUnits;
        preferences.rulerUnits = Units.PIXELS;
        try
            app.activeDocument = app.documents[0];    //set active document to 2nd document   
            var docRefOne = app.documents[0];
            var refWidth = docRefOne.width;
            var refHeight = docRefOne.height;
            app.activeDocument = app.documents[1];    //set active document to 2nd document   
             var docRef = activeDocument;
            //current image dimensions
            var w = docRef.width;
            var h = docRef.height;
            activeDocument.selection.selectAll();
            docRef.selection.copy();   //Copy selection
            app.activeDocument = app.documents[0]; //set first document as active document
            var docRef = activeDocument;
            activeDocument.selection.selectAll();
           docRef.paste(true); //paste into selection
        catch( e )
        // An error occurred. Restore ruler units, then propagate the error back
            // to the user
            preferences.rulerUnits = originalRulerUnits;
           app.displayDialogs = originalDialogMode;
            throw e;
        // Everything went Ok. Restore ruler units
        preferences.rulerUnits = originalRulerUnits;
        app.displayDialogs = originalDialogMode;

    You could do something like this...
    #target photoshop
    activeDocument.suspendHistory('Logo Resize', 'main()');
    function main(){
    if(!documents.length) return;
    var startRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var myDoc = activeDocument;
    /////////////////////////////// Amend to suit /////////////////////////////////
    var Opacity = 100; /* Opacity of logo */
    //Position logo   X,Y
    var X = myDoc.width - 10; //Right side of logo
    var Y = myDoc.height - 10; //Bottom of logo
    var Logo = File(Folder.desktop + "/logo.png"); //logo
    if(!Logo.exists){
        alert("Your logo '" + decodeURI(Logo.name) + "' does not exist!");
        app.preferences.rulerUnits = startRulerUnits;
        return;
    placeFile(Logo);
    var LB = myDoc.activeLayer.bounds;
    var docHeight = myDoc.height;
    var docWidth = myDoc.width;
    var LHeight = Math.abs(LB[3].value) - Math.abs(LB[1].value);
    var LWidth = Math.abs(LB[2].value) - Math.abs(LB[0].value);  
    if(LWidth > LHeight) {//Landscape logo
    var Percent = 60; /* Resize logo to percentage of smallest side of doc */
    if(LWidth < LHeight) {//Portrait logo
    var Percent = 28; /* Resize logo to percentage of smallest side of doc */
    if(LWidth == LHeight) {//Square logo
    var Percent = 15; /* Resize logo to percentage of smallest side of doc */
    var percentageHeight = ((docHeight/LWidth)*Percent);
    var percentageWidth = ((docWidth/LWidth)*Percent);
    if(docWidth < docHeight){
    myDoc.activeLayer.resize(percentageWidth,percentageWidth,AnchorPosition.MIDDLECENTER);
    }else{  
      myDoc.activeLayer.resize(percentageHeight,percentageHeight,AnchorPosition.MIDDLECENTER);
    var LB = myDoc.activeLayer.bounds;
    X = X - LB[2].value;
    Y = Y - LB[3].value;
    activeDocument.activeLayer.translate(X,Y);
    activeDocument.activeLayer.opacity=Opacity;
    app.preferences.rulerUnits = startRulerUnits;
    function placeFile(placeFile) {
    var desc = new ActionDescriptor();
    desc.putPath( charIDToTypeID('null'), new File(placeFile) );
    desc.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') );
    var desc2 = new ActionDescriptor();
    desc2.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Pxl'), 0.000000 );
    desc2.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Pxl'), 0.000000 );
    desc.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), desc2 );
    try{
    executeAction( charIDToTypeID('Plc '), desc, DialogModes.NO );
    }catch(e){}

  • Resize multiple objects at once

    How do I set the height of mutliple objects at once? I'm creating a form and the I want to ensure all the text fields are the some height.

    OK...I guess my question stems from wondering how you're creating your Text Frames in the first place, and after that, how you copy and resize them.
    When I do this sort of thing, I like to use the Rectangle Frame Tool, then I click in the document and enter the size numerically. Then Option + Drag to create copies. The "Content" parameter for the frames can be assigned now, or later, after you resize them.
    I guess what I don't understand is how you're resizing them? You're doing them individually, and manually, to fit the space, right? If you constrain the resizing to horizontal only, you shouldn't have a problem with the height of the boxes changing.
    I dunno, maybe I'm missing something from your workflow that presents a special case?

Maybe you are looking for