<p>To find the pixel dimensions of a layer in AE,</p>

<p>Hit 's' that brings up scale,
then right-click Scale to bring up the <strong>Edit-Value</strong> dialog,</p>

<p><a href="https://i.sstatic.net/GadoM.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/GadoM.png" alt="enter image description here"></a> </p>

<p>then set <strong>units</strong> to <strong>pixels</strong>.</p>

<p><a href="https://i.sstatic.net/EPynd.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/EPynd.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2016-04-27T13:53:33.410Z
When I first read this I thought you were saying that you could change the value in the scale numerical box to pixels, and I was all: "what?! I never knew that!". But then I tried it and realised what you meant. A good suggestion though.
stib
CC BY-SA 3.0
2016-04-27T15:25:57.160Z
This seems a lot simpler than the current accepted answer. I will need to verify it though. Also, what version of AE are supported?
GiantCowFilms
CC BY-SA 3.0
2016-04-30T07:15:01.180Z
Yes, if you just want to know the dimensions this is simpler. Doing it with an expression means you can use that value dynamically to drive other things. So it depends on what you want to do.
stib
CC BY-SA 3.0
2016-04-27T02:00:55.100Z
2016-05-02T12:43:49.463Z
2016-05-02T12:43:49.463Z
alexh
<p>You get the scale of the layer in the Transform property menu as seen below. The scale is in relation to the comp width and height if its solid or adjustment layer, for imported footage its in relation to the source width and height.
To get pixel values you just do a little math:</p>

<p><code>(Comp or Footage width|height/100)*Scale = pixel dimension of layer</code></p>

<p>When it comes to shape layer, the size of the shape is shown in the path menu unless its a custom shape, there is no easy built-in way to determine the bounding box of a custom path, you would need to write a script for that.</p>

<p><img src="https://i.sstatic.net/k5THc.png" alt="enter image description here"></p>

CC BY-SA 3.0
2016-04-30T07:20:53.770Z
This answer still has an error. The scale is **always** relative to the layer, whether it's a solid, adjustment layer or external layer. If you make a 10 X 10 pixels solid or adjustment layer  in a 100 X 100 pixels comp the scale will still say 100%, *not* 10%.
stib
CC BY-SA 3.0
2016-04-30T21:19:42.287Z
Feel free to make an edit. Not sure how to word it better.
timonsku
CC BY-SA 3.0
2014-11-24T01:33:38.763Z
No, that is wrong, scale is relative to the scale of the layer, if I brought in a 200px * 200px image into an HD comp, by your formula it would be 192px by 108px.
GiantCowFilms
CC BY-SA 3.0
2014-11-24T02:07:39.650Z
oh right, I was only thinking of solids as the pixel value of footage is usually known. I edited the answer to reflect that.
timonsku
CC BY-SA 3.0
2014-11-24T00:27:12.570Z
2014-11-24T02:09:41.370Z
2014-11-24T02:09:41.370Z
timonsku
<p>To find the pixel dimensions of a layer you can use this expression:</p>

<blockquote>
<pre><code>layer.sourceRectAtTime(t = time, includeExtents = false)
</code></pre>
  
  <p><strong>t</strong>: the time index, in seconds. A floating-point value.</p>
  
  <p><strong>includeExtents</strong>: true to include the extents, false otherwise. Extents apply to shape layers only, increasing the size of the layer
  bounds as necessary.</p>
</blockquote>

<p>This is only for AE version > 13.2 (CC 2014.2). See the announcement <a href="http://blogs.adobe.com/aftereffects/2014/12/after-effects-cc-2014-2-13-2.html" rel="nofollow noreferrer">here</a>.</p>

<p>For earlier versions <a href="https://video.stackexchange.com/questions/13001/can-you-measure-the-width-of-a-character-in-an-ae-expression">this question</a> is relevant, in the answers there is a link to an expression that achieves the same result, albeit a lot slower.</p>

