<p>You could try to create an expression that sets the opacity of your layer to 0 once you've hit a certain time in your timeline. You should be able to code this properly in Java or the basic expression-language. A syntax should look somewhat like this:</p>
<blockquote>
<p>if (comptime)&gt;&quot;yourtime&quot;</p>
<p>opacity.yourlayer=0</p>
</blockquote>

CC BY-SA 4.0
2020-08-11T15:26:31.647Z
Thank You for your answer. I know Java, and please, how to create that expression in AE? I very newbie with AE
kabrice
CC BY-SA 4.0
2020-08-11T08:50:20.877Z
2020-08-11T08:50:20.877Z
Florian Claaßen
<p>Make a key frame (or more than one at different points) on the Opacity control. You can get to it by selecting the layer and pressing <kbd>T</kbd>. Or open up all the triangles to find it. Set the opacity to zero to make the layer invisible.
<a href="https://i.sstatic.net/FdyDF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FdyDF.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2020-08-11T15:45:34.697Z
Apologies if I misunderstood - I'm not sure how well you know after effects. Maybe you mean you just want to trim the end of a layer? You can do this by selecting the layer at a certain time, and pressing the ] key.
tomh
CC BY-SA 4.0
2020-08-12T09:11:24.660Z
By the way, this is an old but very good beginner's guide to After Effects. You might find it useful: http://www.videocopilot.net/basic/
tomh
CC BY-SA 4.0
2020-08-11T08:09:20.603Z
2020-08-12T09:36:21.873Z
2020-08-12T09:36:21.873Z
tomh
<p>I use Adobe After Effects (Last version) for video editing</p>
<p>I created a composition with a video, shape and null Object. So far everything work well.
Now I want to hide the layer from a certain point in my timeline.</p>
<p>Let say my timeline is 10s, I want my layer to be visible at the first 3s and then to be invisible the remaining seconds</p>
<p><a href="https://i.sstatic.net/0ap5N.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/0ap5N.png" alt="enter image description here" /></a></p>
<p>What is the best and easiest way to perform that?</p>
<p>Thank You</p>

<after-effects><compositing><video-player>
Best and easiest way to delete a layer by a specific time in the After Effects timeline
kabrice
# Best and easiest way to delete a layer by a specific time in the After Effects timeline

(Asked by: username_0 on 2020-08-11)

I use Adobe After Effects (Last version) for video editing

I created a composition with a video, shape and null Object. So far everything work well.
Now I want to hide the layer from a certain point in my timeline.

Let say my timeline is 10s, I want my layer to be visible at the first 3s and then to be invisible the remaining seconds

[![enter image description here](https://i.sstatic.net/0ap5N.png)](https://i.sstatic.net/0ap5N.png)

What is the best and easiest way to perform that?

Thank You

**Tags:** after-effects, compositing, video-player


---

## 2 answers

### Answer by username_2 on 2020-08-11. Score: 3 | Accepted answer

Make a key frame (or more than one at different points) on the Opacity control. You can get to it by selecting the layer and pressing `T`. Or open up all the triangles to find it. Set the opacity to zero to make the layer invisible.
[![enter image description here](https://i.sstatic.net/FdyDF.png)](https://i.sstatic.net/FdyDF.png)

> **Comments:**
> **username_2**: Apologies if I misunderstood - I'm not sure how well you know after effects. Maybe you mean you just want to trim the end of a layer? You can do this by selecting the layer at a certain time, and pressing the ] key.  
> **username_2**: By the way, this is an old but very good beginner's guide to After Effects. You might find it useful: http://www.videocopilot.net/basic/  

---

### Answer by username_1 on 2020-08-11. Score: 0

You could try to create an expression that sets the opacity of your layer to 0 once you've hit a certain time in your timeline. You should be able to code this properly in Java or the basic expression-language. A syntax should look somewhat like this:

> if (comptime)>"yourtime"
>
> opacity.yourlayer=0

> **Comments:**
> **username_0**: Thank You for your answer. I know Java, and please, how to create that expression in AE? I very newbie with AE  

---

