After Effects Expression deactivate layer if in comp

Hi guys,
I am currently working on a huge animation with lots of comps. I have certain animations, that are used several times, but I don't want to duplicate all the comps and I am trying to figure out a more elegant way to use those comps.
Is there an expression, something like (" if layer in pre-comp1 is nested in comp2, then opacity=0", or something like that),  to deactivate certain layers if they are nested in a certain comp?
Thanks in advance!

An expression can only access another comp by name. Tthere's no way for it to figure out which precomps its parent comp is nested within.
Dan

Similar Messages

  • After Effects Expressions

    Hey. I'm looking for a solution to an issue I have... And I don't know any javascript, so I can't find it. Can you help me, please?   So tell me if this is possible. Variable "a" equals "time", while variable "b" reaches value 100. And "time" is a constant number. In other words, simply find value of "time" when "b=100" and then assign this value to "a".

    After Effects Help | Expression basics
    After Effects Expression language measures time in seconds. So:
    if (time <= 1) {
        x = 100}
    else x = 200;
    [x, value[1]]
    will set the value of an x, y array, say the position value so that if the time is less than one second the x value will be 100 but if time is greater than 1 second then the value of x is 200.
    This is simple if statement java. It takes time to learn but there are tons of resources. Start with the Expression Basics.

  • Help with After Effects? Null Layer and Text not working?

    In after effects cs5.5 on mac, im motion tracking as normal, and the track works fine, then when i add the null layer and edit the tracking target to the null layer, the screen goes black, and all i can see is the null layer as a red box moving along the motion track path (i cant see the path) also, whenever i try to add text, (which im trying to motion track via attatching to the null layer) the text is invisible, when the screens black, all i can see is the wire frame of the text next to the square null layer, im pretty new to after effects, but im following tutorials as i should, and its just not working as it shows in all the videos ive tried, please help!

    Check whether you have wireframe mode enabled/ Live Update disabled. Sounds like one of those cases. Other than that this could be OpenGL issues, so turn it off in the prefs. Also check your comp size vs. the size of the footage you are tracking. Tracking works relative to the layer, so if the comp is too small, the values would be so large they end up being outside the comp.
    Mylenium

  • After Effects not rendering layer transitions

    Dear Gurus,
    This is my first day with After Effects but i've done plenty of research and hopefully my main query here isn't a silly one.
    I have a composition (made from JPEG sequence) with a number of layers and finally managed to add a 'block dissolve' effect between them.
    My Setup:
    MBP 8GB RAM, After Effects CS4, OSX Lion (developer release).
    My Questions
    (1) When I preview the sequence everything looks great (albeit slow) and the block dissolves show up fine.  When I render it out, it also looks good except there is no block dissolve transitions - it just flicks from one layer to the other.   FYI - I don't have openGL enabled.  I am trying to render to quicktime format with H.264 encoding at 90% quality.
    (2) In iMovie (sorry for the comparison), it was really easy to just drop a transition between two sets of footage.  In After effects, I added the effect to the clip then had to click the timeclock icon and specify the duration etc etc..  Not a big deal but is there a easier way?
    (3) Also in iMovie there appeared to be a lot more normal/bland transitions effects like cross fades.  I'm sure they are possible in After Effects - could someone give me a quick pointer?
    Thanks!

    (2) In iMovie (sorry for the comparison), it was really easy to just drop a transition between two sets of footage.  In After effects, I added the effect to the clip then had to click the timeclock icon and specify the duration etc etc..  Not a big deal but is there a easier way?
    That's how AE works. It's simply a different paradigm.
    (3) Also in iMovie there appeared to be a lot more normal/bland transitions effects like cross fades.  I'm sure they are possible in After Effects - could someone give me a quick pointer?
    Of course there is - you stack and combine effects to produce new effects and unique looks which for all intents and purposes can be consecutive applications of transitions as well - one linear wipe from the right, one from the left, one from top, one from bottom and all with different timing - animated organic crop. Once animated, you can save this as an animation preset and re-apply it to otehr layers. Check the help for the gory details. Of course you can also get tons of extra plug-ins to add more and more such stuff, but if I may be so bold: If your sole intention is to produce slideshows with canned transitions, then you are using the wrong tool and on some level mis-using AE. As I already said above - you need to get into it if you realyl want to exploit its creative potential. AE is not an editing tool or any such thing, it is a versatile compositing tool and that power comes with a price. Even if you ever only use 0.5% of it, you need to adapt your workflow.
    As to why your effects don't render is an open question, but since you yourself mention that this is your first day with AE, chances are you have flipped some switch wrongly in teh render settings, aere using OpenGL or something silly like that. Perhaps you can provide screenshots or a detailed listing ofd your comp settings, timeleine and render settings to help unriddle this...
    Mylenium

  • After Effect CS 5 layer glitch?

    Hey all,
    first of all, i'm new here and i'm not a pro adobe user so please bear with me!
    I have been working on this project for over a year in after effects. It contains more than 1300 layers and has always worked perfectly, untill now.
    For no appearant reason, suddenly after effects is glitching with my layers, especially the 'last' ones ( the ones completely at the buttom).
    All layers are 2D, there is no 3D layer to be found.
    I recon it has something to do with after effects naming the layers past the first 1000 exactly the same? Strange thing is that i have been working like this for over a month and it never glitched untill now ...
    I cant select my layers, and when i try it jumps back to the middle of my comp and all layers 'dissapear'. It still shows in the above right corner the correct layer but it is imposible to work with correctly ...
    Hope you understand my ramblings! Anyone know any way to fix this? Thanks in advance!

    There is a limitation (a bug, really) that causes the After Effects UI to not correctly display items in lists if the lists are more than 32,000 pixels tall. In the case of a list of layers in the Timeline panel, that limit is hit somewhere over 1,000 layers.
    If you have so many layers in a single composition, then you should probably be doing a lot more precomposing.

  • Premier Pro CC 2014 (just downloaded and installed) and After Effects dynamic link results in empty comp

    Help!
    I have seen one other question about this problem without a resolution.  If anyone can help I would greatly appreciate it.
    I have followed the instructions on Adobe.com both the written version and in a video tutorial.  I right click on a clip and choose 'replace with After Effects composition'. After Effects opens and asks me to save and name the new project: all good.  Then the project opens and there is no clip in the composition or the project pane - just the composition itself.  Switch back over to PP and the clip is referencing the AE comp - but is blank.
    Is this a glitch or am I doing something wrong? In the video tutorial and written instructions it seems to just work.
    Thanks in advance.

    Yes. It turned out that when I last updated my creative cloud, one of the two programs had not completed updating to the newest version (I forget whether it was Premiere or After Effects). After I ran a complete update for both programs and restarted the computer, the problem was solved. Hope this helps!

  • Prem. Pro to After Effects Dynamic Link Results in Empty Comp

    Hi,
    I'm not sure if this is a bug, or a setting that I've screwed up, but since the last CC update, whenever I right click a clip or group of clips in a PP timeline and choose "replace with After Effects Composition," I am getting a blank comp and no files imported into After Effects. The dynamically linked project DOES show up inside of Premiere, so we're ok from that end.
    Before anyone redirects me, I found a similar post to this previously, but the issue seemed to be different than the problem I'm having and I have tried the suggested fix in that post, anyway, with no luck.
    Any thoughts?
    Thanks for your help!

    Yes. It turned out that when I last updated my creative cloud, one of the two programs had not completed updating to the newest version (I forget whether it was Premiere or After Effects). After I ran a complete update for both programs and restarted the computer, the problem was solved. Hope this helps!

  • Help with After Effects' expressions

    Hi, I'm actually working on simulations of movements and I'd like to make an expression to set position and rotation in function of time . my functions are :
    position : X(t)= 15(cm/s)* t (s)
    rotation :  F(t)= -5(rad/s) *t (s)
    Thanks in advance

    Let's tackle your position expression first: position : X(t)= 15(cm/s)* t (s)
    Position is an array and it looks like this: [x, y, z]
    The values are x = [0], y = [1], and z = [2]
    Time is defined by the word "time"
    distance is measured in pixels not in centimeters.
    If you want to control the position of x you must define x as a formula multiplying the initial value by time and a number of pixels you want it to move over a given amount of time. The easiest way to do this is to define the number of pixels, divide time into frames, then multiply the existing value of x by the pixels per frame.
    The expression would look like this:
    x = value[0];
    y = value[1];
    s = 2; // speed in pixels per frame
    m = time/thisComp.frameDuration;
    newx = x + (m * s);
    [newx, y]
    If you need the movement to exist on a 3D layer then add z = value[2]; and change the last line to [x, y, z]
    Adjust the value of s to match your composition. If you want the layer to move in the other direction change the plus to a - sign for the calculation newx.
    Now let's look at your rotation expression: rotation :  F(t)= -5(rad/s) *t (s)
    You've almost got it except that rotation is measured in degrees and you'll want to set up your expression to rotation speed in º per frame. There is no array for rotation so the language is a little easier.
    The expression would look like this:
    r = value;
    s = .5 // degrees per frame
    m = time/thisComp.frameDuration;
    newr = r - (m * s);
    Same deal here. Adjust the value of s to get the speed you want and change the minus sign to a plus in the newr calculation to change direction. Both allow you to set an initial value for the property or even additional keyframes if needed. That's why I used the value statement.
    Hope this helps. I'd suggest reading the expression guide in the help files. Once you get a handle on the language the math is fairly easy.

  • After Effects CS3 - Text layer bugging, goes to upper corner always

    Hi!
    I'm using AE cs3, it has worked fine but suthenly it started to do following...
    When I create a new textlayer, put it wherever on the screen and type out my text, it insist on appearing in the left upper corner. After I created it, i move the bounding box around, scale it rotate etc, the text just keeps staying there, in the top left corner slightly outside, it doesnt respond to any transformation adjusting...
    ANNOYING...
    But when I make the text layer 3d, it appears in the bounding box and is editable like normally... without 3d cam or anything. Have I by accident hit som weird switch or is it corrupted?

    To report bugs, send a detailed bug report (including information about the version number of your software, some details about your computer, et cetera) to [email protected]
    You can also submit bugs through the
    feature request form if that's more convenient:

  • After Effects CC doesn't show the Comp Screen

    Hey Guys,
    Since a few days, I have a really bad problem with AE CC. Everytime I'll open AE and start a new composition, everything's working fine. But the preview of my comp is not shown...
    Neither a reinstallation of AE nor a reinstallation of my graphics driver solve my problem.
    Please help me!
    I'm sorry for my bad english ://

    You need to reset your workspace. Find it here:

  • Dyn. Link, After Effects, showing wrong video, wrong AE comps

    I'm using the CS4 production premium, XP Pro, HP dc7600 Convertible, Intel(R) Pent. D CPU 3.4GHz, 3.39 GHz, 3GB RAM.
    (yes, I know I need a better machine)
    I've done my show without a problem for 6 weeks.
    This week I had serious issues.
    I'm producing a 10 minute show, shot on a green wall, with 3 separate cameras (3shot and 2 closeups).
    I produce the show (with photoshop graphics, jpg images, soundbooth rendered and replaced audio, etc) then I do the AE comps last.
    When the movie is rendered, the 3 shot suddenly shows up as a close-up, as black, or as media offline graphic.
    I cut up the greenwall clips and then use dyn. link to create mulitple new AE comps.  I do this for all the 3shot clips (note: this is one library clip cut into several smaller pieces), then close the AE project.  Then I repeat this process for the Closeup clips (same deal, one library clip cut into multiple pieces then each is turned into a new AE comp).  The finished show has 10-12 comps that are in two separate AE projects.
    When I go into the project to figure out what went wrong, I tried to "edit original" AE comp 29, but AfterEffects opens up and it opens A.) the wrong project b.) the wrong comp (it tries to tell me 34 is 29).
    The project was fine before I sent it to the Media Encoder.
    Help?
    Anthony

    Jim,
    Thanks for the suggestion.  What I ended up doing was using the AE render que to render each clip, then I replaced the linked comps on the Pr. timeline with the fully rendered clips prior to exporting the finished movie.
    Solved the problem, but takes way too long.
    Something odd that I noticed, when I use dynamic link from Pr. to AE, the library in AE shows the clips but they have the "unknown file type" icons.  In order to make AE do anything properly, I have to select each clip I import into AE and hit Ctrl + H (to relink the file).
    Why would Dynamic link import clips from Pr. but defaultly not establish the correct link?
    Watching for the "missing or unknown file type" icon is a real time waster, but at least I can re-establish the link and then proceed.
    I'm going to try the old process with this in mind to see if that can be the ultimate issue resolver.
    Thanks,
    Anthony

  • Bringing Premiere Pro project into After Effects

    I tried importing Premiere Pro projects to After Effects, but I only got the various files, not the timeline. I just watched a tutorial about Dynamic Link, but when I clicked Adobe Dynamic Link/New After Effects composition in Premiere, I got a layer that was all black, with no sound. I have CS3 Production Premium and Windows XP Media Center SP2.
    Right now, I just want to keep what I edited in Premiere, but I get better quality video if I export it to H.264 MOV in After Effects than anything I've found in Premiere. I can't understand why that's so, but until I find something just as good in Premiere, I want to save everything in After Effects.

    Create a project and a comp. Copy the timeline from Premiere Pro and paste it into the timeline of After Effects.

  • Replace with after effects composition not bringing in media

    When I replace a premiere clip with an after effects comp it creates a new composition but doesn't bring in the media.  Anyone have a answer?

    I am having the same issue. When I "replace with after effects composition" it creates an AE comp but no media files transfer over.
    I've been able to work around it but when I want to use a small clip from a long video file it's a big hassle to re-import the footage into AE and find the clip I need to mess with, then re-place back in premiere.
    This problem occurs with any media, whether it's a JPEG image, a PSD file, or video footage (MOV format shot on a Canon DSLR).

  • Automatization in After Effects

    Hello,
    I am writing a thesis about automated infographics in After Effects. As I am quite new in After Effects, I have limited knowledge of literature and sources connected to that topic. So far I know about the Adobe Press official books like Classroom in a book and After Effects Expressions by Geduld. I would be very grateful, if someone could give me some tips on useful books about automatized motion graphics or automation in AE. My areas of interest are mostly:
    - creating automated rendering processes
    - creation of custom controls
    - how to automate the importing of assests (into a predefined composition)
    - importing spreadsheet textual data into text layers
    - using spreadsheet data to control expressions/effects in AE
    - creation and principles of motion infographics
    - AE/motion infographics in marketing, advertisement and corporate PR
    - cooperation of AE with other software like PS, AI, Premiere
    - AE workflow
    - online generating of graphics based on playlists
    - or anything else you think might be useful
    Thank you very much for your help and tips
    Anita

    anita-s wrote:
    With being quite new I meant I have not written any scripts of my own but I am already familiar with using After Effects.
    OH! That makes much more sense.
    In addition to the resources that Rick mentions, I would suggest you check out Dan Ebberts' site. He has a wealth of knowledge in Expressions in AE and is very generous to share what he knows.
    Also, a basic understanding of color, animation, and motion design is critical for producing quality infographics. A study in the rules of design and the rules of animation would be beneficial. If you haven't already, check out Design Essentials for the Motion Media Artist: A Practical Guide to Principles & Techniques by Angie Taylor or similar resources.

  • FR: Complete integration of Premiere and After Effects

    No more Dynamic Link, all functions of both applications
    available within a single interface.
    Thoughts?
    I might subscribe for this one.

    I agree 100%.
    With proper memory management techniques, I should be able to open the cloud applications the way I open Chrome. When I open Chrome on my desktop, I get a home page with the news I want, a tab for these forums, a tab for Google Maps (which I use a LOT), a tab for YouTube and a couple of others.
    When I start up the "Creative Cloud" why can't I have tabs for Premiere Pro, After Effects, Speedgrade, Photoshop & Audition? And I should be able to add or delete any other application from the suite that I want. Like InDesign (now that I finally have a reason to use it to make Premiere Pro titles) or Illustrator. Or Flash. Or whatever.
    If I select an After Effects comp on the Premiere Pro sequence and click on the After Effects tab, I should see the comp I had selected. If I select an audio file on the Premiere Pro sequence and click over to Audition, the software should assume I meant "Edit in Audition" and do the same thing.
    The tabs across the top should probably disappear unless the cursor goes up into that area, to avoid waste of screen real estate.
    Each application should run standalone, or it could run as a piece of the puzzle. Either way.
    Why in the world should I have to even save a PSD and then import it into Premiere Pro. If I change from Photoshop to Premiere Pro, a message should come up asking me if I want to import it into Premiere Pro, and give me the option of making this the default action so that it only ever asks me that question once.
    Think big, Adobe.
    Exactly!
    Treat a suite of products as an integrated suite!

Maybe you are looking for

  • Video previews not working in iTunes

    Hi all, I've seen this posted a few different ways without any resolution to the problem so I thought I would give it a shot. Video previews are not working properly for me. When in the iTunes Store and I click on a "View Trailer" for a movie or prev

  • JSF 1.2 implementation in MyEclipse

    In my project J2EE5, I can found in the Java Build Path - Librairies these library : - Facelets 1.1 - Java EE 5 Library - JSF-impl 1.2 - JSF-api 1.2 - JRE System Library 1.6.0_04 But the tld used seem to be JSF 1.1. For exemle if I use "label" attrib

  • I can't update my itunes to 11.0.4

    due to the message that a network resource is unavailable, I can't update. I've never had problems updating before this. it seems to be something about Itunes.msi and Quicktime.msi being missing. Please help! I really don't want to uninstall and re-i

  • Can't trash files on Windows Server

    I have several .mov files that I created and copied to a Windows server on the network for viewing by my associates. But once they view them I can't trash them. Every time I try I get an error that says "The operation cannot be completed because you

  • Developer tool install issue

    First off this is my first time posting on here secondly I did not know exactly where to post. Sorry if it's in the wrong area! I wanted to start learning Mac programming and I was told to install the Developer tools that came on a disk with my new c