Storage of the Compositions and functions running on them

In all, I apologize for the display of 2 posts in a row on this forum. I have problems with a few things. I am trying to find a way to sweep or store compositions in a project, so that they can be selected from a drop-down list. Whatever they choose in the drop-down list will be the computer that my mainFunction applies to. I tried some things, such as running a loop for to go through each project item and check whether it is a composition. I have struggles with this and there are probably some easy way to do this that I forget.

var numItems = app.project.numItems;
var allComps = new Array(); 


for (i = 1; i < numItems; i++) {
        if (app.project.items[i].label = 15){
        allComps.push(app.project.items[i].name); 
        }
    }


var mainWindow = new Window("palette", "INSERT PROGRAM NAME", undefined);
mainWindow.orientation = "row";

var groupOne = mainWindow.add("group", undefined, "GroupOne");
groupOne.orientation = "column";


var entryComp = groupOne.add("dropdownlist", undefined, allComps);


var panelOne = mainWindow.add("panel", undefined, "Options");


var startButton = panelOne.add("button", undefined, "Start");




startButton.onClick = function(){
    app.beginUndoGroup("Undo");
    var thisComp = entryComp.selection.name;
    var midLayer = thisComp.layers[2];
    mainFunction();
        
       
}


function mainFunction() {
    
    precomposeTimer ();
}
















mainWindow.center();
mainWindow.show


















If your script allows, you can simply ask the user to select the model.

It costs no more effort something selected in a drop-down list and it is easier to handle, allows the smaller UI etc.

Otherwise, you can store objects of the model in a table as David has shown and refer to them by their index in the table of allComps, not by their own index or name.
But then you will need a reload button with an onClick that does the same thing again.

Xavier.

var allComps=[], thisComp, midLayer;

// + code for the UI + a reload button

