Identify any items in the project window?

I don't know if it is within the limits of what AE script can do, but is there a way to identify all types of layer in the project exclusively window? I essentially tries to grab the item, check if it has certain properties, and then use that to identify what kind of point is (IE record sound, video, adjustment layer etc...).

This code is pretty rudementary and obviously missing things, but it's the general substance of what I'm trying to do. I need an easy way to accurately identify all the elements in the project window.

function fileType(item){
            var curItemType;
            
        if(item instanceof FolderItem && item.parentFolder != "Root" && item.parentFolder != item.name){
                return "Subfolder";
            }    
        if(item instanceof FolderItem){
                return "Folder";
            }        
         if(item.nullLayer == true){
                return "Null";
            }
        if(item instanceof ShapeLayer){
                return "Shape Layer"
    }


        if(item.adjustmentLayer == true){
                return "Adjustment Layer";
    }
        if(item.hasVideo == true && item.hasAudio == false && item.duration == 0){
                return "Picture";
            }
         if(item.hasVideo == true && item.hasAudio == true && item.duration != 0){
                return "Video";
            }     
         if(item.hasVideo == false && item.hasAudio == true){
                return "Audio";
            }
        if(item instanceof CompItem){
                return "Comp";
            }
        
        
    }

Thank you, and I apologize in advance for posting so often on the forums.

-Nate

For items, you can not check if it is used as a solid, adjustLayer, etc. Because an item can be used more than once, how can we know the layers from the same source has the same parameters, such as adjustmentLayer or nullLayer?

The number of types of elements is less than your thinking.

Regarding the types of layer, a part of my script that save info from any layer of file based on xml and create new layers from this file can be useful for you.

Here is the code:

var layerInf = new Object();

layerInf.type = "null";

If (thisLayer instanceof TextLayer) {}

layerInf.type = 'Text ';

} else

If (thisLayer instanceof LightLayer) {}

layerInf.type = "light";

layerInf.lightType = thisLayer.lightType;

} else

If (thisLayer instanceof ShapeLayer) {}

layerInf.type = "form";

} else

If (thisLayer instanceof AVLayer) {}

If (thisLayer.source.mainSource instanceof SolidSource & thisLayer.nullLayer! = true &!) () thisLayer.source instanceof CompItem)) {}

layerInf.type = "solid";

layerInf.solidColor = thisLayer.source.mainSource.color;

} ElseIf (thisLayer.source.mainSource instanceof FileSource & thisLayer.nullLayer! = null &!) () thisLayer.source instanceof CompItem)) {}

layerInf.sound = thisLayer.hasAudio;

If {(layerInf.sound)

layerInf.type = "VideoWithSound";

} else {}

layerInf.type = "VideoWithoutSound";

}

} ElseIf (thisLayer.source instanceof CompItem) {}

layerInf.type = "Comp."

}

} else

If (thisLayer instanceof AVLayer) {}

If {(thisLayer.nullLayer)

layerInf.type = "Null";

}

} else

If (thisLayer instanceof CameraLayer) {}

layerInf.type = "camera";

}

In fact, there is another important thing on layer types:is the model a model drawn with RADIUS? So, we have to check as follows:

layerInfo.geoType = "null";

If (layerInfo.type! = 'null' & layerInfo.three == true & layerInfo.ray == true) {}

If (layerInfo.type == "Shape" | layerInfo.type == 'Text') {}

layerInfo.geoType = "small";          has no source

} else {}

layerInfo.geoType = "large";          at the source

}

}

Tags: After Effects

