How to get the width and height of the model.

Hi, I am writing a script which sends my AE comps in a render farm.  I need to retrieve the size of the frame (height and width) of the model.  But I'm unable to find the method to do it.  Is this possible via javascript?

Thank you

myComp would be a reference to your object model. You could get it from the activeItem if your comp is opened and selected:

var app.project.activeItem = myComp;

If not, you will need to loop through the elements of project until you find an element of the model with the name of the model you are looking for (not tested, but should be close):

var myCompName = 'Hand Comp';

var myComp = null;

for (var i = 1; i)<= app.project.numitems;="">

If ((.name app.project.item (i) == myCompName) & (app.project.item (i) instanceof CompItem)) {}

myComp = app.project.item (i);

}

}

If (myComp! = null) {}

var l = myComp.width;

var h = myComp.height;

} else {}

Alert ("Cannot find model" + myCompName);

}

Dan

Tags: After Effects

Similar Questions

  • How to get the model no blackberry

    How can I get the model no device on which my application is running.

    as 8800 and 9000.

    If your problem has been resolved then please mark the thread as "accepted solution".

  • I need a file to an exact width and height and it must be in png format, because it allows to translucency. My graphics are only the top of the page and when I export only the graph is not exported the entire file. How can I get the entire file to ex

    I need a file to an exact width and height and it must be in png format, because it allows to translucency. My graphics are only the top of the page and when I export only the graph is not exported the entire file. How can I get the entire file of export including blank parts?

    in the export dialog box, you have chcked 'use of work plans? ''

  • How can I get out_data.width and out_data.height when the management of the user interface?

    Hello!

    I am currently working on a project where I change the projection of a video based on where the user click position and I would get out_data.width and out_data. height in an event DragHandle to change one of my slider.

    These values are always set to 0 and is available in the rendering. Any idea on how to get these values? Or maybe I'm working backwards...

    Thank you!

    AW.

    I guess that you are working on 13.5...

    Since 13.5, the sequence data is not editable between the rendering thread. only

    Since the UI thread changes make to the project and the rendering thread.

    but not the other way around.

    I should have mentioned that before.

    There area has some workarounds I can think.

    1. Add a pointer in the sequence data that are shared between threads.

    (you need to be able to say 'live' recorded with pointer

    the project and points to an invalid address)

    2. store your data in the handful of global_data, which is shared between

    threads. Alas it is also grind between the instances, so you will need to

    to say what recorded little data belongs to which body.

  • How to get the width and height of Flex Mobile view?

    Hello

    The following instructions can get the width and height of the current Flex app:

    var request: UIComponent = FlexGlobals.topLevelApplication as UIComponent;

    trace (application. Width);

    trace (application. Height);

    But I don't know how to get the width and height of mobile display Flex current (i.e. the content size excludes bar action and the Navigation bar). Why the "this.width" always returns 0?

    Thank you!

    Looks like you're running in this bug: https://bugs.adobe.com/jira/browse/SDK-30070

  • How to get the property of the image on the width and height?

    Hi, all, I import image from the outside with the following method, but how to get the w3c_main.png on the width and height property? I will appreciate for your answer.

    var mcLoader = new MovieClipLoader()
    mcLoader.loadClip (" http://www.w3.org/Icons/w3c_main.png", image);

    or an image. LoadMovie (" http://www.w3.org/Icons/w3c_main.png")

    in the first case use the method onLoadInit() to a listener for your mcl before trying to access your target movieclip laborious and _height properties.

    in the second, use the preloader code to ensure your png loading is completed before attempting to access the _width and _height of your target movieclip properties image.

  • How to get the Social/Vimeo widget for the width and height of the scale?

    I'm trying to get the Social/Vimeo widget proportion nationwide. For the moment, he played only in width but no height.

    Once it hits a specific breakpoint that is fine, but once you go beyond this breakpoint it does not keep the correct proportion and so on and so forth.

    I have 'Sensitive' width ' Resize' option, but ideally it should be 'sensitive width and height' but it is grayed out.

    Is there a solution?

    Drag the Central background of the video object up so the framework encompassing is very short and release. (While you do this the width of the object should not change, just the height.) Once you release Muse will take your browser redraw the video. It will then be abruptly to the proportions of the video (and probably push other things you will need to then back manually to the desired gap distance).

    What you did by dragging the shorter height and releasing was to set the minimum height for this object is very low. You should see a horizontal dotted line in the color of edges of framework that specifies the minimum height, you just put. Now that the video shrinks in width (and proportionately is shortened) the bounding box around it also will shorten (down to the minimum that you just put) and the following will be moving upwards to maintain the same distance from the gap of the video.

  • Get the width and height of the image

    Hi scripters

    I try to get the width and height of my image file. Here is my code

    myPicFile = File("c:\\ar.eps");

    h = myPicFile.height;

    w = myPicFile.width;

    Alert (h)

    Copy the following code generates error

    ---------------------------
    Script alert
    ---------------------------
    undefined
    ---------------------------
    Ok
    ---------------------------

    How can I get the height and the width of my image? is there another method?

    Thanks in advance

    concerning

    a you are the

    Dear Arul,

    Here, my code is in InDesign. I don't know that we get the size of the Image directly. ?

    Throught InDesign [you using the InDesign Script then] Script here I pasted the code below...

    = Image height / width =.

    myDoc var = app.activeDocument;

    myPicFile = file ("E:\\HariharaSudhan\\Blue hills.jpg");

    App.place (file (myPicFile);

    = Then u please select the Image file in InDesign and then you run the script = / /.

    mySel var = app.selection [0];

    var limit = mySel.geometricBounds;

    var height = related [2] - bound [0];
    var width = Bound [3] - bound [1];

    Alert ("Image Height:" + height + ""+"Image width:" + width);

    = End: getting the Image height / width =.

    Please let me know if you have any questions.

    Thank you & best regards

    Thierry T.R.Harihara

  • How to change the width and height of the title?

    Program: First Pro CC

    Recently I create da title for my video. I noticed that when I had looked at the preview of the title and the video, the title is so blurry. My settings at first:

    SAve.PNG

    How am I able to change the width and height parameters (to make the title more high definition) , without having to create another title in replacement from that Fuzzy? I don't ask if I have to create another title and insert it in the video, and then having to erase those blurry I had to replace. How are you able to change settings of the original title, without having to make a new title? Should I go to the 'Properties' tab when there is nothing at all (as in there is no option to change the w + h title quality) to change the current settings of the title?

  • I don't get width and height of the menu options

    When I click on a picture or an object I don't get width and height options menu in the upper part.

    Expand your application window

    or

    Click on the 'x' or 'y' label in the upper command band (-> opens a panel of transformation)

    or

    Use the "transformation" - Panel (if not visible, look in the menu 'windows'.)

  • How to configure the size of the symbol % (width and height)

    How to configure the size of the symbol % (width and height)

    shoud you have your symbol in % and also your image in % file, when you have changed both of the theme to % then your image will change as expected.

    and if you want to make your image immutable able and set the position that you need to change your % step also

    I made some photos to show you...

  • How can I get a box of width and height that I resize an object in Illustrator CS6?

    In a training video on Illustrator cs6, that a device is shown below, only the instructor manually resizes a work plan using the tool of work plan:

    Image for discussion.JPG

    Justin, the instructor, called the little box that immediately shows width/height a "box of width and height, but the search on this term is not productive. When I run the device program is not available, not only the video explains what option makes available or what could have changed on my copy to hide or disable the box. Even though I know that I can achieve the same effect by choosing the information window and can even adjust settings more precisely using the Control Panel, I would like to have the convenience of this box. Anyone can set up why I'm having a problem?

    I note that the same type of display in the same series of videos (from Lynda.com) is indicated when the instructor resizes an image. After that 30 minutes of research on Google and the search for the identity of this device and how to activate it just empty... can someone point me in the right direction? An experienced editor of first, I'm trying to expand my skills identified in more than Adobe and new to Illustrator. Please forgive me if I'm missing something obvious.

    Thank you

    Jay from the Bronx

    Try searching some guides. The rocker is Cmd (Ctrl) u.

  • How to set the width and height of the Textarea in tabular of.

    Hello

    How the width and height of the Textarea value formatted table.



    Thank you

    Maury

    Go to the article on the report.
    go to the section of the tabular form element and the "width of the element" allows you to change the width and the 'number of lines' to change the height.

    Gus...

  • How to resize an image using PIXELS to define the width and height?

    I need make my image a certain number of pixels wide and high.  When I resize image I can't change the area that shows the pixels of width and height, and when I drop down lists it does not give option pixels.  When I choose "points" and "Pica" they are obviously not other names for the pixels because the given number is not the number of pixels above.  I used to be able to do it EASILY in elements 2.0, my previous version of elements.  I am now using 8.0.

    In fact, I just realized that nothing that I in image resize will change the number of pixels at ALL in question.  Size and pixel per inch are locked permanently in relationship to each other.  I had to download a new version not long because my computer hard drive has failed, and I think they changed the things that work so not now, because I would have noticed it before now if it's that way when I downloaded originally from that.  I begin to fear that I'll have to kludge with the crop tool, even if the resizing of the image SHOULD be able to.

    Make sure resample is checked:

  • How to avoid the width and height of the code when inserting a picture

    Hello

    When I write html codes, I try to use "Ctr + ALt + I" to insert an image in the html code. "the codes will show width and height, for example" < img src = "Add - btn.gif" alt = "" "width ="76"height ="25"/ >", you can see, the code is not clean enough, I must remove the width and height by hand, is there a way I can insert a picture, without codes with the width and height.

    Thank you.

    Frank

    Hello

    First of all, welcome to the forum.

    is it possible that I can insert a picture, without codes with the width and height.

    No without changing the actual code of the marker or create an extension for editing. The first is not recommended because it will change it on all the html code and you must also change the tag for each doctype, and the second takes a lot of time and also needs to be done for each doctype.

    PZ

  • How to know the width and height of SWFLoader

    I am loading an image file with UrlLoader and SWFLoader and I need to know the width and height of the image size
    ----
    var tmp_swf:SWFLoader = new SWFLoader();
    tmp_swf. Load (a_file_urlloader. Data);
    window_tw.addChildAt (tmp_swf, 0);
    ----

    I tried:
    window_tw.getChildAt (0). Width.ToString ();
    and
    window_tw.tmp_swf. Width;
    but both return 0.

    Any ideas or am I just dumb?

    Quote:
    Posted by: SujitG
    Hello

    Try SWFLoader.content.width. You can find more details on ownership of content at the ADDRESS below.

    http://livedocs.Adobe.com/Flex/3/langref/MX/controls/SWFLoader.HTML#content

    I hope this helps.

    Yep, works after SWFLoader is COMPLETE. Thank you

Maybe you are looking for

  • Output audio Portege M600 - no device installed.

    Hello I use Toshiba Portege M600 with windows Vista.When I reboot my lap top I get not all sounds... In the status bar system, the volume icon button is marked with X and when I thought it said that "no audio output device is installed.". I tried the

  • When BT is enabled by Satellite A300-U01 blocks seconds

    I have the Satellite A300-U01... There is a problem sometimes when I ACTIVATE or DISABLE Bluetooth device in my laptop, the laptop freezes for 3 or 5 seconds and if a few song it freezes and make strange noises for 3-5 seconds then become normal...

  • AVT Guppy 033 B device is the same image twice on the &lt; Session Out &gt; event: Frame made

    Sometimes the event gets the same image twice, but with an increase, correct the image of the index (see photo index 125, 126). We use a type AVT Guppy 033 B firewire camera to measure the distance between plants. The camera fires all 40mm the breakp

  • Former Motorola customers, sign here...

    After this complete fiasco with Motorola and the 2.1 fail, I'd like to see (and they have to see) how the current owners of Motorola will be closing their loyalty. Please log in if you intend to never buy another Motorola product.

  • Error: ISScript.msi is missing when trying to install iTunes

    Original title: cant DOWNLOAD i tunes on my windows xp I keep trying to download i tunes on my windows xp, but every time the same message comes up saying the ISScript.msi is missing and to start I don't know where to look on my computer or how to ge