Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How?

New Here ,
Oct 10, 2018 Oct 10, 2018

Good afternoon any and all After Effects Jedi.

I am somewhat of a noice to this particular software and as such am on the learning curve.

I have stumbled across something I like but have no idea quite how the effect is achieved and am hoping someone out there is able to help?

In the following video:

https://www.youtube.com/watch?v=vYQGb-yTrUo

from 4 seconds onwards (up until the 10 second mark) we see not only a geometric shape reveal (is this a 'trim paths' thing?) but then a seemingly random repetition across the screen.

How is this done?

I can follow (& find numerous tutorials) on the whole trim path part BUT what I see in them 6 seconds or so is not only a repetition of the shape BUT importantly a seemingly random start point for the reveal for each version of the shape.

Am I making sense?

I hope someone can help?

Many thanks and kindest regards,

1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 10, 2018 Oct 10, 2018

Not the only way to achieve this but by using expressions on the trim path Start and End parameters and hooking them to a slider value between 0 and 100 means I duplicate this stroke layer and get different generation patterns.  To do the cube I would use three strokes in one shape layer and have three slider expressions generating the three random start values.  So each cube would be a self-contained shape layer that could be duplicated independently.

Screen Shot 2018-10-10 at 14.34.23.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 10, 2018 Oct 10, 2018

Thank you for taking the time to help Kib.

I may have to read that over and over and over and over again to make sense of it mind. 😄

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 10, 2018 Oct 10, 2018

Just on the off chance Kib, are you aware of any Video Tutorials knocking about which I could follow to do what you're describing?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 10, 2018 Oct 10, 2018

Sample File: https://www.dropbox.com/s/my6rrd4lpdxq4ju/CubeTrimPaths.aep?dl=0

AE Random expressions: Random Motion

Interpolation Linear() function and Slider Controls use Help> Expression Reference in After Effects

Essentially I have to generate six random numbers between 0 and 100 that do not change with time. Then animation Trim Path Start and End to go from that number to 0 and 100 respectively.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 10, 2018 Oct 10, 2018

Kib, you Sir are an absolute STAR!

Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 10, 2018 Oct 10, 2018

Stroke width should probably be rigged to a global slider control to act as a master width for all lines in the cubic tessellation too.

Thanks for the feedback, probably not the only or even the best way to achieve it but it gets you started.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2018 Oct 10, 2018

If you carefully analyze the shot you'll find that the cubes are not totally random. The same pattern of drawing on each cube is repeated several times and the layers are just staggered in time so they start to draw on randomly. Here you can easily see at least 3 lines in exactly the same position relative to the cube:

'Screenshot_2018-10-10 08.03.37_FUsedx.png

I would create four or five shape layers with the anchor point right at one of the corners, then I would apply trim paths to some of the paths in one layer with trim paths set to sequentially, and other paths on the layer with Trim paths edited so the lines started growing from someplace other than the start and end point. When I had four or five of these set up I would just duplicate the layers Arrange them to fill up the about half the screen, select all the layers and copy them then move them to fill the rest of the screen, then slide them around in the timeline to adjust the start times to get the look I wanted. It would probably take about 30 minutes.

Read up on shape layer animators and experiment with adding more than one Trim Paths animator above and below different paths and you'll figure it out.

If I were to try and do all of that with expressions it would probably take me a couple of hours so in this case, doing it by hand would be more efficient.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 10, 2018 Oct 10, 2018

Rick,  my sample project file took 10min to build including expressions.  The hardest bit was drawing the six lines perfectly -- I choose to build it at the centre of the comp to utilisation rotation as you state.  The expressions were copy/paste/edit Slider names.  Each cube is a Shape layer so duplication and repositioning is my manual work but every cube would in principle be random.

You could use a repeater on a total cube and get it to space out to be say every sixth cube in a row or column to help some patterning

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 10, 2018 Oct 10, 2018

KIB,

I meant that it would take me an hour to do the whole design using expressions. Aligning all the layers, setting the time offsets, and randomizing the timing. Your example only had two cubes animating on in exactly the same way. I'm not knocking your efforts or your approach, just offering my approach to the problem. The suggestion to make copies of cubes using repeaters is a pretty good one and would speed the whole of lining up the cubes. Modifying the Random expression in your example using the Index of the layer to give each instance a different value would give you different cubes coming on at different times without resorting to all of those sliders.

