free to transform the image

Hi Forum!

IM new to scripting. Thanks to the forum for the sharing of knowledge to the world...

I have a small request to do with scripting.

I have grouped all the pageItems... like G.

then selected group (G),

I chose the free transform by using the command tool;

app.menuActions.itemByID (45569) .invoke (); Select the free transform tool.

all I have to do is... to enlarge the size of the Group (G) proportion between the top margin and bottom margin.


(which do us it manually by selecting the group element Shift + Alt key and dragging until we reach the size of desire).

g = app.activeDocument.allPageItems;

GR = app.activeDocument.groups.add (g);

app.menuActions.itemByID (45569) .invoke ();

Then I need to increase the height of group g between the top margin and bottom margin.

Can anyone help this free transformation of the selected group.

Please...

Dhinak...

try sth like:

var g = app.activeDocument.allPageItems;
var gr = app.activeDocument.groups.add(g);
var bgr = gr.geometricBounds;
var hgr = bgr[2]-bgr[0];

var pm= gr.parentPage.marginPreferences;
with(pm)
{
var t = top;
var b = bottom;
    }

gr.move([bgr[1],t]);

var hn = gr.parentPage.bounds[2] - gr.parentPage.bounds[0] - t - b;
var s = hn / hgr ;
tM = app.transformationMatrices.add({horizontalScaleFactor:s,   verticalScaleFactor:s});
           gr .transform(CoordinateSpaces.INNER_COORDINATES,   AnchorPoint.TOP_CENTER_ANCHOR, tM ); 

Tags: InDesign

