Answers.Body: <p>There isn't really a <em>good</em> way of doing this. But there is a way of doing it.</p>
  
  <p>With the stroke on its own layer, from the align pallet centre the layer to the composition horizontally and vertically. </p>
  
  <p>Now copy the layer's current position value. Then right-click the position property and choose reset, </p>
  
  <p>Go the stroke's anchor point value (not the layer anchor point but the one inside <em>Contents>shape1>Transform: Shape1</em>.</p>
  
  <p>Paste the original position value there, then click on the individual property values and subtract the value there from half the size of the comp (in other words whatever the position property is now). So if the comp is 1920×1080 and the copied value was [999,123] you'd type <em>960 - 999</em> in the x channel and <em>540 - 123</em> in the y channel.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-04T08:34:13.097Z
Answers.Text: I guess the easiest way is to have any single strokes on their own shape layer and use the _layer transform_ adjustments. Thank you!
Answers.UserDisplayName: Alaska
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-05T00:29:24.967Z
Answers.Text: Yesp. You could copy therm back to the other shape layer once you'd adjusted their transforms. I always feel that Adobe kinda messed up with the way shape layers work, it's always a bit messy.
Answers.UserDisplayName: stib
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-05T00:54:07.837Z
Answers.Text: Oh and I was going to say “I wish they'd made it like Illustrator”, which reminded me—a workaround for complex shapes is to do them in Illustrator, bring them in and convert them to shape layers, since AI has much better tools for the job.
Answers.UserDisplayName: stib
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-03T02:24:50.317Z
Answers.LastActivityDate: 2016-10-03T02:24:50.317Z
Answers.UserDisplayName: stib
Body: <p>I'm fairly new to AE and I'm having some issues centering different shape elements. </p>
  
  <p>I've been using the <em>Cmd+double click the Pan Behind tool</em> to center the anchor point on circle and rectangle shapes but but it doesn't work the same with straight strokes. So how do I center the anchor point to the center of a straight stroke's path?</p>
  
  <p>Thank you!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-10-03T02:29:58.150Z
Comments.Text: It's not just straight strokes, it's any freehand stroke
Comments.UserDisplayName: stib
Tags: <after-effects>
Title: Centering in After Effects
UserDisplayName: Alaska
ThreadText: # Centering in After Effects
  
  (Asked by: username_0 on 2016-10-02)
  
  I'm fairly new to AE and I'm having some issues centering different shape elements.
  
  I've been using the *Cmd+double click the Pan Behind tool* to center the anchor point on circle and rectangle shapes but but it doesn't work the same with straight strokes. So how do I center the anchor point to the center of a straight stroke's path?
  
  Thank you!
  
  **Tags:** after-effects
  
  > **Comments:**
  > **username_1**: It's not just straight strokes, it's any freehand stroke  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-10-03. Score: 2
  
  There isn't really a *good* way of doing this. But there is a way of doing it.
  
  With the stroke on its own layer, from the align pallet centre the layer to the composition horizontally and vertically.
  
  Now copy the layer's current position value. Then right-click the position property and choose reset,
  
  Go the stroke's anchor point value (not the layer anchor point but the one inside *Contents>shape1>Transform: Shape1*.
  
  Paste the original position value there, then click on the individual property values and subtract the value there from half the size of the comp (in other words whatever the position property is now). So if the comp is 1920×1080 and the copied value was [999,123] you'd type *960 - 999* in the x channel and *540 - 123* in the y channel.
  
  > **Comments:**
  > **username_0**: I guess the easiest way is to have any single strokes on their own shape layer and use the _layer transform_ adjustments. Thank you!  
  > **username_1**: Yesp. You could copy therm back to the other shape layer once you'd adjusted their transforms. I always feel that Adobe kinda messed up with the way shape layers work, it's always a bit messy.  
  > **username_1**: Oh and I was going to say “I wish they'd made it like Illustrator”, which reminded me—a workaround for complex shapes is to do them in Illustrator, bring them in and convert them to shape layers, since AI has much better tools for the job.  
  
  ---
  
  