You might want to check your expressions. The sliders have no effect because their value is driven directly by a random number generator and all of them have the same seed. The value generated is based on their layer order so you can't change the value of the slider. The only way to get different patterns in the animation is to rearrange the order of the sliders. It is an OK start but it's not done. If I had approached the problem the way you did I would have made the slider drive a random value for the seed directly in the linear regression you set up to drive the start and end values or the time. You can fix your random expression so the sliders will do something by adding a + value to the end of the random number generator.

As I reread the thread and thought about a more efficient approach it occurred to me that if the artwork was created in Illustrator with snap to pixel turned on and using simple stroked lines with each cube created with individual lines you could start repeating groups (cubes) and get the whole screen laid out in a few minutes. You could then release to layers, move the new cube layers above the original layer, import as a comp retaining layer size, then convert the vector layers to paths. The next step would be creating an animation preset for trim paths, set random out points for the layers, apply the animation preset, sequence the layers, then adjust the out points for all layers so they wouldn't disappear. A random expression in the animation preset with the seed based on the index of the layer would completely randomize the way the lines were drawn. That might be OK, but it might be more visually pleasing to have just four or five versions of the write on effect distributed at random over the cubes the way the sample does.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 11, 2018 Oct 11, 2018

Good morning Rick.

Thank you for help and approach to this - hugely appreciated.  As i'm finding, and like most other things in life there are many ways to tackle a given problem so hearing as many points of view as possible is only a good thing.  What I will say Rick is I don't really understand any of what you said!  Haha 😄

I could kind of follow what Kib was saying - especially when he took the time to explain to me in children's terms (completely new to all this jazz!)

I will ask you, as I did Kib if you know of any Tutorials out there that I could watch and follow?  I just want an out of the box tutorial to watch but alas I would assume that would be too easy.

Many thanks again (both of you!)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 11, 2018 Oct 11, 2018

I don't know of any specific tutorials on creating this exact effect. You'll need some basic knowledge about how Shape Layer Animators work and it would not hurt to do some experimenting.

Try this:

  1. Press Ctrl/Cmnd + ' or to to the menu View>Show Grid
  2. Turn on Snap to Grid by pressing Shift + Ctrl/Cmnd + ' or check the View menu
  3. Use the pen (g) tool to draw a horizontal line between two major divisions using a 4-pixel stroke and no fill
  4. Press the U key twice to reveal all modified properties of the new shape layer
  5. Spin down the stroke property and change the stroke property to Round Cap
  6. With the pen tool selected hold down Ctrl/Cmnd key and move the cursor over the path you have drawn and observe the changes to the pointer as you select the path then move the pointer around
  7. When you are over the path the tool becomes a smaller black arrow, that will select the entire path, when you are above or below the line the pen tool changes to a white area that will allow you to draw a selection around a point, and when you hover over a point the pen tool changes to a minus pen which will delete a point
  8. With the path selected and the Ctrl/Cmnd key held down drag a selection around the right vertex to select it
  9. Hover over the right vertex and the tool will change back to the small selection tool, select the left vertex and drag it up one division
  10. In the timeline select the Path and press Ctrl/Cmnd + d to duplicate it
  11. In the comp panel grab the path with the pen tool while holding down the Ctrl/Cmnd key and move it 2 divisions to the right
  12. Hold down the Ctrl/Cmnd key and draw a selection around the left vertex, select it, then move it up one division to create the peak of your first cube
  13. Repeat the process of duplicating the path, selecting the path, moving the path and moving the endpoints until you have created your first cube
  14. In the Timeline choose Add: Trim Paths to Shape 1
  15. Spin down the options for Trim Paths and change Trim Multiple Shapes to Individually
  16. Animate the Start value for Trim Paths from zero to 100% in 2 seconds and scrub through the timeline to see each path  animate on in the order they are in the timeline starting from the top
  17. Select Trim Paths and press Ctrl/Cmnd + d to duplicate it
  18. Select the duplicate Trim Paths and drag it between the fourth and fifth path
  19. Select the keyframes for the original Trim Paths and drag them to the right a few frames
  20. Scrub through the timeline and you'll see the first four paths animate on sequentially and then the second paths animate on
  21. Duplicate the trim paths and move it around as many times as you like and adjust the animators until you get the first cube to draw on the way you want it to.

