Skip to main content
Participant
February 16, 2020
Question

creating a precised triangle on Ae

  • February 16, 2020
  • 1 reply
  • 1546 views

is there any way to determine the degrees of the trianle corners? for example, setting one of them to 30 degrees exactly.

This topic has been closed for replies.

1 reply

Kyle Hamrick
Community Expert
Community Expert
February 16, 2020

This may depend a little bit on the use case, but I think the best (easy) way to do this would be by creating a couple of rectangular shape layers (with stroke but no fill, and the Size Y value set to 0). Use the rotation properties to set the exact angles you're after, and then adjust the Size X accordingly to make the ends line up. 

If you're looking for something more precise and contained within a single shape, it would involve expressions and math. Do you need that level of precision?

Participant
February 17, 2020

thank you first of all!

Its an interesting and useful  idea. if there is a way to do that with expressions I would like to use it.  

Community Expert
February 17, 2020

Maybe I'm misunderstanding your explanation, but this solution puts it all on a single layer, so it can be a preset itself. One layer, no extra clicks needed. 

The controls are admittedly very messy right now. I'd ideally build this out as a pseudo effect, and may do so in case anyone else thinks it's useful.


I use nulls on paths all the time because of the advantage you have tying other things to the nulls. Just the way I work. I have about 100 controllers that are based on layer index so they work with layers below a null. I have about 50 presets that are in pairs, one to add to a bunch of layers and another to add the controller layer. It's just the way I work.

 

Like I said, good work. If I create that kind of a rig I would tie the controller to a text layer that would give me readouts of the angles and lengths of the sides, and I'd want to use nulls so I could tie other things to them like pointers or call outs. The Points follow Nulls script is probably my most used script when I'm dealing with attaching anything to a path. My second most used script when dealing with paths is to use Nulls follow Path.