Several graphic frames: resize, adjust the content proportionally, Center the content

Hello assistants scripts! I hope one of you can help me in this simple task. How I wish that the acts were an option! I read the messages saying how from simple scripts to apple is. I have read the tutorial from start to finish and doing the exercises. I have copied excerpts from multiple sources, and the only thing I could do is to insert the content... but not proportionally.

I use INDD CC. I have a dozen pages in tabloid format with a hundred images illustrator on each square. Here's what I have to do for everyone from graphic images:

1. that all graphic frames the same size: 10 x 10 mm

2. Insert the content to frame proportionally

3 Center in the framework

Can anyone help? Thank you!

Hey Kevin,

These dang millimeters! The script that I came by default to pixels of all things. So my solution (actually two scripts) isn't pretty, but it works but he paints with a broad brush... each rectangle. I hope to add a line repeat like yours, so I can see what I want. A blogger out there in the Land of script sent me a few ideas on how to combine and improve them; I hope soon to sink into their logic. These are the two that I came up with:

Resize the frame 10 x 10 mm

say application "Adobe InDesign CC 2014"

activate

say an active document

Resize each Rectangle in internal coordinates anchor of Center of replacement of the current dimensions with values {30, 30}

end say

end say

Insert the picture content (proportionally, centered)

say application "Adobe InDesign CC 2014"

activate

say the active document

say each Rectangle

fit content to frame

adapt given proportionally

adapt content Center

end say

end say

end say

Tags: InDesign