CC BY-SA 3.0
2015-01-14T00:43:05.010Z
Thanks, sadly I'm still on CS6 D:, so I wont accepted it (But you earned an upvote), since I'm pretty sure that there *must* be a way.
GiantCowFilms
CC BY-SA 3.0
2015-01-14T00:53:49.787Z
edited with link for previous versions of AE.
stib
CC BY-SA 3.0
2015-01-14T00:39:48.627Z
2015-01-14T12:20:27.057Z
2017-04-13T12:46:08.110Z
stib
<p>How can I <strong>find the dimensions in pixels</strong> of a layer in adobe after effects.</p>

CC BY-SA 3.0
2014-11-23T18:55:08.190Z
do you mean whether if its a 2D or 3D layer?
timonsku
CC BY-SA 3.0
2014-11-23T19:51:19.590Z
@ProfessorSparkles No, I wan't to know how many pixels wide and how many pixels tall.
GiantCowFilms
<after-effects><post-production>
Layer dimensions in after effects
GiantCowFilms
# Layer dimensions in after effects

(Asked by: username_0 on 2014-11-23)

How can I **find the dimensions in pixels** of a layer in adobe after effects.

**Tags:** after-effects, post-production

> **Comments:**
> **username_1**: do you mean whether if its a 2D or 3D layer?  
> **username_0**: @ProfessorSparkles No, I wan't to know how many pixels wide and how many pixels tall.  

---

## 3 answers

### Answer by username_3 on 2015-01-14. Score: 3 | Accepted answer

To find the pixel dimensions of a layer you can use this expression:

layer.sourceRectAtTime(t = time, includeExtents = false)

t: the time index, in seconds. A floating-point value.
includeExtents: true to include the extents, false otherwise. Extents apply to shape layers only, increasing the size of the layer
  bounds as necessary.

This is only for AE version > 13.2 (CC 2014.2). See the announcement here.
For earlier versions this question is relevant, in the answers there is a link to an expression that achieves the same result, albeit a lot slower.

> **Comments:**
> **username_0**: Thanks, sadly I'm still on CS6 D:, so I wont accepted it (But you earned an upvote), since I'm pretty sure that there *must* be a way.  
> **username_3**: edited with link for previous versions of AE.  

---

### Answer by username_2 on 2016-04-27. Score: 7

To find the pixel dimensions of a layer in AE,

Hit 's' that brings up scale,
then right-click Scale to bring up the **Edit-Value** dialog,

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

then set **units** to **pixels**.

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

> **Comments:**
> **username_3**: When I first read this I thought you were saying that you could change the value in the scale numerical box to pixels, and I was all: "what?! I never knew that!". But then I tried it and realised what you meant. A good suggestion though.  
> **username_0**: This seems a lot simpler than the current accepted answer. I will need to verify it though. Also, what version of AE are supported?  
> **username_3**: Yes, if you just want to know the dimensions this is simpler. Doing it with an expression means you can use that value dynamically to drive other things. So it depends on what you want to do.  

---

### Answer by username_1 on 2014-11-24. Score: 3

You get the scale of the layer in the Transform property menu as seen below. The scale is in relation to the comp width and height if its solid or adjustment layer, for imported footage its in relation to the source width and height.
To get pixel values you just do a little math:

`(Comp or Footage width|height/100)*Scale = pixel dimension of layer`

When it comes to shape layer, the size of the shape is shown in the path menu unless its a custom shape, there is no easy built-in way to determine the bounding box of a custom path, you would need to write a script for that.

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

> **Comments:**
> **username_0**: No, that is wrong, scale is relative to the scale of the layer, if I brought in a 200px * 200px image into an HD comp, by your formula it would be 192px by 108px.  
> **username_1**: oh right, I was only thinking of solids as the pixel value of footage is usually known. I edited the answer to reflect that.  
> **username_3**: This answer still has an error. The scale is **always** relative to the layer, whether it's a solid, adjustment layer or external layer. If you make a 10 X 10 pixels solid or adjustment layer  in a 100 X 100 pixels comp the scale will still say 100%, *not* 10%.  
> **username_1**: Feel free to make an edit. Not sure how to word it better.  

---