Similar Questions

  • Free drawing on the image

    I would like you to develop an application that allows the user free draw on his imported images. They can draw a line, Rectangle, add textbox and set the contrast images. Anyone have ideas on this? Thank you!!

    These questions are probably out of the scope of what we can answer here, but here are a few links to help you get started:

    http://www.rogue-development.com/objectHandles.XML

    http://dougmccune.com/blog/2007/06/11/imagesnapshot-class-in-Flex-3-SDK/

    You can also see the yahoo programmers group.

  • Why not transform the work? I'm doing a simple resize a smart object, and I constantly have problems. do not transformation. I had this same problem on several images and I've just updated to the latest

    I had frequent problems trying to resize the smart objects - I am unable to use the transformation. I had this problem on several images. I had some success by restarting Photoshop CC and Windows, but this does not always solve the problem. Is this a known issue? It's really annoying. I had this problem before the last update, and it continued after the most recent update.

    Hi djdphotography

    • You also have the same result if you create a layer duplicate the layer of the same image?
    • Also be sure that you do not have the Quick Mask mode by mistake (press Q to turn it off before you select the transform tool)

    Useful article:-Photoshop help | Free transformations of images, forms and paths

    Concerning

    ~ Assani

  • I'm trying to select several images (Forms), but I have not found a selection tool. This selection tool to transform the mouse cursor in an arrow and it is possible to select several images or figures. I use Microsoft Excel for Mac 2011 Version 14.5.3.

    I'm trying to select several images (Forms), but I have not found a selection tool. This selection tool to transform the mouse cursor in an arrow and it is possible to select several images or figures. I use Microsoft Excel for Mac 2011 Version 14.5.3. Thank you!

    tupensi wrote:

    use Microsoft Excel for Mac 2011 Version 14.5.3. Thank you!

    Then you should post on the Microsoft Mac forums where to hang out the gurus of the Office, as is the Microsoft product, with that you are having problems:

    http://answers.Microsoft.com/en-us/Mac

  • Do I need to buy a license, even if I am registered for the promotion of 10 free images? If this isn't the case, then how the hell do you want to download the images?

    Do I need to buy a license, even if I am registered for the promotion of 10 free images? If this isn't the case, then how the hell do you want to download the images?

    Go to your license history and you will see the license key. By clicking above opens a dialog where you can buy an extended license, simply select scope from the menu drop down.

  • I pay for a subscription, but I can't download the images. He said: I used all 3 free images.

    I tried the trial Adobe Stock, and since I have been required for a subscription, which I didn't know until yesterday. Now, today, I decided to use my subscription and buy something, and he said: "your team has used all 3 licenses of free picture for the promotion period..." »

    I tried to connect with two different Adobe ID that I have, but both give me error. I use a Mac.

    Hi Dee,

    Your team received an allowance of 10 free images. Three images were allowed and the rest has expired. You also opted for the first month for free as an individual user. You currently have 40 unused parts. When you register in Adobe Stock next click where you see the name of your team and you can switch between the two views.

    EBQ

  • Where can I find the images under a free license?

    Where can I find the images under a free license?



    Browse 40 Millionen endeavored, high-class photos, illustrations diagrams und Sie.


    where the 40 million images under free license?

    Hello

    You can search / view images here - Adobe Stock - high quality royalty free galleries of photos and vectors | Adobe Stock

    For more info on Adobe - Adobe Stock/Haufige questions

    Thank you

    Bev

  • Transformation of manual image: lose the top of the image

    With LR3, I often use manual image transformations and observe an undesirable effect, that I just can't explain to myself: when changing the vertical Perspective to a negative value, the image will be transformed to deal with the prospect, as expected, but its Summit will be moved out of sight as well. For example, during the correction of the image of a large building at the top of the Tower moves out of sight. An example:

    a_orig.png

    After you apply the vertical correction - 33, it looks like this:

    b_vert_m33.png

    The whole top of the tower is gone, on the bottom even if we see the box "out of the picture", and we can not move the image down to see the top of the Tower rather than this 'gray' on the bottom. I couldn't find any way to avoid this, until I discovered that I can change the scale factor (the loss of resolution of the resulting image :-() and that missing a part of the image will be visible again.

    Once we throw at 84% of the image above, we see once again at the top of the tower. Of course, we can show the grey areas manually:

    c_scale_84.png

    However, the size in pixels of the image is really reduced proportionately for the scale factor, here 0.84.

    Why is it so? I'm almost convinced it's a bug.

    Thomas

    Why is it so? I'm almost convinced it's a bug.

    I don't think it's a bug. The scale is supposed to evolve, after all. If you sclae to 84%, the image should scale down.

    I think that it is, is a lack of two additional sliders: Pan horizontally and vertically Pan. If you have these, you could move down to step 2, instead of scaling the image to retrieve the hidden parts.

  • Cant' import images of Photos because "it is not enough free space on the volume of your library to import the selected items.

    Hey guys,.

    So I tried to import some ~ 8 GB of photos on my mac, but the Photos app gives me the following message: "there isn't enough free space on the volume of your library to import the selected items. It is estimated that you need at least X.XX GB of additional free space. »

    Where X.XX represents the amount of GB it says that I need but it changes everytime that I reopen the application to attempt an import.

    My mac has currently 44.4 GB so I don't know why this issue is coming.

    Any help would be great!

    Thanks in advance,

    Andres

    Where is your library?  If it's on an external HD and how the drive is formatted?

    Have you tried to repair the library according to this document from Apple: library of your repair?

    What version of PHotos do you use?

  • Scroll effect, enlarge the image should be transformed into a newer version when you scroll down.

    I'm trying to make this picture like its turns into a similar, but more recent picture. A little confusing to try and explain, but reference the site of VonDutch.com. To the bottom of the page there is an eyeball in wood and as you scroll the bar of 'past and present' turns wood on an eyeball cartoon.

    Such a cool effect, but I played with the effects of roll and my two images for a while, I just can not understand.

    You can achieve this effect by adding the scrolling movement.

    The actual image on the page, and then on another format of the image, apply scroll such that key position should trigger once the actual image parchment scrolls on the page.

    Thank you

    Sanjit

  • Operations cut - paste, the image I'm sticking on a new image is too large.

    When I take and image to the Clipboard and place it on a new image, the image on the Clipboard is extremely broad.  How can I make it smaller?

    You will notice collage puts the item stuck on a new layer and must be selected.

    Don t ctrl or cmd (Mac) t Edit > free transform work? Just hold the SHIFT key while dragging one of the corner handles to keep perspective.

    By dragging the cursor inside the image positions. or by using the arrow keys on your keyboard can be refined.

    Press enter when finished.

  • Is it possible to resize a circular area of an image without distorting the image?

    So as it's hard to explain, I put here the explanatory links visualized... (You can click on the button 'full size' to FHD)

    There is my picture of string: http://postimg.org/image/vgguf651v/

    It's the goal: http://postimg.org/image/ze444krv7/

    Try the number 1 (deformation tool): http://postimg.org/image/it132nq4z/

    Try number 2 (spherize effect): http://postimg.org/image/3ychohgk3/

    Adobe Illustrator? : http://postimg.org/image/972x8m9lf/

    Thanks for help

    Here's a way

    Make sure that your image is a square, with the chain focused on the image on a separate layer, with a layer of background white. On the layer of the string, filter > distortion > polar coordinates, using 'Polar to rectangular. Use the free transform to scale the height of the layer. Note that the vertical position will affect the overall size of the final result, so it would be a good idea to put a horizontal guide along where you want the final diameter to be identical to the original (I used the outer edge).

    Once the image turns deformation > polar coordinates again, but this time use "rectangular to polar. You will notice that the string layer is now a ring, surrounded by transparency, transparency at the center point. This is why you add a white background.

  • How to rotate the image

    How to rotate the image

    There are several ways to rotate an image in Photoshop.

    As mentioned above, using the Image menu allows you to rotate your entire canvas area. Go to Image > Rotation of Image and select either 180 °, 90 ° CW (clockwise), or 90 ° CCW (the clockwise direction).

    In the picture menu, you can also select arbitrary to indicate the exact amount that you want to rotate your image:

    You can also use free transform to rotate an image or an individual layer. Go in Edit > transform , then select Rotate. Use the handles that appear around your image to rotate. Note that this method may require you to resize your canvas size to include your entire image (to do this, you can use the Crop function).

    Feel free to answer all questions!

    See you soon,.

    Kendall

  • Why transform masked images leave a gray outline?

    I created a new layer mask to an image, but when I use the free transform tool to resize is smaller, there is a pale gray outline to the left around the image. Why is this happening and how can I get rid of him?

    OK just an update on this. I think that the response of Conroy may be technically correct, but it seemed to solve my problem by converting just a layer to a smart object. I can't have my problem very well described initially. In summary:

    Problem:

    Resizing a layer (making the smaller) with a style of using the free transform tool created drop shadow effect a grey outline around my image / object.

    Solution:

    Convert layer to smart object and then using the transform tool solved this problem.

  • Transform the command in the body of the script

    Hello

    We often do this procedure:

    1 resize the drawing area of an image from portrait to 1795 x 1205 pixels.

    2. use the free transform command to manually adjust the image to the new size of the canvas (so according to the picture, I can better adapt).

    3... continue the procedure.

    Is it possible to tell a script to stop for the user to manually adjust the image... then continue normally today written in alphabet?

    I ve already written all the steps. It s missing just this command "transform".

    Thank you very much

    Gustavo

    You can try this...

    function transForm(){
    var desc = new ActionDescriptor();
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
    desc.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') );
    var desc2 = new ActionDescriptor();
    desc2.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Rlt'), 0.000000 );
    desc2.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Rlt'), 0.000000 );
    desc.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), desc2 );
    desc.putUnitDouble( charIDToTypeID('Hght'), charIDToTypeID('#Prc'), 100.001);
    try{ executeAction( charIDToTypeID('Trnf'), desc, DialogModes.ALL ); }catch(e){};
    };
    