Similar Questions

  • How can too wide button for graphic designers - I adjust the graph?

    I have a button and I just put a chart on it - in this case a picture view - although any node has the same problem. There is a big gap on the left and right of the graph. It is probably simple, but I don't see the css or and methods on the button to remove this gap.

    If you're watching this zoomed image here, you can see that I put a border on the chart and a border on the key - you can see that there is a gap little between them.

    [button_image | http://i.imgur.com/srmRZjg.png]

    How to make it so the button has just the graphics?

    Thank you, Nick.

    Try to set - fx-padding: 0 on the button.

  • Can adjust the audio levels with a single clip

    Very simple question that drives me crazy.  Just before I post, I'm a complete to this noob please go easy on me.

    I'm editing a podcast.  It is a clip, a track in first pro.  My sound levels varies between-3 and - 12db through recording due to parts where I speak louder and quieter.   I need to balance a little better, to make the quiet parts louder.

    I don't know how to do this outside the insertion of keyframes volume level in the clip, which is slow and manual and takes forever.

    Every search I do to normalize levels is all about several clips and by adjusting the maximum peak in the same, that will not help me.

    Thanks in advance!

    Adobe Audition is a speech Volume Leveler you might want to check.

  • How do I resize BOTH the frame AND the image? I used to use the command and shift (to keep the proportions), but NO keys working!

    How do I resize BOTH the frame AND the image?

    I just started using CC online I usually use the command and shift (to keep the proportions), but NO keys work now!

    It's frustrating to have to resize the image and frame separately. The SHIFT key does not keep the proportions more!

    The shortcuts have changed?

    I'm on Macbook Pro - Yosemite.

    Please help me! Thank you!

    In the panel control is a check box resize the content with the framework.

  • adjust the content proportionally?

    I use javascript on Indesign CS4. I have a function that is implemented different amounts of text in a template that I have previously. Because all the text is sized differently, sometimes it does not fit the model. I tried to use adjustment. (fitOptions.proportionally) when my block of text has been selected, but nothing happened. It was not a bug either, nothing happened at all. What should I do? Thank you!

    I wrote this script way back when... Maybe it'll be of use...

    /*************************************************************************************
     FitTextToFrame.jsx
       InDesign CS2 Script: version 1.0 Feb 4, 07 by Harbs
       isText method and errorExit function by Dave Saunders
    
       One line frames will expand down to fit the whole line in the width of the frame
       Multi-line frames will fit the widest line
       Text of varying sizes is scaled proportionally
    **************************************************************************************/
    Object.prototype.isText = function() {
      switch(this.constructor.name){
        case "InsertionPoint":
        case "Character":
        case "Word":
        case "TextStyleRange":
        case "Line":
        case "Paragraph":
        case "TextColumn":
        case "Text":
        return true;
        default :
        return false;
        }
      }
    if (!app.selection[0]){errorExit("No Text Selected")}
    if (app.selection[0].isText()){
      var myTF = app.selection[0].parentTextFrames[0];
      }else if (app.selection[0].constructor.name == "TextFrame"){
      var myTF = app.selection[0];
      }else{errorExit("No Text Selected")}
    var mySI = myTF.characters[0].index;
    var myIndx = myTF.characters[-1].index;
    var myLineLength = myTF.lines.length;
    var myText = myTF.parentStory.characters.itemByRange(mySI,myIndx);
    var myJust = myText.justification;
    myText.justification = Justification.leftAlign;
    aoIPDif = new Array;
    for(i = 0; i < myTF.lines.length; i++){
      var oIPs = myText.lines[i].insertionPoints.everyItem().horizontalOffset;
      oIPs.sort(sortNumber);
      aoIP1 = oIPs[0];
      aoIP2 = oIPs[oIPs.length-1];
      aoIPDif.push(aoIP2-aoIP1)
      }
    myText.justification = Justification.fullyJustified;
    aeIPs = myText.lines[0].insertionPoints.everyItem().horizontalOffset;
    aeIPs.sort(sortNumber);
    aeIP1 = aeIPs[0];
    aeIP2 = aeIPs[aeIPs.length-1];
    aeIPDif = aeIP2-aeIP1;
    var aoDif = aoIPDif[0]
    myLine = myTF.lines[0];
    for (var i = 1; i < aoIPDif.length; i++){
      if (aoIPDif[i]>aoDif){var aoDif=aoIPDif[i]}
      myLine = myTF.lines[i];
      }
    myLineLength = myLine.characters.length;
    var myFactor = aeIPDif / aoDif;
    for(var i=0;i 0) {
        if (app.version != 3) { beep() } // CS2 includes beep() function.
        alert(message);
        }
      exit(); // CS exits with a beep; CS2 exits silently.
      }//end function errorExit
    
    function sortNumber(a, b){
      return a - b
      }
    
  • The content of my site is misplaced and shrunken Apple desktop devices. The browser provides information on devices, but the content do not place nor scale properly. The reason for this problem would be failure to adjust the size of the browser in Muse? I

    The content of my site is misplaced and shrunken Apple desktop devices. The browser provides information on devices, but the content do not place nor scale properly. The reason for this problem would be failure to adjust the size of the browser in Muse? I conceive on a 23 inches HD Windows desktop base. My site is displayed as it should, except on Apple desktop devices.

    This may depend on several things as if contents are pinned, scrolling is applied etc.

    Try to resize the browser preview in the Muse for verification, site url will help you to study.

    Thank you

    Sanjit

  • Adjust the size of the frame of the focus when you use Pan and zoom tool in first 14?

    I'm learning to use the pan & zoom tool through Adobe's Classroom in a Book for first elements 11.  The book is excellent, but as his writings for a generation of software of creation that is 3 years old, I'm trying to tackle a smaller image section that lets you control the default structure more small bowl size. (using the angle of the image update)

    Is it possible to adjust the image to a size smaller than the smallest default size allowed?  Thanks for your help!

    provlima

    I am not 14 as being different from 11 regarding the resizing of the workspace Pan and Zoom focus frame (by clicking on - or +). And I have not found a way to adapt a framework of development less than its smaller default size allowed using the-. or otherwise.

    RTA

  • graphic block obscures text frame, even if the text is on a higher layer

    I have a page of photos, each in its own framework and each with its own text block containing the caption for the photo. Behind all this and covering most of the page, I created an image of basic graphics in which I placed a picture as the background. I've done several times before, as recently as last month. This time, for some reason some unfathomable background obscures the text captions, as if the background was on a top layer (but it isn't). But he isn't obscuring the photos, only the legends. Another strange thing: InDesign error text in excess, which is clearly not. I tried to juggle the autour layers to see if that would solve the problem. No dice. The only thing that makes visible captions is to completely remove the graphic block. I tried just using a fill color in the frame, instead of the photo in the background, but the result is the same. I also tried to reduce the opacity of the fill/photo, but all that is to reduce the color in the white frame (the color of the page), it doesn't make transparent. I can make the image smaller, and this makes the text 'behind' it visible. But the color/background < rectangle > is the purpose of down in the layers list. It just does not behave like that. One last thing: I can go to the layers palette and hide the rectangle of <>by clicking the eyeball, but she is hiding it, it does not show the text 'behind' she captions. I suspect that an update shifted to creative cloud can be loaded here.

    You have the text wraps not enabled for your background image, it pushes the text out of the text frame, which, of course, is causing overset text and you you see is not the text more. Select the inage background, choose the skin for Windows and click the more to the left to turn it off.

  • Is it possible to adjust the size of the frame of a new project?

    Hi all

    I would like to create a video in which there are 2 videos playing the same content from a different angle.

    Each video is 512 x 384.

    So I would like to define the size of the frame of the project such as 1024 x 768 in order both videos to exist.

    I looked around tutorials in this regard, but I can't find anything similar. It seems as if I can not adjust the size of the frame of the project from the outset.

    So, is there a way to do this?

    I thank you for your time, read this.

    Kind regards

    nikits72.

    Once you have first opened, go to the menu sequence or the 'new item' icon at the bottom right of the project Panel... whatever it is, 'new sequence', from, choose the "Settings" tab and set your settings as you want...

    Neil

  • CS2 automatically adjust the height of the content in the table line?

    Hi guys, I use CS2 and I have a table with many pages. I need to be able to have the height adjust automatically the content of the tables. Data are unfortunately not compatible so that some cells have 2 rows of content, others 8.

    • Automatically, adjust to the content is not available.
    • I have tried to adjust the height lines then "table" > "distribution lines", but obviously it's not good that some are too crowded, others too spacious.

    Any suggestion is appreciated.

    I think you're stuck to resize the width manually at this point...

  • How can I adjust the settings of Firefox to display the content in a format widescreen?

    How can I adjust the settings of Firefox to display the content in a format widescreen?

    You mean zoom? If so, check the module NoSquint .

  • XML workflow - adjust the width of text for images frame

    Kings of expensive java script,

    I was checking writing scripts for based on the xml workflow. Here, I did face the problem, the images do not set in the width of the text (screenshot attached for your reference) frame.


    @ I needed: all images automatically fit to the width of the text frame and the resizing of the images also.

    Width of the text frame: pt 325,984

    Text frame hight: pt 535,748

    This fair to the script?

    Screen Shot 2016-03-17 at 6.04.15 PM.png

    Thanks in advance

    HTH,

    function main(){
      var doc = app.properties.activeDocument,
      rects, rect, n =0, columnWidth, ratio, rectBounds;
    
      if(!doc) return;
    
      rects = doc.stories.everyItem().rectangles.everyItem().getElements();
    
      n = rects.length;
    
      while ( n-- ) {
      rect = rects[n];
      if ( rect.parent.parentTextFrames.length ) {
      columnWidth = rect.parent.parentTextFrames[0].textFramePreferences.textColumnFixedWidth;
      rectBounds = rect.visibleBounds;
      ratio = columnWidth/(Math.abs(rectBounds[3]-rectBounds[1]));
      rect.resize ( CoordinateSpaces.INNER_COORDINATES, AnchorPoint.TOP_LEFT_ANCHOR, ResizeMethods.MULTIPLYING_CURRENT_DIMENSIONS_BY, [ratio,ratio] );
      }
      }
    }
    
    app.doScript( "main();", u,u, UndoModes.ENTIRE_SCRIPT, "Fit images to column" );
    

    Loïc

    www.ozalto.com

  • The upgrade of several graphics cards?

    I'm interested the upgrade of my d5200t (and perhaps my SR5125CL) to several graphics cards in order to run BOINC projects that can use graphics cards (for example, GPUGRID) better.

    So far, I have found that:

    1. my computer room can not consume much more energy and stay at a comfortable temperature.

    2 GT240 and GTX275 boards have been recommended as the most profitable for the GPUGRID program I want to run.  Motherboards based on the ATI (probably HD58xx series or higher only) may eventually become usable, but not before some time after AMD/ATI releases the next updates of their OpenCL compiler.

    3. two GT240 boards instead of the 9800GT card I would be now about dual GPU computing without current power significantly more power.  How many of these cards motherboards will hold?

    Where can I buy the appropriate cards online, with an installation service?

    It's your motherboard.  It has only a 1 PCI - E x 16 slot for a video card.  Also watch the video chart area for restrictions.  Your PC specifications indicate that your PC has a 460 watt power supply which is good but not big enough for larger video cards.  The GTX 260 and above all probably need one more great power will provide.

    Review the specifications of performance ATI and NVIDIA . Look at the specifications of strip memory bandwidth and level of DirectX support.

    Your PC local repair shop and manage a video card and power supply installation. You can get a quote before you buy a video card.

    www.Newegg.com has a lot of video cards.

  • content tool text does not allow me to adjust the attributes of individual word

    content tool text does not allow me to adjust the attributes of individual word

    You should be able to do all those without a problem...

    This screenshot I did all those you mentioned and the italics and underscore.

  • Make the iframe automatically adjust the height according to the content without using the scroll bar?

    Hello

    I develop the site (www.meninasreais.com.br) and have a doubt. I created the basic html - menu, header - in Adobe Muse. I'm trying to insert an iframe that automatically adjust the height according to the content of the blog.

    I tried with different codes, the framework is installed on the same domain as the site and none of them worked. What can I do it wrong? Thank you.

    The code that was inserted below:

    < script language='JavaScript'>

    <!--

    Function autoResize (id) {}

    var newheight;

    var NewWidth;

    if (document.getElementById) {}

    newHeight = document.getElementById (id). contentWindow.document. body.scrollHeight;

    NewWidth = document.getElementById (id). contentWindow.document. body.scrollWidth;

    }

    document.getElementById (id) .height = (newheight) + 'px';

    document.getElementById (id) .width = (newwidth) + 'px';

    }

    ->

    < /script >

    < IFRAME SRC='www.meninasreais.com.br' width='600px' height='200px' id='iframe1' marginheight='0' frameborder='0'onLoad="autoResize ("iframe1");" > < / iframe >

    Hi, I successfully did this for my blogging engine.

    I use jquery.autoheight.js

    In the property of my page:

    In my html box:

    This work in Adobe muse. My iframe it set itself with the content of my blog.

    Example: http://www.solutionsip.ca/blog.html

Maybe you are looking for