Similar Questions

  • Keyboard shortcut to open any item in the project Panel in the Source Panel? H

    Hello, I have a lot of assets in my project Panel I need to open one at a time inside the source, preferably without having to always go to the mouse any time.

    I can't find the correct shortcut on the various lists of Adobe shortcuts for this very common feature.

    Am I missing something?

    Thank you

    Matt Dubuque

    If shortcuts shift + # are useful in their own right - they are used to focus a particular Panel, at least by their designation by default - they are not what you are looking for in this case.

    Try this instead:

    Furthermore, a simple way to get a list of all the possible shortcuts in one place is to hold down the Shift key and control (I think that command on Mac) and go to Edition > customization of the keyboard. This will reveal an Easter egg from button in the dialog box titled "> Clipboard." If you click here, then go to a text editor and use the Paste command, you will get all the shortcuts and their current mappings in a long text document. Because you cannot search for a given command in the keyboard customization dialog box, but you can in a text document, it is at least a way to discover new possibilities of keyboard shortcuts that might otherwise be found.

  • Is there a way to disable the project window after creating a new subitem of scrolling?

    I am often editing short aftermovies of the parties, and my workflow is as follows:

    (1) capture and stash movies into a single folder (there is very little opportunity for the planning of specific plans or tagging of videos on the fly)

    (2) ingest media in prelude and browse clips identify useful, subclipping and marking images

    (3) rough cut (possibly) and fine cut of the music in the first

    Step 2 now is where I am really being slown down. Ideally, I would like to go through all the media as quickly as possible. Usually there is only a single subelement with a clip.

    However whenever I add a subitem project window as a whole just scrolls and focuses on the new subitem, and to continue to the next clip, I have to scroll to the top, laboriously seek it or search for it by numbers.

    I thought that order the clips by date would solve this problem because I expected the focus to go to the subitem that should appear right next to the current item. But there is a clear bug in the prelude it is. When you add a subitem whilst having created Date you place your order on what is happening: first a subclip is created down like the order of the user and window emphasizes this point, then the subitem moves instantly after the clip but the view didn't refocus, leaving me in a situation may be even worse.

    It would be great to be (or all):

    1. Remove the bug to update and refocus on the subitem reordered instantly
    2. Added an option to disable automatic scrolling of the project window
    3. Add keyboard shortcuts to move to the previous/next clip
    4. Add a filtering more options for the subitem current only such as the clip alone, Non-tag tag only, video only (ideally through an option of custom filter with check boxes so that you can adapt to your needs)

    Again, this is a big step upwards of multi media organization nightmare of the first window but some (perhaps quite common) use cases are always very refined.

    If mentioned previously mentioned options are already there, please let me know, thanks

    Or said in passing when talking about bugs associated command, try to create a new bin when having Date created sort on. The tray is displayed with its name change, then it pops up and voila you are renaming the last item in the list. Like what the hell guys, you check even the user interface or is CC too fast turnaround for this?

    Loving salvation,

    In my view, the scrolling after you add a subitem issue with display of the icon in the project Panel. I checked prelude scrolls without concentrating on the subelement.

    Please mention your applications features on the following link:

    Feature request/Bug Report Form

    Regarding your 2 concerns, I think that you check the lists of:

    1. create a new bin when Date created sort on. The tray is displayed with its name change, then it pops up and voila you are renaming the last item in the list.

    2 when you add a subitem whilst having created Date you place your order on what is happening: first a subclip is created down like the order of the user and window emphasizes this point, then the subitem moves instantly after the clip but the view didn't refocus, leaving me in a situation may be even worse

    Please mention the version prelude that you work with the prelude--> help--> prelude about Adobe.

    Actually I just checked the above two points. In the colon prelude works very well in front of your comments. When adding Bin, bin is created with rename on and it only remains to this place. If added subelements with Date of order is created, it is created after the main clip, not down.

    Thank you

    Mayjain

  • reset the settings to the printer... still no print... more haven't added any items to the menu bar... they went

    reset the settings to the printer... still no print... more haven't added any items to the menu bar... they went bar & customize window title bar changed...

    By default Firefox will be "reduced to adjust." You who can disable in layout in a regular window or in print preview, but it's hard to call Preview in the window pop up in print, because the menu bar and the toolbar are removed. If it is a common problem, you can use a different add-on (!) which puts the print preview before printing and Page Setup on the shortcut menu.

    I have not used for some time, but I hope that it always works in Firefox 29: https://addons.mozilla.org/firefox/addon/printprint-preview/

  • Set the status of the project window - minimize maximize

    Hello

    Does anyone have an idea how to set the status of the project (and also diagrams vi) window using scripts.  I want to be able to ensure that this window is one to a decent size at any time - as otherwise labview tends to block everything behind it when you tab to another application.

    Looks like the State of the project window is read-only, and methods 'close window' and 'close' actually unload the whole project.

    JP

    Since you cannot do using methods of LabVIEW, a workaround I can think of is to use the operating system. For example, on Windows, you can use the Windows API. The functions of the API for LabVIEW Windows could be used for this.

  • First Pro CC crash when you drag the project window media

    I had so many problems with the CC (2014) since the 8.1 update. The last problem is interacting with the media in the project window. In any version of PP (7, 8.0.1, 8.1), when I try to drag the media from the project to the timeline window, I get the crash 'first Pro CC met a serious error... ". ». I use a Macbook Pro i7, 16 GB of ram, Nvidia GT graphic map of 750 m, on OSX Yosemite. I tried to clear the cache of media and the parameters of compensation at the start with alt + shift. I've been using 8.0.1 due to previous problems with ui serious lag on 8.1. I had more problems with the PP in the last 3 months than in the previous 7 years, I have used.

    Hi Bryan,.

    You have the extension installed "Pushbullet" Chrome? If so, you and Baemon should try to remove and then see if the problem goes away. He worked for others: Re: Premiere Pro CS6 crashes when drag-and -

    Thank you
    Kevin

  • CTRL-e-dial in the project window.

    I LOVE being able to zoom in/out of a Microsoft Word document (or icons of resizing in any folder of Windows 7) on-the-fly holding the key CTRL key while turning the mouse scroll wheel upwards or downwards (high-CTRL zooms in, CTRL-down, zoom out).  It's lightning fast, intuitive, and fun!

    QUESTION: Where is the smart zoom in Premiere Pro project window to increase/decrease the thumbnails?

    ANSWER: There is none!

    The scale of the zoom at the bottom of the project window, although functional, is not quick and fun to use.  It requires the user to carefully move the cursor on a small icon of the user interface: an irritant, laborious and inefficient method compared to the ease and speed of resizing by using a shortcut of keyboard-mouse combo that Word and Windows allow so intelligently.  By allowing users to resize the thumbnails in the list display using my proposed method, users can even skip the tedious step of having to turn the thumbnails in the menu of the wing!  To activate thumbnails on, CTRL-wheel upwards to zoom forward to how the thumbnails are displayed automatically.  To disable the thumbnails, just do the opposite, CTRL-wheel downwards.  It would work in the same way that Windows allows users not only to resize the thumbnails of files, but also easily scroll through the option to display different folder with CTRL-scroll wheel.  Simple. Intuitive. Brilliant. and Yes, even fun!  Another big advantage of my proposed method is that unlike the current zoom bar, using a shortcut keyboard and mouse might allow users to zoom in 'around' of the current position of the cursor (like what happens when ALT-mouse wheeling in the timeline).  In other words, if the cursor is on a clip to the bottom of the project window, increasing the size of the thumbnails would always the closest guard of slider clips in sight, instead of pushing the clip desired down out of sight, as would the zoom bar.

    Adobe, please add CTRL-wheel zoom in the project window.  And while you're at it, why not add this type of zoom to the window controls effect, Source and program monitors as well?  Keyboard and mouse shortcuts are always much more effective to have to meticulously hover over tiny user interface elements, so please, do us a favor and add this functionally as soon as possible!

    I was very happy when you finally added in CS6 the ability to control the scrolling timeline mouse behavior, which I and probably many others, asked the CS5 beta program.  Now let's take this a bit further with a smart zoom, to the scale of the program!  ""Is a small step for Adobe, a giant Bond for publishers of ' OK, maybe not just a small step for Adobe, but the fact is that the return on investment in this function would be great because it's something that could help all single Publisher PP there. "

    If you have ideas on other parts of first that could benefit from having better methods to zoom in, please share!

    QUESTION: The shortcut would make CHRL + mouse wheel to keep the combo that is consistent with the behavior of Windows and Word users are already used to, or should it be ALT + mouse wheel, to keep in line with the zoom combo first uses currently in the Timeline?


    (By the way, I'll send a formal request for Adobe feature.)


    Kevin Monahan, if it is not already on the radar of Adobe, it would be great if you could recommend to add this feature for us!  I hope I expressed the benefits with sufficient clarity that put this on their list of tasks is a no-brainer.

    PierreLouisBeranek wrote:

    QUESTION: Where is the smart zoom in Premiere Pro project window to increase/decrease the thumbnails?

    ANSWER: There is none!

    Have you tried Shift + [or SHIFT +]?

    All applications, you know what to do: http://www.adobe.com/go/wish

  • Show clips used in the project window

    Is there a way to show what clips are already placed in a timeline in the project window?

    This would help eliminate pliers twice.

    Thanks in advance for any answers.

    Aloha

    There is the field of use. It will show you how many times the clisp has been used.

    I don't think that there is a way to have it also refer to the sequence in which it was used.

  • Captivate 4: name of the project window, something other than the name of the file

    Greetings,

    I use Captivate 4 and have a question about the name of the window to a published project.

    Captivate 3, I could create a project file with any file name (for example, name the file "my_cp_project.cp").

    In preferences-> general-> change the name of the project (from 'my_cp_project.cp' to some clear text I want (for example, 'My Version 3 Captivate project').)

    When I publish the project and test I would launch the HTML published in my browser for display. The browser would make a window with the name of 'clear text' (in this example, the text "My Version 3 Captivate project" was displayed in the upper left corner of the window.

    In Captivate 4 preferences are different. When I create a project file (for example, name the file "my_cp_project.cp") with the same name structure, the behavior is different.

    In the preferences-> project-> Info in the name of the project , I use the clear text I want (for example, 'My Version 3 Captivate project').

    When I publish the project and test it by throwing it in a browser, the browser would make a window for the project, but the name of the window would be "my_cp_project.cp". I don't see any place where I can change this.

    Is there another method to use to control the name of the project window? I looked through the forums and found that you can do this by using a variable. Is there a setting I'm missing?

    Thank you

    TPK

    Doubt you can change the source - this is the code that generates the text that is the problem.

    If your build number is 1596, then you don't have the patch.

    Info on what it fixes here:

    http://blogs.Adobe.com/Captivate/2009/05/captvate_4_patch_update.html

    Don't know where to find via the Adobe site now we have 5.5 - Adobe is not very good at keeping the updates on the old live versions.

    Try here for a direct download - who knows how long it will stay online:

    http://download.Macromedia.com/pub/Captivate/update/captivate_4_updater.zip

  • audio previews from the project window?

    I hate to admit it, but I can't figure out how to preview audio files in the project (CS5) AE window.  In older versions, I was able to simply double-click on an audio file and play - and I am able to preview images, but not audio video in the project window and fixed (when I double-click on audio files, an image window opens, but when I hit space, nothing happens, as opposed to video footage, which plays when I hit the space bar).

    The only way I can understand to listen to audio clips is to place it on a timeline the comp - but this is a bit boring and ineffective.  I know that there must be a simple answer, but I can't understand it.  When I check the help files, it just says how to obtain an overview of the timeline, not the project window.

    By pressing the space bar is never a way to listen to audio clips in After Effects.

    All the methods mentioned on this page to preview audio work in film Panel and the timeline panel.

    So, if you double-click an audio footage item in the project Panel to open it in the footage Panel, you can then use RAM Preview or audio clip only to listen to the audio.

  • Window from the source to the project window does not

    A few days ago I had a problem working with a huge clip and try to change down in the source window.  After I did I started to put my points of entry and clips of 10 minutes for each scene I wanted, but when I went to drag this clip on in the project window, it wouldn't show.  Normally it should appear as a copy of my original CD video and then I would rename the copy with my scene number, but now I see no copy when I try to transfer in the project window.

    Any ideas about why this is happening?

    I am able to do for subitems here in the comfort of my office.

    Do you see the hand when you take the clip?

    Have you tried the Clip > menu of a subitem to command?

  • Is it possible to print the chart of the sound waves that show under the images in the project window?

    I use iMovie 9.0.8 and that you want to print, or export the graphic sound waves that show under the thumbnail images in the project window. Is this possible? and if so, how?

    You can take a screenshot using the command, shift and 4 keys and drag the icon in the shape of cross on the area. When you release the mouse button, an image is saved to your desktop.

    QuickTime Player 10 allows to record the screen if you want to capture the movement.

  • I think it would be helpful if when you open the drop-down list for a 3D object keyframe controls have the same color as the 3D arrows in the project window.

    3D colors.jpgI think it would be helpful if when you open the drop-down list for a 3D object keyframe controls have the same color as the 3D arrows in the project window.

    You can suggest that here:

    Feature request/Bug Report Form

  • How to get clips in alphabetical order in the project window

    When I have all my clips in the project window in the mode 'List', they are in alphabetical order.  However, when I go to view "icon", they no longer in alphabetical order.  How can I see them in "icon" view in alphabetical order?

    Press the sort at the bottom left of the project Panel, and then choose the desired sort in the menu order drop-down.

    MtD

  • All locations of the project window are white - label color does not

    All locations in the project window are white! No color - not default same mango. Does not meet the new colors. The timeline is colorful. (Mac 8 core Pro Tour, Nvida 680 GFX, 16 G of ram etc..) I see nowhere else.

    DOH!

    The label box was not checked in the options of meta data. Now I feel stupid.

    However - Adobe - why make a separate column of the label? -Why don't you just give us the option instead, or more, to paint the tray of mango by default. I like mangos but not all the time.

Maybe you are looking for