Copy link to clipboard
Copied
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,
Copy link to clipboard
Copied
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.

Copy link to clipboard
Copied
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. 😄
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Kib, you Sir are an absolute STAR!
Thank you.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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:
'
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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!)
Copy link to clipboard
Copied
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:
Your comp should look something like this:

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)
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
BTW: Here's what I came up with...

Copy link to clipboard
Copied
MyerPj
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.
Copy link to clipboard
Copied
Sample file update to include master stroke width
Copy link to clipboard
Copied
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now