Maybe you are looking for

  • Fans of VN7 - 591G does not

    Hello! I own the machine as specified in the object. Unfortunately, I have problems with cooling. I'll explain what I tried and discovered. Original problem: slow down the PC. I have studied the issue and figured the CPU seems to be blocked to 0.78 G

  • Running J2ME Application in Blackberry 4. 7 JDE

    Hello I wrote an application in J2ME (CLDC 1.1) and Midp 2.1 in Java (TM) ME Platform SDK 3.0, it works fine, but when I try to run this app Blackberry JDE 4.7 it gives error like "error starting Application-Name: Module 'Application Name' has verifi

  • BlackBerry Smartphones Blackberry Protect - download failed!

    Hello I have a BB Storm OS v5.0.0.328 and MTN prepaid 9539. I can't seem to download Blackberry Protect I tried to use the phone and the USB cable. -With the help of the USB cable - it crashes just on step 2 forever (different Web browsers and differ

  • Is it possible to display name instead of # spec spec?

    For a specification of Production packaging ready, when you add related specifications (base spec packaging), the name of the specification were previously [v6.1.1.x], but now [v6.2.0.0.x], it shows just the # spec.Is it possible to display name inst

  • Migrate from CS4 for Mac new

    I'm trying to move my Photoshop CS4 on my macbook to my iMac. My macbook doesn't have a full serial number. Missing the last 4 digits. I don't have the original packaging. How can I complete the migration of the software to my new computer?