Dude these last two videos you made are fucking fantastic, need more of this expression type videos, I wanna learn what ever you know in the most creepy way possible
@ECAbrams
10 жыл бұрын
Before you go out to de club cook and eat a lot of bacon. You will smell like bacon long into the next day, and every finds bacon irresistible.
@777Mikos
8 жыл бұрын
That's a one old tutorial out here, but it saved my ass! Many thanks! Btw for those who might need it - to make it work for 3D layers - use this line samplePoint = [transform.position[0],transform.position[1]]; Or this one for separate dimensions samplePoint = [transform.xPosition,transform.yPosition]; Cheers
@alicebackham7426
8 жыл бұрын
+777Mikos Thank you so much!!
@melcyworkchannel827
8 жыл бұрын
Thanks!!!!! :D
@moeinvideo
2 жыл бұрын
Thank you! and change [x,x] to [x,x,x] to make it change scale on all 3 dimensions
@audust
8 жыл бұрын
The elements in the "sampleImage" expression should be the other way around. It should be point first, and then size. That's why it's not in sync with the control layer. This is the syntax: sampleImage(point, radius = [.5, .5], postEffect=true,t=time) Thanks for the tutorial!
@Juicefoozle
7 жыл бұрын
just found this out as well. gave me headaches for quite a while. you should get far more thumbs up. If someone else stumbles upon this and wonders why it's working anyways: It's working in the example above since it's essentially a moving gradient in the controller, so it doesn't matter that much that the sample size is bigger and the sample point is fixed at 1/1 px, but if you want some specific results it will mess everything up. For example if you like to make a radial instead of a linear swipe. Thanks for the, besides that, awesome tutorial ECAbrams.
@twotwoasjjuh1025
5 жыл бұрын
oh my god i've been trying to get a radial gradient to work on this for days now...comment section always so valuable.
@jmarkgtz3392
4 жыл бұрын
Thank you so much for this comment
@Rishav520
4 жыл бұрын
can y ou post the entire expression with the correction so we can just copy it
@crystalnichols7224
10 жыл бұрын
This ended up working really well for some dinosaur footprints, walking across the screen. I watched this video yesterday, not sure what I might use it for. Then, today, I needed some dino prints for a project and suddenly remembered this. Thanks!
@lookitsanivysaur.3172
7 жыл бұрын
Thank you nigga. Ive been looking for something like this for weeks to complete my project.
@aaronvue3280
Жыл бұрын
Thank you for sharing this tutorial
@xrysaxoumeti9113
8 жыл бұрын
thank you a lot for sharing your knowledge and your work with others
@frodizle21
7 жыл бұрын
Heya Evan, Great tutorial and I've used this numerous times and its been a lifesaver. However, I was wondering if there was a method I could use to simplify the expression count. For example I have a grid I made up of 1000 circles using shape layers in AE. because I duplicated the base shape with the expression they all work as expected! This is great, but due to the count of objects it seems like my computer cannot handle and the render time is now much greater.
@jesuscc4337
Жыл бұрын
OMG, thank you!!!!
@moody5669
2 жыл бұрын
the nice tuto, is now stonded..
@theCrone123
9 жыл бұрын
.....and I'm that idiot who keyframes everything :/ Thank you that helped a lot!
@izzuddin12345
10 жыл бұрын
love all your tutorial..:)
@matthewcarr4127
9 жыл бұрын
This is so cool! However i am getting an error that is confusing me. Error at line 0 in property "Scale" of layer 1 in comp. Expression must be of dimension 2, not 1. Not sure how to approach this one... Any suggestions?
@ECAbrams
9 жыл бұрын
Matthew Ferrel it's telling you that it needs more information. You're saying to it, make the scale x, but scale needs to be in the form [x,y] because scale needs two parts. Tell it more about the parts.
@matthewcarr4127
9 жыл бұрын
ECAbrams Thanks! all better.
@diegogamba7825
3 жыл бұрын
Hello Evan, thank you very much for the info. I tried using the expression on opacity but it did; t work out. Any ideas why? or what I could do to make it work?
@ECAbrams
3 жыл бұрын
The biggest difference between opacity and scale is that one is a "one part" property like 100, while the other is a two part property like [100,100]. So your final line has to communicate the value the property expects. Does that help explain what's happening?
@diegogamba7825
3 жыл бұрын
@@ECAbrams Thank you very much for the reply, I think I have to dig deeper into code and expressions but this a good starting point :)
@shakh555
10 жыл бұрын
thanx for tutorial) but you made one mistake. sintax of sampleImage property is: sampleImage(point, radius = [.5, .5], postEffect = true, t = time). It must be at first point, then scale ;)
@ECAbrams
10 жыл бұрын
You mean in the description or in the actual tutorial video?
@shakh555
10 жыл бұрын
in both
@maryrees5996
7 жыл бұрын
How do you find out how to do these cool things? Love your channel!
@ECAbrams
7 жыл бұрын
+Mary Rees usually I discover new things when I'm trying to solve a specific problem.
@aswinckr
8 жыл бұрын
you are indeed, clever.
@lisaweng9291
9 жыл бұрын
thank u for this!
@joshuacourt9868
9 жыл бұрын
What if I wanted to use this expression to animate rotation and position as well? My thinking was that I could comp a predetermined animation and use this expression to control a time remap where i have spread the animation over 100 frames. That way the colour controls the time remap. But it doesn't work obviously, but i don't get why. What am I missing? The time remap just gets stuck on one number and doesnt gradually build from 0 - 100.
@ECAbrams
9 жыл бұрын
the issue may be the unit of time. Seconds vs frames.
@joshuacourt9868
9 жыл бұрын
I don't understand, can you elaborate?
@ECAbrams
9 жыл бұрын
Joshua Court let's say you're outputting a 1 to the time remap property. What does that mean? Is it one frame? Is it one second? The default is seconds. How long is the animation? 100 frames or 100 seconds? If your animation runs for 100 frames how many seconds is that? You have to make sure you outputs make sense for where you're outputting them. Also you can really just use a similar methodology to affect the rotation or any other property similarly to the scale.
@joshuacourt9868
9 жыл бұрын
ECAbrams If the default is seconds, shouldn't I be able to see a gradual increase in the time remap property anyway? At the moment it just sits at 0 when multiplied by 100, I changed it to add 100 instead and now it sits at 35 seconds. There is probably a pattern but i cant see it, I am not so good at math. Is it a case of me defining to after effects that I want the output converted into seconds?
@ECAbrams
9 жыл бұрын
Joshua Court Assuming everything is working as I expect it to, and you are outputting values from 0 to 100, then the issue would be that the animation you are remapping requires aniamtion from 0 to 100 seconds. You explained that you had 100 frames of animation which could be (assuming a frame rate of 24fps) a mere 4.16 seconds. So if the value was 35 you would be looking at frames well beyond the scope of your animation. Does that make sense?
@angelherg1997
10 жыл бұрын
Is there any way I can save the expression as a preset or something, and then just add it to the layer without writing it or copying and pasting? Thanks!
@ECAbrams
10 жыл бұрын
Yes, you select the property you applied the expression to and save it as a preset. Any keyframes, expressions, or attributes associated with the property are saved as a preset.
@arkano01
8 жыл бұрын
nice!!
@shidosetsuna
8 жыл бұрын
Is there a way to make it change colors instantly?
@hvaranhvaran
8 жыл бұрын
toggle hold keyframe
@shidosetsuna
8 жыл бұрын
hvaranhvaran already figured out a different way, but thanks!
@hvaranhvaran
8 жыл бұрын
how?)
@shidosetsuna
8 жыл бұрын
hvaranhvaran well... I basically added this expression to the opacity thisComp.layer("Magenta Solid 1").effect("Checkbox Control")("Checkbox")*100 and then took the wipe tool and connected it to a checkbox control. Then i could just turn the checkbox control on and off.
@angelherg1997
10 жыл бұрын
Ok, cool, thanks for the answer, and excuse me but i cant reply to your comment from the youtube ipad app.
@bbuehl792
8 жыл бұрын
could you do this with an individual shape layer with a repeater applied?
@ECAbrams
8 жыл бұрын
not really. the repeater defines the copies. each copy cannot define itself from another source.
@bbuehl792
8 жыл бұрын
+ECAbrams good to know, thanks!
@Kombo-Chapfika
8 жыл бұрын
I'm trying to figure out how to use this setup to drive the time playback of a grid of animated precomps instead of the scale of shape layers. Does anyone here have any suggestions?
@ECAbrams
8 жыл бұрын
+Kombo Chapfika you will need to make an expression on the time property perhaps... or use another method.
@peterdickinson8597
7 жыл бұрын
This is great, I would like to apply this to rotation on a 3d layer...so the layers cascade by rotating...How do I amend the Expression to do this?
@somerlorenzo
9 жыл бұрын
Awesome tutorial, thanks! One thing to take note though, I tried this and found out that while the code appears to work, the order of the input for sampleImage is wrong. It should be: colour = sourceLayer.sampleImage(samplePoint,sampleSize); samplePoint should come before sampleSize, or else AE will not parse the sampleSize we defined, resulting in it defaulting to an unknown set of large values. In this video the control layer animation is simple, so the error does not affect the result, but for those who wish to use this with more complex animations, the error will result in shape layers behaving wrongly. That said, this code is really useful, thanks again!
@NotMuchOfANickName
9 жыл бұрын
+somerlorenzo thank you! I tried to do it with a circle stroke as reference layer and it got chaotic, this change in code was the trick!
@RailandOak
8 жыл бұрын
+somerlorenzo Goodness thank you! I could not figure out what I was doing wrong! My results were unpredictable at best with anything other than a simple gradient. Your fix solved everything, it works exactly as expected now. Thanks!
@Virus-td9nc
7 жыл бұрын
That really helps, thanks a lot!!!
@hellodude82
7 жыл бұрын
How would I do this to rotate an object instead of scaling it?
@LongLiveMikey
10 жыл бұрын
Great video Evan, I love tricky expressions. I'll have to fool around with this technique.
@NealStrydom
2 жыл бұрын
Hey @ECAbrams Thank yo for this tutorial, I used it with great success about five years ago, but today, I had to use it again for a brief and I am getting a syntax error for the first line of the expression sourceLayer = thisComp.layer("Transition Control 2"); sampleSize = [1,1]; Do you perhaps know if there has been an update to how expressions are treated in After Effects 2022?
@mattroberts6324
9 жыл бұрын
Just started learning after effects this week. Already addicted. Enjoyed this tutorial. You're fucking hilarious. Thank you. Lol
@MidnightOilProductions
7 жыл бұрын
This looks promising. How would you translate this to Z-space? I have an image of a tile mosaic and I'd like to have the tiles move closer to and further from the camera in waves. Driving this by a gradient layer seems like a great option.
@jherem
10 жыл бұрын
Thanks Evan! with your videos I have learned much! good channel! amazing tutorials!
@danielfernandohurtadoduque3139
5 жыл бұрын
Hola, tienes un tutorial explicando esto en español?
@rr.studios
3 жыл бұрын
@@danielfernandohurtadoduque3139 Learn English with Duolingo or other websites or apps so you'll have access to even more tutorials.
@lianian9747
3 жыл бұрын
I know Im asking the wrong place but does anybody know a tool to get back into an instagram account? I was dumb lost the account password. I love any tricks you can offer me!
@codynico90
3 жыл бұрын
@Lian Ian instablaster :)
@lianian9747
3 жыл бұрын
@Cody Nico I really appreciate your reply. I found the site thru google and im trying it out now. Takes a while so I will get back to you later when my account password hopefully is recovered.
@nathitappan
Жыл бұрын
This might be getting closer... (makes no sense, but I just left another comment on another video and am still looking for a solution). Plus the self censoring on the video made if funny and worth yet another comment to the KZitem algorithm gods.
@MSeanMcManus
10 жыл бұрын
I don't remember if you pointed this out specifically-- but it's important for that Control Layer to always be opaque. I started the first transition over a transparancy and the expression wasn't working. It would skip right from 0% to 100% when the transition was happening instead of creating that smooth animation. Once I dropped a solid in to start the precomp control layer, perfecto. Thanks for the great tutorial.
@JessicaBern
7 жыл бұрын
you saved me with this
@schobel
6 жыл бұрын
you are a King, Sire !
@RobertoVivancos
10 жыл бұрын
can you animate the opacity the same way ?
@Mattressezzz
10 жыл бұрын
This was especially helpful in creating an animation similar to Apple's dock where items grow and retract when scrolling along. I setup the background control layer to be white in the middle and then 50-60% gray on the sides. Then I could simply layout a row of graphics and as I move them along, they would grow/scale in size according to the gradient. Huge timesaver! Thanks Evan!
@don_tpanic6052
2 жыл бұрын
Hi! How can I transform the position of my layers with that expression? I have 8 images and i need them to drop from the top to the center. Something like we can do with text position animator with squre shape.
@36offspringeur
2 жыл бұрын
problems and than volu automate the boi cuz I didn’t know how to sidechain. My one buddy produces riddim and he legit saw my daw
@jessicalawheed6735
7 жыл бұрын
I'm trying to use this but it seems this expression is not working in the 2017 version. Do you have a workaround? I have literally followed every single step.
@SansAus-p2n
2 жыл бұрын
followed the tutorial exactly right, but still different. Using trial version. Thank you*
@kushwanthkushwanth98
2 жыл бұрын
I worry about that too, I always having trouble finisNice tutorialng anytNice tutorialng I try and create, but I figure if I do a little more each day, it'll get there one
@punnbitaobon2290
2 жыл бұрын
Myanmar dia Light I have the demo version right now would you recomnd buying the full version?
@Sonic7979
11 ай бұрын
Hey 👋 How to make them increase on black and become small on white?
@Anreas13
2 жыл бұрын
In the playlist, I want to take a part of two tracks and put it in the setuper, but I don't know how...I want to setup each track piece by piece,
@anakelly4427
2 жыл бұрын
lmao ikr! I thought I was missing sotNice tutorialng and lost focus for the rest of the video smh
@adamlamprecht-morphew6310
8 жыл бұрын
Awesome videos man, love all the content you put out there for people to learn! Revisiting this video 2 year later to ask... How could I add rotation to this expression as well?
@ihaveamac27
10 жыл бұрын
Hey Evan, thank you for sharing this great technique! I am just wondering why the scaling begins, while the color is still black? I'm trying to animate some objects on with a fractal noise, but all of the elements have almost the same scale, while some areas are still black which should be a scaling of 0%. I hope somebody can help me.
@ECAbrams
10 жыл бұрын
So things to know about colour. 1. Just because it look black it might not be black. Your eyes, monitor calibration, and so on can make even shades of grey look black. 2. The info window can tell you the exact colour value and 3. If the expression is giving you too fast of a scale then you can use math to alter and 4. If you prefer to not use expression changes just work with a control layer in a darker and less contrasting register.
@drowzeem9970
10 жыл бұрын
great tut.. little bit painfull to hear someone trying to be funny but nice tut anyway :)
@fushimina
2 жыл бұрын
I am just wondering why you are being so generous with your knowledge?
@bobotube76
4 жыл бұрын
You can do the same movement with this expression x = thisComp.layer("Gradient").sampleImage(transform.position, [.5,.5]/2, true, time)[0]; 100*[x,x]
@djangelicasanchezcondjvoca6615
2 жыл бұрын
how do you add a sample in that you have on your mac already
@zachyoungblood6166
10 жыл бұрын
I keep getting the error "Error at line 1 in property "Scale" of layer 1 ("Layer 1") in comp. Function thisComp.Layer is undefined. Suggestions?
@ECAbrams
10 жыл бұрын
I don't know what you have written in line 1. But it's telling you that you have typed in something it doesn't recognize in line 1.
@cr0ucherrr
3 жыл бұрын
Is it possible to replace Size to Opacity? So that shapes would appear by opacity and not by size? and so that the timing would start only when it the ramp touches the area
@ECAbrams
3 жыл бұрын
Certainly. You could map to any property. As for timing that's going to be down to how you manipulate the map and the ranges of values.
@MotiveFuel001
2 жыл бұрын
comnts, even though they paid for their versions.
@sebastianuhlig6090
2 жыл бұрын
I AM BROKE SO I CANT AFFORD IT MY PARENTS WILL NEVER ALLOW (TT)
@danielsmith550
10 жыл бұрын
Come Visit Mankato If you could watch this let me know what you think ?
@tazhpro
8 жыл бұрын
This is not working when I want things to expand from the center. Half screen from center to top. And half screen from center to bottom. I created 2 wipes from the center, one going upwards and 1 going downwards. Then the top elements work properly, but bottom ones aren't.
@1234radio
5 жыл бұрын
Thanks for another classic! Linked the control layer to a bunch of jpegs and waves them like sugar. I wanted to alter only their horizontal (x) value so I did x=colour[0]*100; y=[100]; [x,y] Now I want them to wave a bit their height (y) as well but proportionally, let's say by a 1:4 ratio. I am very fresh to AE math logic so any suggestion would be welcome. Thanks again!
@PickDish
7 жыл бұрын
Anyone who's wondering about how to manipulate the size of the object created, cause once the expression is online, every object just becomes the same size. For the respective shape layer that is being animated, the size needs to be change in the Contents-Ellipse(for example)- Size. Trying to change the scale won't do anything. Hope it helps. Saw it in a video from Mobox something..
@markjehoshaphatagpas3109
2 жыл бұрын
i'm gonna rena and change color on my channel to stay super organized
@Wyciouss
2 жыл бұрын
you gotta tune the instrunt, by right clicking on it in the channel rack
@shir7236
8 жыл бұрын
Question, how would I apply this to a shape that's copied with CC Tiler, basically I want the same type of fade from left to right, but since they're one layer, they appear at the same time.
@ripro83
8 жыл бұрын
Did you make a penis joke at the 11:45 mark?! Bad Evan!
@maxmadonov4549
4 жыл бұрын
Any idea how to add colour to this? Meaning when the object gets smaller it changes to a certain colour? really need help )
@ECAbrams
4 жыл бұрын
Hi, you can apply this kind of expression for maybe a fill effect, or to the colour property of a shape layer. But the output will need to be very different. Colour is represented in expressions by default as a 4 part property [a,b,c,d] so you may want to look more into how that works, and what manipulating each part would mean to the final output.
@emanuelcastro7483
10 жыл бұрын
Dumb question (i don`t really know if you teached this before); how do you create the six sided polygon that you show in the intro?
@fikiruddinhakim8652
7 жыл бұрын
my scale didn't change, it started from 80 and stop at 100, is it because image can't be used to do this effect? i merge image and shaped and apply this effect, it doesn't work, by the way im using after effect cc 2017
@ggenlot
10 жыл бұрын
Hello Evan, Thank you for the tutorial! I have applied this technique with text and it appears to work well. I removed the feather of the wipe and set the sample to 0.01,0.01, yet the text still has an "ease" when it scales up despite a fast/sharp color change under the anchor point. Regardless of what I do, I can't gain control over this "ease" and can't find anything in the graph editor. Am I missing something simple? Thank you! ~~G
@VisionaryFire
8 жыл бұрын
Awesome, didn't know about this technique. Have though about it plenty of time in the past but never knew you could do this!!!
@jakemp42
8 жыл бұрын
I've read through these comments and am still struggling getting the desire results when applying this to the opacity. I don't have any errors and the basic idea is working, but not the way I want. I'm trying to animate a lot of squares on using the gradient and want the squares to reveal only when there is white or almost all white in the control gradient ramp, but for some reason, even when there is pure black, it's still fading the squares on. Basically, they're coming on too soon. Almost as soon as my white starts entering the frame on the left, the shapes are already all fading on. I really need them to come on only as the white moves across. Thoughts? I'm hoping to not have to figure out a way to do this in cinema 4d. Most of my results in after effects have not been much different than a gradient wipe. The weird thing is that when the gradient animates off, it doesn't do the same thing on the left side of the frame. They animate off fine, but when animating on, they all start fading in too soon no matter feather I have my transition feathered or not.
@bananabike279
3 жыл бұрын
This is super handy!! I'm going to experiment with this a lot! I did get an error saying it disabled the expression, but when I copy pasted the expression from the description it worked fine again. Weird. Anyway thanks for the tutorial, your way of explaining is clear yet quirky!!
@sircasino614
11 ай бұрын
Well, i guess this is outdated in terms of the coding. I dont suppose you could do an updated one?
@ECAbrams
11 ай бұрын
Nothing much has changed about the expressions language. It's still JavaScript. SampleImage() still works the same way. Are you having troubles applying what you see here to your own projects? Let me know and I'll try to help.
@Seaweed_animations
5 жыл бұрын
Great video, gave a thumbs up! One question tho: I have a ton of small triangles that form a texture and i'd like to use this technique to make these really small triangles change size gradually in an evolving matter using a black and white turbulence. Is there a way to paste the script to every single little triangle shape layer and/or is this possible to create this effect without separating every single small triangle to its own layer (there are hundreds of small triangles.) Here is a image of the graphic: ibb.co/27YnPw7 I have this graphic as a vector in Illustrator
@johncaesarzara7177
Жыл бұрын
For once, the software is actually really useful
@traviswinn
4 жыл бұрын
That was funny, clever man... :) at 1:00
@cis84muz
9 жыл бұрын
Adding feather changes anything? I ask because I made something similar and didn't notice a difference ;)
@刘铁男-z2z
4 ай бұрын
very helpful to me, thank you bro!
@comingbackho_me
2 жыл бұрын
It's a great tutorial as all of yours. Thank you a lot! :) Btw. does anybody knows how to link time remapping? I would like to play a composition forward/backwards based on the color value of the ref layer.
@evanabrams2735
2 жыл бұрын
Depends on how you want it to respond. Time remapping displays the frame at whatever seconds is in that value. So if you put "time" into the time remapping value something would play normally. So if you were to do time*x where x is changed depending on the colour of that image sample, you would get something playing differently. Does that get you started?
@comingbackho_me
2 жыл бұрын
@@evanabrams2735 Thank you for your fast answer. :) Yes, that helps me to get started.
@NickT050
10 жыл бұрын
Do you know of any way to have the control layer drive some animation? Is there a way to have some animation you made proceed along its keyframes based on the gradient information?
@annabusch8772
9 жыл бұрын
I cannot find the answer to this issue and I sit hopeless in front of my screen. My ae stubbornly tells me about the error in the line 4th - "class array does not have the property or method called samplePoint (or sampleSize - regardness what I put as a second value it tells me that). What am i doing wrong? :
@ECAbrams
9 жыл бұрын
So Ae is telling you that it doesn't understand what you're telling it. Most likely you have missed a semi colon somewhere previous. If it says "I don't know what a samplePoint is" you need to tell it in a previous line what that is and you have to do so in a vert specific way. So have a look at your lines and see if you have any spelling errors or missing semicolons or something else.
@annabusch8772
9 жыл бұрын
thanks a lot, this was the issue indeed :) I put a dot instead of a semicolon. But anyway, I've put arround 100 elements I want to animate on a movie clip and AE is like "I am dying, I'll never render it" so I suposse I need to find another way to do it anyway ;
@topfiverappers8122
7 жыл бұрын
great tutorial. I have one issue. I want the same animation applied to a bunch of circles of various sizes. The issue is that when I apply the expression/control layer it makes a circle of different proportion the same size as the first shape that used the control layer. completely lost on how to fix this. I even tried to make a second control layer but it seems when i plug in the expression it still converts to the same size.
@PickDish
7 жыл бұрын
Yep, looking for answers too. Same problem
@kurnikoff
6 жыл бұрын
I found a solution, in case someone else needs it. You need to add clamp expression to it with initial value enabled. Here is the code: sourceLayer = thisComp.layer("yourGradientLayer"); sampleSize = [1,1]; samplePoint = transform.position; colour= sourceLayer.sampleImage(samplePoint,sampleSize); x=colour[0]*100; newX = clamp(x,0,value[0]); newY = clamp(x,0,value[1]); [newX,newY]; ------------------------- What this code does it takes the x value calculated from the colour change, then limits its min/max input. I used it on scale property, so the lowest I want is 0 and max is initial setting e.g. 23%. clamp(x,0,value[0]); will animate the layer and made sure it stops at your initial scale. This lets you set custom scale sizes on objects and animate them with gradient. Hope it makes sense :)
@soyaizera1482
2 жыл бұрын
co lol. Thanks for the aweso tutorial!
@jameswoollacott2801
9 жыл бұрын
Is there a way to use this expression but rather have the wipe move across the screen, it expands out as a circle. Like the shape layers were animating on in a ripple-like motion? I tried this with generate>circle but I still seemed to get a wiping motion. (It was slightly less wipe-esque, but still wiped)
@ECAbrams
9 жыл бұрын
Whatever the control layer does the shapes do. So... do what you have to do to make a control layer that does what you want. Maybe you need more than 1 effect to make this thing you're after. Maybe some blurs, maybe some stuff in the generate family of effects, maybe some radio waves, maybe lots of stuff.
@jameswoollacott2801
9 жыл бұрын
Played around with some other effects and got some pretty nifty changes, thanks!
@beno0055
10 жыл бұрын
I'm gonna sound crazy...But when I rotate the transition in the control layer, so its wiping the opposite direction, the timing of the scale change..uh..changes. I don't just mean it goes the other direction. But when it swipes to the right almost all the points start appearing right away, but when it swipes to the left it cascades more... I tried this in your sample file too. Any idea why this is?
@ECAbrams
10 жыл бұрын
Short answer is "math". Long answer would be lots of math?
@beno0055
10 жыл бұрын
Bummer.
@ciholt
6 жыл бұрын
My shape gets smaller instead of getting bigger. What did I do wrong?
@ECAbrams
6 жыл бұрын
flip the numbers around?
@MSeanMcManus
10 жыл бұрын
Been messing with this technique a bit more and came up with a question. How would you apply this to a paragraph of text?
@CharlesLuppi
2 жыл бұрын
Your so detailed ! SUBBED
@aradhyagupta4697
10 жыл бұрын
Well, I don't know if its a stupid question, but I'm a zero at scripts.. Could you please explain these 2 lines - colour= sourceLayer.sampleImage(sampleSize,samplePoint); x=colour[0]*100; Why did u multiply color[0] to 100 ? rest everything, You made it quite easy to understand :)
@ECAbrams
10 жыл бұрын
Well the Colour= part defines a variable named "colour" as being a specific number that will from from a point of a certain size on a certain layer and that number as 4 parts in an array that will look like [0,1,2,3]. The second line is defining a variable named x that will take the first part of that array (part 0) and will multiply that number (which I know will be a decimal) by 100 making it a whole number. Savvy?
@aradhyagupta4697
10 жыл бұрын
ECAbrams Okay, so this means if I multiply colour[0] to 200 or 50, it will effect by increasing/decreasing the size of the layer respectively?
@ECAbrams
10 жыл бұрын
aradhya gupta it'll change the value of x so if x is on the scale then sure. But don't take my word for it, try it out.
@TheGrrson
2 жыл бұрын
Very helpful. I'm about to use this for something at work. Thanks!
@umarfarooqumarumarfarooqumar
2 жыл бұрын
Even though it was a lot, its exactly what i was looking for with such great brief explanations. Thanks bruv
@juangerardo1310
4 жыл бұрын
Thanks for the tut, but how can we modify this for other properties?
@ECAbrams
3 жыл бұрын
Well, you would need to format the output to make sense for that property. So where we have [x,x] you might need that to be just x. And you may need to change the numbers to suit your specific ranges of interest. Does that make sense?
@vorval96
4 жыл бұрын
Will this work with repeater instead of copy pasting layers? If i'm working with for example 300+ shapes
@ECAbrams
4 жыл бұрын
Because of how the repeater creates instances, this would not be a great solution. Instead of a repeater, I would suggest using a particle system like Trapcode Form. That's usually how I manage large clouds of persistent instances.
@vorval96
4 жыл бұрын
@@ECAbrams Woah! Thank you for the fast rsponse! Greatly apppreciated
@VanoidGaming
8 жыл бұрын
I am having trouble make the transition out after the transition in. How did you do it?
@Themildishgirl
2 жыл бұрын
Mr. Dr. Prof. Patrick appreciate it man
@Luixxxd1
10 жыл бұрын
Nice tutorial! But i have a question: If for example i want to animate the position, i guess i put the expression on the position property, but, what if i only want to affect one axis?
@penter_gruel
10 жыл бұрын
to affect one axis, you need to define the x and y values separately. in his expression, the final statement of "[x,x]" basically says that both values are going the be "x", which is "colour[0]*100;" to animate the each axis separately, you're going to need to have something that ends with "[x,y]" Try something like this to animate only the x value: sourceLayer = thisComp.layer(“grayscale transition"); sampleSize = [1,1]; samplePoint = transform.position; color= sourceLayer.sampleImage(samplePoint,sampleSize); x=colour[0]*100; y=transform.position[1]; [x,y] just a few things to note: 1) you'll need to change "greyscale transition" to the name of the appropriate layer. 2) the *100 will only give you results from zero to 100. You might need to change that multiplier to something waaaaay bigger. 3)"transform.position[1]" will let you input whatever value you'd like for Y :)
@penter_gruel
10 жыл бұрын
and if you'd like to change the x value only: sourceLayer = thisComp.layer(“grayscale transition"); sampleSize = [1,1]; samplePoint = transform.position; color= sourceLayer.sampleImage(samplePoint,sampleSize); x=transform.position[0]; y=colour[0]*100; [x,y]
@brianstone1134
10 жыл бұрын
I have everything set up as you have in the video, after I pick whip to the control layer and the expression completes for the scale of the shape layer I get this error message; Error at line 0 in property 'Scale' of layer 1 ('Shape Layer 1') in comp animate w/ control layers. Object of type Layer found where a Number, Array or Property is needed. Any help with this??
@brianstone1134
10 жыл бұрын
Never mind. Figured it out.
@sumankalia
9 жыл бұрын
Brian Stone can you please share what was the issue? I'm having same error
@majuki2
9 жыл бұрын
Brian Stone i have the same problem dude =(
@guering
8 жыл бұрын
Really cool. I have this background which looks like a pattern (lots of objects following the same pattern) and I want to animate them from the center to the edges of the screen (like a radial wipe, if we use your method). The thing is, I already have the animation made and pre composed on each of these objects (which are essentially multiple copies of the same object duplicated to fill the whole background). I just need to play them in this radial fashion. Is there a way to use a similar expression that would use the radial wipe gradient as a control to play my precomposed animation? To use your tutorial as comparsion, I just need to play the Comp once when the radial wipe goes from black to white. In short, instead of controlling the scale property, I need to just play the composition. Not sure If I explained it well, my english very limited.
@annahaz4699
4 жыл бұрын
"except for that one time when you touched them way too much and it got really awkward, but anyway" that made me giggle way too much. I love After Effects and I love you work.
@j.proyale1808
6 жыл бұрын
Is it possible to link a control layer to the 3D extrude depth in AECC18?
@nugga47
4 жыл бұрын
Hi Abrams. I can't parent all my objects to a null object? the script breaks. Is there a way around this?
@ECAbrams
4 жыл бұрын
Currently the expression we use references the position of each layer. So, when you parent the layers to a null, the position becomes relative to the null. So you would need to use toComp() in order to make the individual layers expressions relative to the frame again. OR you might need to then make their position relative to the control layer? I would recommend looking up the toComp() and other similar functions that should be able to help you out.
@nugga47
4 жыл бұрын
@@ECAbrams Thank you for the fast reply :). This makes sense.
Пікірлер: 427