Your comp should look something like this:

Screenshot_2018-10-11 09.54.09_9DyxdQ.png

You can duplicate the Trim Paths animator as many times as you like. The Bottom one starts first, then the next above. You can rearrange the paths to change the order when they come on. When you get the first cube drawing on the way you like all you have to do is duplicate the entire shape layer by selecting it and pressing Ctrl/Cmnd + d, then use the selection tool to drag it the duplicate into position. Slightly changing the animators and path order in the copies will give you three or four different looking animations and you can stagger the layer start times by just dragging them in the timeline. It would clean things up if you delete overlapping paths on the duplicates.

Creating this sample comp took about 5 minutes. Dropbox - Animated Orthotgraphic Cube.aep

Try dragging around the animators, changing things like offset for the Write On and layer order. Learn how to change the first vertex. When you have duplicated the shape layer about 4 times and got them lined up it will just take a couple of minutes to grab all 4 layers, duplicate them all and move them into position. I'm guessing less than 30 minutes and you'll have your entire animated background created.

To learn more about shape layer animators just use the Search Help field in the top right corner of AE and look for things like animating shapes. You'll get the help files and links to commuinity resources including better than average tutorials. AE's help fiels are not fantastic, but there is a lot of really good information there and many of the help pages have links to excellent tutorials.

(note: if your browser adds a .txt extension to the AEP file just delete it)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 11, 2018 Oct 11, 2018

Hi Rick Gerard​

I'm not the OP but I followed the instructions. I probably should have read them all thru first and I would have seen the included project. But I was able to follow it thru all the way, thanks very much for that.

2 questions:

1: I looked all over for this and couldn't find a way to 'spin down' or expand a property group with a keyboard shortcut. I can ctrl-click the arrow, but if the property group is already partially expanded it closes first then expands all the props. You can see how new I am to this... I found the right and left keystrokes but that only seems to work in the effects control panel. I tried adding expand to a timeline keypress panel, but it didn't work.

2: I appreciate instructions 7, 8 and 9. Showing how the mouse pointer changes, etc. It is probably obvious to most, but I needed to release the ctrl key to move the left selection up a division. I'm just hoping I'm not missing something.

thanks again, great stuff...

🙂

mp

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 11, 2018 Oct 11, 2018

BTW: Here's what I came up with...

Comp-1-2.gif

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 12, 2018 Oct 12, 2018
LATEST

MyerPj

  • U reveals keyframes or hides keyframes if they are visible
  • UU reveals all modified properties
  • E reveals all effects applied even if you have not modified any properties
  • EE reveals expressions
  • Holding down the shift key when using keyboard shortcuts for the timeline adds or subtracts from the selection
  • Alt option + A or P or S or R or T sets a keyframe for Anchor Point or Position or Scale or Rotation or opaciTy under the Current Time Indication (CTI) or removes the existing keyframe under the CTI

Spend a little time learning keyboard shortcuts and you'll save a bunch of time. Any Menu item that has a keyboard shortcut will show that shortcut on the Right side of the column. Try and learn how to use them too. Almost all have keyboard shortcuts and most of them can change function if you hold down the Alt/Option, Ctrl/Cmnd modifier keys. The most overlooked productivity shortcut is using modifier keys with the pen tool (g). It's so much easier to edit paths with modifier keys that it's kind of foolish to be using the selection tool (v).

I hope this helps.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Oct 10, 2018 Oct 10, 2018

Sample file update to include master stroke width

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 12, 2018 Oct 12, 2018

Guys,

Good work all and thanks mutely for the advice and help.  MyerPj - clearly you're a man who knows what the hell you're doing - good stuff!

Rick - thanks for taking the time to spell it out for me in greater detail - hugely appreciated.

Have a good weekend all

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines