Recognize the solids in the Comp?

Hey, I was wondering if it is possible to detect if a layer in a model is a solid? The code below runs through all items in the project. If the item is a model, then goes into its layers and check if it is a solid. However, I do not get everything put in the allSolids table.

var numItems = app.project.numItems;
var allSolids = new Array(0);
var numLayers;

// store solids
for(var t = 1; t < numItems + 1; t++){
            if(app.project.item(t) instanceof CompItem){
       numLayers = app.project.item(t).numLayers;
              for(var s = 1; s < numLayers; s++){
            if(app.project.item(t).layer(s).source.mainSource instanceof SolidSource){
            allSolids.push(app.project.item(t).layer(s));
    }}}
}

Thank you!

Ah yes, some types of layer do not have a source. I would wrap it in a try/catch, like this:

try {}

If (app.project.item (t) .layer (s).source.mainSource instanceof SolidSource) {}

allSolids.push (app.project.item (t) .layer (s));

} catch (err) {}

}

Dan

Tags: After Effects

Similar Questions

  • Portege 7220 does not recognize the Extension of memory (Kingston)

    Hello

    Recently, I wanted to update my old notebook, Portege 7220 with a 256 MB Stick of Kingston Ram. According to their website, it should work, but the machine does not recognize the memory at all. (just using internal 64 MB).

    I can't upgrade the Bios either, because when I press F12 when the computer starts, it cannot read the floppy drive in the docking station. Do I need a USB floppy drive for that? I tried with a usb key, but it does not work. is there a possibility to redo an update of windows? (Comp running Windows 2000)

    Thanks for your help, much apprechiated.

    Rawnonymous

    > I can't upgrade the Bios either, because when I press F12 when the computer starts, it cannot read the floppy drive in the docking station. Do I need a USB floppy drive for that? I tried with a USB but that doesn't work. Isn't there a possibility to do a windows update? (Comp running Windows 2000)

    Only the TRAD of the BIOS version exists for this Portege.
    This means that you will not be able to update the Windows operating system running, but you will need an external floppy drive to perform these updates.

    Regarding your problem of memory;
    Check this box:
    http://www.orcalogic.co.UK/ASP/ProdType.asp?ProdType=5388&ft=m&St=3

    You can find the compatible memory module. It s a PC100 144 pin SODIMM.

    Maybe you used the not-entirely-compatible module or the module is defective

  • Canon 60 d does not recognize the 430ex II flash. Any suggestions?

    Canon 60 d does not recognize the 430ex II flash. On the menu screen, it says that flash is where not compatible.

    Any suggestions? Books or guides recommended?

    Thank you

    A few...

    I hope that you have verified that the flash lights up completely and you get the red light showing that it is ready to fire.

    On your system menu 60 d, if you find the "Flash control" option, you can ensure that you have not set the external speedlite to 'disable' - although I think in this mode, you wouldn't get the message you describe.  that is, I doubt it's, but you can double check.

    A more common reason for the failure is that the flash of the camera can perfectly communicate with flash.  This is usually due to a bad connection in the 'foot' of the lightning.

    The flash must be in place in the rails of the claw.  Make sure that the lock is released, fully slide the flash into the rails of the hoof, stop.  Engage the locking of the foot, so we got him firmly (it will slide to the right and then click sur-pour-snap (you must press the button to release the locking lever).)  This is not * only * snug foot... He also puts a tiny metal pin locking in a small hole in the claw so that flash can't get out.

    At this point, the "foot" of the flash is actually the "ground" connection and he is in contact with the metal rails of the claw AND the five contacts on the foot must be in contact with the camera.

    This means there is nothing wrong with the flash - and there could be something wrong with her.   So if you are convinced you fully secures the flash, then remove the flash and inspect the "foot" on the flash.

    The metal plate on the bottom of the flash must be strong... If you use your fingers and try to move it (do not use a heavy force... we do not break - just firmly grasp and see if he's going to move at all) it should not move.  If it does not move that this means that the foot is loose and is not attached to the body of the flash (there are four very small screws which hold it firmly, but they are accessible from the inside of the flash.

    Next, inspect the 5 metal pins on the bottom of the flash.  Each of these areas is spring loaded so that they will stand against the 5 points of contact in the camera shoe.  I sometimes saw a performance of something (for example, a bit of sand) getting stuck and 'jam' a PIN so that she she brings more contact with the contact on the hoof.  If you view the foot of the flash of an edge - on view, all the pins it is back to the same height.  If one of them is lower than the rest... indented it is blocked.

    The 430EX II has a solid reputation as a flash work horse.  It tends to be among the most reliable flashing on failures is rare.

    It is also possible that the problem is in the camera.  A simple test of this is to try an another speedlite (if you have one, or if you have a friend who has a).  If it's your speedlite, and it is under warranty, then it is probably a simple remedy of service Canon.

    If the flash is not under warranty and that the problem is with the hot-shoe is is not solid, it is often an easy repair.  If a foot have been irreparably damaged, the entire foot can be replaced (everything is a module) and it is an easy and I think a little low cost repair.

  • Precomposed layer does not recognize the opacity setting (bug)

    Hello

    I have a very simple layer précomposé including a layer of unique text with a shadow (layer style). However, it does not recognize the opacity setting in the layer main, even when the value to 0%, and the playhead is not yet on the layer. If I change the opacity in the precomposed layer I see come to the main layer, but change the opacity in the main layer does nothing.

    I reported this to Adobe as a bug, someone at - it any other ideas?

    Thank you

    Antony

    Adobe-After-Effects-CC-2014.0-(13.0)ScreenSnapz001.png

    There is a difficulty. Apply a layer to your demo style, then turns off all styles. CR will now evaluate the layer styles in your source model and make them in the proper order.

    Why it works? You must understand the operation of the CR. When you turn on the continuous rasterization the layer type is identified before any effect or transformations take place. That's why you can scale a vector without problems layer if CR is turned on. This explains why a 3D demo that contains a 2D layer will be rendered as a 2D layer.

    When you apply a layer Style you change the layer type in the same way you edit a type of layer from 2D to 3D. If you want to have transformations applied to the layer style in the source file, you must change the type of the pre-comp Layer Styles layer layer.

  • 12.5.1 iTunes does not recognize the connected device

    iTunes was working fine yesterday, the computer recognizes the device and managed to make a back-up. Put current iTunes 12.5.1 and now iTunes does not recognize that a device is connected. The computer recognizes that a device is connected, it is a device of trust but not iTunes. Even in the file menu, devices is not available. All the USB drivers are up to date and used 3 different usb cords.

    Current iphone OS 10.0.2

    Windows 10

    Hello

    Check this help page: If iTunes does not your iPad, iPhone or iPod - Apple Support

  • Power mac g4 does not recognize the DVD/CD drive.  It has worked very well in Leapard

    I just newly installed Tiger on my PowerMac G4, and now it does not recognize the DVD/CD drive.  I did all the updates and it does not see the DVD in the DVD drive.  It works perfectly before a new clean install DVD of the Tiger.

    What is your indication that the DVD is not recognized?

    Run the utility disc with the disc in the optical drive.  The drive will appear in the sidebar of disk utility?

    I did all the updates and it does not see the DVD in the DVD drive.

    If you put another type of disc in the optical drive, as a music CD, it is recognized?

  • Hi, lost all my favorites... won't let me sign in the habit/recognize the password... will not send confirmation e-mail. WTF... Please help fast.

    Hi, lost all my favorites... won't let me sign in the habit/recognize the password... will not send confirmation e-mail. WTF...

    Please help, I just changed to Chrome and it's my first experience...

    Do you know why your bookmarks have disappeared?

    What the rest of the profile?

    Look at your desktop. You see a folder called; Old Firefox?

    https://support.Mozilla.org/en-us/KB/recovering-important-data-from-an-old-profile

    https://support.Mozilla.org/en-us/KB/back-and-restore-information-Firefox-profiles

    Start Firefox in Safe Mode {web link} by holding down the < shift >
    (Mac options)
    key and then from Firefox. Is always the problem?

  • I want to transfer my files to my external hard drive free windows click on my mac, it recognizes the drive but I can't nothing or see the files. Any help is appreciated

    I need to transfer my files to my external hard drive free windows click on my mac.  I can see the drive but cannot do anything or transfer.  any help is appreciated.

    The drive does not appear in the Finder?  Do you get an icon for it on your desktop?

    You say that it recognizes the drive, how exactly, what is the point?

    What happens when you try to use it?

    How the drive is formatted?  Is it encrypted?

  • PowerMac Pro doesn't recognize the MacBook Pro in target disk mode

    I'm trying to restore a disk from MacBook Pro from a backup, but my PowerMac Pro does not seem to recognize the MacBook Pro in target disk mode.  I have a FireWire 800 cable and adapter to the thunderbolt FireWire 800 port.  Is there something more I should do to get the Mac Pro power to recognize the MacBook Pro in disc mode target like an external hard drive?

    There is no "Power Mac Pro;" are you referring to a Power Mac (which would be less than 11 years), or a Mac Pro? You try to migrate data from the MacBook Pro to another Mac, or vice versa?

  • I uninstalled flash on my mac now youtube videos will not play. the error says safari does not recognize the video formats available.

    I uninstalled flash on my mac now youtube videos will not play.

    the error says safari does not recognize the video formats available.

    Reinstall the Flash Player... Why did you remove it?

    Barry

  • External CD drive does not recognize the CD burned on El Capitan.

    Using El Capitan 10.11.5 and an external hard drive, I have burned successfully mp3 files iTunes CD - I can play on the computer itself - but an external CD drive does not recognize, even if the Player recognizes the discs once engraved on Snow Leopard and previous models.  What's wrong? I burn "at the fastest possible speed," as I have always done.

    What CD format?  If you burn it to a CD mp3 this is not very common for a standard CD player to be able to read those.  You may have burnt the other CD audio CD format.

  • ITunes does not recognize the songs and the old shuffle stop at 30 seconds

    I have an old shuffle, 1 MB, maybe a 2nd gen, gold (A1204 EMC). iTunes (iOS 10.11.4 12.4.1) has problems with the shuffle. He quickly recognizes the shuffle, which appears as a mounted device and on the desktop a moment, then it reports that there are no. The shuffle disappears from the desktop and I get a warning saying that it has been deleted without eject.

    ITunes then freezes and I have to force quit.

    I can charge the shuffle, but when I go to listen to the songs, they last 30 seconds or less, the following starts then and in about 30 seconds, it will stop followed by another song.

    I tried to reset (turn on, turn off for 5 seconds and turn on) several times but nothing changes. I tried to erase using disk utility (15.0). The shuffle will not disassemble process works.

    All of the suggestions. My 2009 iPod Touch works better than this most recent shuffle. I like to use the shuffle when you do yard work.

    Same thing happens when I try to sync the shuffle using a snow leopard starts.

  • I can't Thunderbird to recognize the password for the gmail account, that I am trying to add.

    I am trying to add a gmail account to Thunderbird that already hosts several gmail accounts. No matter what I do, I can't recognize the password in Thunderbird. I admit, I was wrong a few times, but I got the right one, and it was typed in perfectly several times, as well as copy and paste. The password worked well to log on to the account directly, but not in Thunderbird. I tried to change the password, and that doesn't work anymore. I tried to add this account in Windows and Ubuntu 14.04 8.1, and the results were the same. In Ubuntu, I tried adding add another account that I needed, and which took place without a hitch. The only thing I can think is the address that I am trying to add is linked to an email address for a Web site being transferred to me which is hosted by Yahoo and his business correspondence. I tried to add the account yahoo directly, but I add the same problems with passwords, but I suspect that most of you know that it's because Yahoo is simply suck more to try to become irrelevant.

    I can't believe how quickly you help on this forum, a few seconds, you guys solved the problem and the account has been added with any other questions. People on this forum rock!

    Now I'm beginning to suspect that he indeed had to do with this first batch of bad passwords.

  • I have a My Passport to the top by car and I get error messages on this to be ejected (although it was still connected). Now my computer does not recognize the drive. All solutions?

    I have a My Passport to the top by car and I get error messages on this to be ejected (although it was still connected). Now my computer does not recognize the drive. All solutions?

    Drive, interface in the crankcase of training controller, or the USB port or the cable may be faulty.

  • iPhone does not recognize the resettlement of the iPhone Apple ID

    My sisters iPhone 6 was blocked as it tried to enter his PIN code for too many times.

    I tried to re - install the iPhone through iTunes.

    Resettlement, the iPhone asked Apple ID

    Because she did not know the password, I used recovery password Apple and its Apple ID works again...

    But the iPhone says its connected to another apple (b***@icloud.com) ID.

    When I enter the Apple ID and password recovered, it does not.

    In other forums, there are similar problems when the phone is connected to "find my iPhone", but when I get his Apple ID in iCloud i(turned off) phone is not connected to "find my iPhone".

    I'm out of options here.

    She owns an iPhone 6 but it is unusable because of security concerns.

    Do you recognize the email address @iCloud.com? Did you sign in iCloud by using this address?

    GB

  • Siri does not recognize the voice.

    My Apple TV remote Siri works fine, but only of Siri does not recognize the voice. I just bought last month. No gross State aid.

    Are you pressing the button of Siri (micro) when you talk?

    Have you enabled Siri in settings > general > Siri?

    If so, then try a reset by unplugging the power cord for 30 seconds.

Maybe you are looking for

  • Error of the bad Image of Skype?

    A few days ago, Skype was working for me, but now all of a sudden I get this error: C:\Windows\system32\SHFolder.dll is not designed to run on Windows or it contains an error. Try to install the program by using the original installation media or con

  • SD-L622A CD/DVD drive does not read some CD - Satellite L300-144

    Reader TOSHIBA SD-L622A.The drive does not boot with Windows XP Service Pack 3 CD, starting with the diagnostic utilities CD (IMHO 2 CD format). Also, these CDs do not see a car even under Windows XP, Vista.My wife bought Toshiba L300, but another ch

  • Dell all in one 926 printer does not print with Vista

    I can't go to my printer. I used the fix and it could not find any errors.  I have 6 print-ready pages, and I have the all-in-one selected as the default printer. I reinstalled the program printing and still cannot print. I'm going restart now.  I us

  • Oversize printed on 8500A910g fonts

    For reasons that elude me completely, my officejet started printing huge catalog (so multiple pages, all useless).  Sometimes if I turn off and on again, or stop my entire system, it will work for awhile.  But then, she starts just do it again.  Will

  • Windows cannot access file you will not have permission to access the item path or specified device.

    Windows cannot access file you will not have permission to access the item path or specified device. I have windows7 OS, I try to open any application above the display of error messages. Please help me... Thank you!!! original title: Windows cannot