reloadButton.onClick =function(){
    var k;

    while (entryComp.items.length) entryComp.remove(entryComp.items[0]);

    allComps = getAllComps();
    for (k=0; k 
         

Tags: After Effects

Similar Questions

  • Different plan back color between the composition and rendering after adobe media encoder

    I discovered after effect...

    I have a problem of correspondence between the composition and the final rendering through adobe media encoder

    The color of the background composition of Loire (regardless of color) and always a background BLACK after the adobe media encoder

    After 2.jpgAfter 3.jpg

    Despite several manipulations by changing the settings I can't solve the problem.

    A little help would be welcome, thanks

    The composition background color will never surrender.  Hug composition background color will never, not even with the record locator.  The background is transparent and will always be unless you fill it with pixels. Unless you choose a format that supports Alpha channels, Alpha channels will make always black. Media players will always play a movie with a black background with alpha channel. If you want a yellow background, you will need a solid yellow or yellow shape on the bottom of your model layer.

  • Had upgraded LR 4 to 6 a few months ago.  Have updated all the software and am running LR 6.4 and 9.4 Raw.  Mac also improved to 10.11.3 software.  Camera not too new... Nikon D800e.  Always make me "files have been imported because they couldn't"

    Had upgraded LR 4 to 6 a few months ago.  Have updated all the software and am running LR 6.4 and 9.4 Raw.  Mac also improved to 10.11.3 software.  Camera not too new... Nikon D800e.  Always make me the note 'files were imported not because they could not be read ".  Any thoughts?  Thank you

    This means that you don't have WRITE permission in the destination folder.

    You should:

    1. In Lightroom, determine the exact destination folder (it is on the right side of the import dialog box under Destination)
    2. Change the permissions in your operating system on this specific file WRITE permission; OR Change the destination folder in a place where you don't have WRITE permission
  • best practices for the storage of the vm and vhd

    no doubt this question has been answered not once... Sorry

    I would like to know the best practice for the storage of the vm and its virtual hard disk to a SAN.

    Any show advantage does make sense to keep them on separate LUNS?

    Thank you.

    It will really depend on the application of the virtual machine - but for most of the applications no problem by storing everything on the same data store

  • Variable binding in the procedure and function

    Hello

    I started reading ORACLE 11 g R2 PL/SQL programming doc and I'm stuck to bind the variable. I just copied the example in the books and found error-

    First of all, I wrote the procedure below and compiled with - success
    CREATE OR REPLACE PROCEDURE FORMAT_STRING ( string_in IN OUT VARCHAR2) AS
    BEGIN
     string_in := '[' || string_in || ']';
    END FORMAT_STRING;
    Then I wrote below function and also compiled successfully-
    create or replace function join_strings  (str1 varchar2, str2 varchar2)
    return varchar2 is
    begin
      return str1||' '||str2||'.';
    end;
    Later, I wrote the code below in the SQL Editor and found the ORA-00900 error. Please help me to understand.
    variable session_var varchar2(200)
    call join_strings ('I Love','you') into :session_var;
    call format_string(:session_var);
    Maoulida

    Later, I wrote the code below in the SQL Editor and found the ORA-00900 error. Please help me to understand.

    variable session_var varchar2(200)
    call join_strings ('I Love','you') into :session_var;
    call format_string(:session_var);
    

    If you want to do it in PL/SQL, you can use an anonymous PL/SQL block like that.

    set serveroutput on
    declare
      session_var varchar2(200);
    begin
      session_var := join_strings ('I Love','you');
      format_string(session_var);
      dbms_output.put_line(session_var);
    end;
    /
    

    If you want to run directly in SQL Plus you can do

    var session_var varchar2
    
    exec :session_var := join_strings ('I Love','you')
    
    exec format_string(:session_var)
    
    print session_var
    
  • Problem downloading the updates and cannot run FIXIT

    I have a problem with the download of updates and trying to use FIXIT program download but do not open or run and leave a message there's a troubleshooting problem, someone at - it ideas, I tried many solutions but nothing works.

    Moved from feedback

    Original title: impossible to download FIXIT

    Hi Coupar,

    From your problem description, I understand that you are not able to download the updates and run the FixIt. Please let me know if you do not experience this problem.

    1. What is the KB updates that you are not able to download?
    2. what happens when you try to open?
    3. do you get an error message?
    4. What is the accurate and complete error message you get?
    5. what operating system is installed on the computer?
    6 have. what troubleshooting measures you tried?
    7. the problem only occurs with Windows update fixit?

    I suggest you try the following methods.

    Method 1: I suggest you perform the clean boot and check if any third-party program is causing the problem.

    How to perform a clean boot for a problem in Windows Vista, Windows 7 or Windows 8
    http://support.Microsoft.com/kb/929135
    Note: Follow step 3 of section of boot KB929135 to reset the computer in normal mode.

    Method 2: Try the steps from the following link:

    Cannot install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2
    http://support.Microsoft.com/kb/2509997

    Note:
    this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article: back up the registry in Windows Vista
    Note: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-your-files

    Hope this information is helpful and let us know if you need help with Windows in the future. We will be happy to help.

  • Questions classic blackBerry Blackberry Classic compared to the features and functions of the Bold 9900

    I am extremely satisfied with the functionality of my Blackberry Bold 9900 and yet I am fun the idea of upgrading to a classic Blackberry and had a few questions, some of them functional, but one of them is technical:

    (1) I have granularily configured different contacts to the ring through "silent" while some people may sound through if I'm having a NAP or sleep. The classic allows you granularily configure the option of 'ring through' on a manually configured silent mode?

    (2) can the classic surely go to sleep and wake up one day of week / weekend schedule? My current phone doesn't sleep at midnight and wake up at 06:00 every night of the week and 02:00 to 09:00 on weekends.

    (3) back in the day of Blackberry older had a view "of today" where you could see the incoming email and tasks on the main screen. I couldn't get that with my Bold 9900, but I found this interesting app called BePopup which jumps to the top of my texts and emails on the screen as they come, without touching a button. Can you get automatically posted emails or texts with that with the classic?

    (4) the Blackberry plan I have with my provider uses the platform communications for my Blackberry RIM and so my e-mails are immediate, arriving minutes always quicker than other CC (iPhone and Android users) distribution lists. That being said, is the new classic uses what platform these other phones use for messaging connectivity?

    Any feedback regarding these essential functions would be greatly appreciated as it will help me in my decision. I am very happy with my 9900 and have little reason to upgrade... unless all of these options are available.

    williamgault wrote:

    I am extremely satisfied with the functionality of my Blackberry Bold 9900 and yet I am fun the idea of upgrading to a classic Blackberry and had a few questions, some of them functional, but one of them is technical:

    (1) I have granularily configured different contacts to the ring through "silent" while some people may sound through if I'm having a NAP or sleep. The classic allows you granularily configure the option of 'ring through' on a manually configured silent mode?

    (2) can the classic surely go to sleep and wake up one day of week / weekend schedule? My current phone doesn't sleep at midnight and wake up at 06:00 every night of the week and 02:00 to 09:00 on weekends.

    (3) back in the day of Blackberry older had a view "of today" where you could see the incoming email and tasks on the main screen. I couldn't get that with my Bold 9900, but I found this interesting app called BePopup which jumps to the top of my texts and emails on the screen as they come, without touching a button. Can you get automatically posted emails or texts with that with the classic?

    (4) the Blackberry plan I have with my provider uses the platform communications for my Blackberry RIM and so my e-mails are immediate, arriving minutes always quicker than other CC (iPhone and Android users) distribution lists. That being said, is the new classic uses what platform these other phones use for messaging connectivity?

    Any feedback regarding these essential functions would be greatly appreciated as it will help me in my decision. I am very happy with my 9900 and have little reason to upgrade... unless all of these options are available.

    1.) Yes, you can see: http://docs.blackberry.com/en/smartphone_users/deliverables/67769/alc1334332742901.jsp

    2.) I don't think that this feaure is available, I'm not quite sure

    (3.) I'm not familiar with the view "today." To develop?

    Yes 4). 10 blackBerry smartphones requires more BIS data plan. Given regular or WiFi will work.

    Visit http://global.blackberry.com/en/smartphones/blackberry-classic/overview.html for more details on the classic.

  • Determine the end of the month and then run the script

    Hi all

    OK, I'm stumped. I can get all kinds of data to date... but I did not find a way (or the same example script) that shows how to retrieve the end of the month.


    Why?


    I have a master script that runs as a scheduled task. It runs every day and call other scripts based on the date. It is great for things like weekly reports that I just used $dow = {get-date}. DayofWeek but I need to run scripts at the end of the month.

    I can something together that gets the day, and then performs a logical ugly pop-based < or > but I don't know there's a smoother way to do.

    As always, any help greatly appreciated.

    See you soon

    Hello, medalklector-

    One way to do it, it is described by RMToups, Jr. at http://activelydirect.blogspot.com/2011/01/determine-last-day-of-month-in.html.  You should be able to set the output to fit your needs.  How does do for you?

  • How to system restore factory that works all the features and functions.

    My window early works do not, can not open it. So decided to reinstall windows 7, but when install us it, all the functions and features, as the mouse pads, function keys, vaio care, vaio gate is original as before, its no longer works as before. It can restore all factory restore? and how to restore the factory settings, if assist button is not working, also the f10 also.

    When you have installed your own copy of Windows 7, you have deleted the recovery partition (Assist/F10 function will not work).

    To restore your computer to factory settings and also restore the recovery partition, you can probably buy for your vaio recovery disks.

  • differences between the procedures and functions.

    a little confusing... differences between procedures and functions...

    1. a function returns only the unique value? can't return us multiple values?

    2. can we use clause of 'back' and 'out' parameter at the same time in the same function

    Thank you

    Hello

    Simply create a TYPE for strong cursors, returning the specified columns. For genereic, or the low sliders, there is a TYPE integrated, namely SYS_REFCURSOR.

    Try this:

    CREATE OR REPLACE function test_f(p_DEPTNO  in emp.DEPTNO%type)
      return SYS_REFCURSOR
      as
         REF_C     SYS_REFCURSOR;
    BEGIN
         OPEN  REF_C  FOR   SELECT  *
                             FROM    EMP
                      WHERE   DEPTNO = P_DEPTNO;
         RETURN REF_C;
    END;
    

    You don't want to close the cursor service.

    Always format your code.

  • Change the duration of the composition and compositions under

    I have a publication with several compositions in it and so on. And I need to extend it, but when I change the duration of the composition above in the project panel doesn't change any of the compositions it contains, is there an easy way to change all the?

    Also, I'm working with a big Photoshop file in AE, with layers, groups, y at - it a way to get AE to update of the initial import, or am I stuck re-import everything to get the new layers, whenever I add?

    For the duration of the things check this: rd: CompSetter. Regarding the update of your stuff - AE retains no info on PSD layers or such structure (for the msot part simply since neither PS nor I care to provide a single layer ID that woulkd allow initially). It's just a one time process with the convenience of the AE, it organizes for you, that's all import. If you need to add several layers, the easiest would be to import the document again as a composition and then copy & paste the missing layers for parts you already have done. Then, you can always remove redundant duplicates of importation and reorganize your project according to the needs...

    Mylenium

  • I downloaded the upgrade and said "run", but when I open firefox it says that I don't have the latest version. What I'm doing.

    My question pretty much says it all. Don't know what you want. I have a Windows Vista and you use FIrefox for at least 4 years.

    Hi rv7431, don't you worry - you already use firefox 22 which is the latest version available.

    the message you see is probably just show up, because you are using google.ca/firefox as your homepage, which has only been maintained up to what firefox 3 and displays now the warning message that you have referred to as no. matter what browser version you are using. change the homepage of Subject: House to answer the question and get the current home page of firefox...

    How to set the home page

    Edit: another thing that is directly related to your original question - you have two present addons, sounding rather malicious (My Web Search 1.1, Performance Cache 1.0). I recommend to Remove...

  • Links to the Compositions and/or slideshows?

    Is it possible to put a link on an individual image in a publication or a slideshow?

    I would like to have links to other pages on each image. For example, as the image #1 appears, if the user clicks on the image that it would take the user to a web page. So now an etc. for image 2,3,4...

    If this is not the case, how could I go to solve this problem within the Muse?

    Yes.

    Just click on the image and choose your link. (see image below)

    When you view in a browser, and the mouse on the image a hand will appear indicating that the image is clickable.

  • In FF password manager (30.0), when you open change, what are all the fields and how you fill them?

    When you open Edit, there are two choices: Web form and annotated.
    What is the difference?

    Then, there are fields for the host, submit the prefix, username, password, etc.
    How to fill out these fields?

    When you click for the Manager "assumes that of the current Page", all fields not necessarily fill up, so it's just for the username and password?
    I use constantly editing function, so it's a little strange to not see that further instructions here.

    When I click on tools, the saved password dialog box is on the list, so it's in my toolbar all the time.
    I use it constantly.

    What is the last password security? I know there are competitors of ideas. What is Mozilla?

    Thank you.

    Personally, I do not record the connections site in Firefox. The FireFTP extension records the FTP connections, so I use a master password to protect the people.

    I know I should finally pass a manager based password on a cloud, because if often, I forgot my login and have to reset, but... I have not bypassed by comparing the features and tests.

  • The tables and then splitting wrapping them (liquid)

    Just a simple question on here, is there away from separate data from the table for a web application? A perfect example would be when you create a check box form field. When the output data, it's just a unique string that looks like this "Ryan, Ashley, Melissa. Would be, I would like to do is to separate the data and then wrap with a < li >.

    I created the JQuery version of what works, but I'd like to see if it is far to do with liquid, as I'm new to the platform.

    
    
    

    {$('.padt20') .find ('ul') .each (function ()}

    var $this = $(this);

    Var words = $this.text () .split (",");

    var text = words.join ("< /li > < li > < class i ="fa fa-review"style =" margin-right: 10px; color: #F26228;) "" > < / i > ");"

    $this.html ("< li >" + "< i class ="fa fa-review"style =" margin-right: 10px; color: #F26228;) "" > < / i > "+ text +"< /li >");"

    });

    <ul>{{ArrayTag}}</ul>
    

    HI Ryan

    If we call to the output string "formdata", then all you have to do is

    {{formdata | divided: ","}}

    to get a table and then just loop through it:

    {% assign array formdata = | split: ',' %}}

    {% for me in table-%}

  • {{ i }}
  • {% endfor %}

    You must create a first variable because it will not work if you try to split in the loop for

    To bookmark this - the Developer Reference

    It provides a pretty good overview of what is available in cash & a lot of other things besides. I use it all the time.

Maybe you are looking for