After Effects Tutorial - Dynamic Timeline Slider (Loki Disney+)

  Рет қаралды 73,874

MediaWorkbench

MediaWorkbench

3 жыл бұрын

I've been loving the visual elements in the new Loki series on Disney+ and it inspired me to recreate some of the visuals in After Effects.
In this video we look at creating the timeline slider used to display changes in what year a scene is taking place in. We rig the whole thing with expressions to enable us to dynamically control the animation, and take things one step further by adding in the ability to not only do years, but full dates as well.
Also a quick note I messed up the annotations on the expressions where it refers to the Animation Slider Control, it instead calls it the Animate slider control. If you pickwhip your sliders you will be fine.
Stay tuned for more tutorials breaking down other visual elements from the Loki series.
Also yes I'm slowly coming back after the birth of my twins. They're amazing boys but they take up all my time so it's hard to find a spare couple days to sit down to create a video. But I haven't forgotten you all and will be attempting to do more videos in the future.
Check out the website for this tutorial, plus explanations, code snippets, FAQs, and more....
mediaworkbench.com.au/tutoria...
_________________________________
Have a suggestion for what you'd like to see next? Leave a comment below!
Media Workbench covers tutorials, tips and tricks, freebies and more for the Adobe Creative Suite including After Effects, Photoshop, and more...
- - - - - -
Love what I do? Why not support me in creating more incredible content via Patreon.
/ mediaworkbench
Follow me on Facebook or Instagram to join in on the conversation
/ mediaworkbenchyt
/ mediaworkbench

Пікірлер: 172
@MoreDeuce434
@MoreDeuce434 6 ай бұрын
To everyone that is confused about why the set matte isn't working for them, it is because on the newer versions of after effects, you have to change the other option from "source" to "Effects and masks". Then it will work as it does for him. Your welcome!
@radiocaf
@radiocaf 2 жыл бұрын
I've used After Effects for years and I've always done everything manually, this is the first tutorial I've seen that shows how expressions work and it's blowing my mind. I'm likely going to use this in my next video and I'll be sure to put a credit for you in the comments. Thank you so much!
@bassamsaleh8034
@bassamsaleh8034 3 жыл бұрын
Welcome back man! And congrats on the babies.
@Desdela5taDimension
@Desdela5taDimension 3 жыл бұрын
Thank you so much, this expression saved me a lot of time ♥
@rondypondy
@rondypondy 2 жыл бұрын
Incredible tutorial! Thanks so much.
@bobbihansel
@bobbihansel 2 жыл бұрын
Such a fantastic tut, I'm learning a lot! I had asked for help but just re-typed the expression and caught my mistake - learning! Have my sub mate, thanks for the great content.
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
So great to hear you were able to problem solve it. Stray brackets or missing brackets are quite often the cause of expression issues as they easily blend into one another
@samilkvrak
@samilkvrak 3 жыл бұрын
Welcome back!
@saibotgerb1729
@saibotgerb1729 2 жыл бұрын
Impeccable
@hsin5868
@hsin5868 3 жыл бұрын
Thanks for sharing !
@webstime1
@webstime1 Жыл бұрын
Thanks a lot 🙏🙏
@bubanga
@bubanga 2 жыл бұрын
Amazing! We need a strong comeback from you.
@NasDa
@NasDa 2 жыл бұрын
Dude, I thought you have quit youtube. Glad to have you back!
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
Thanks! Definitely still around and exciting things happening behind the scenes. Though family life does restrict my capabilities to put out new videos as frequently as I would like. Just the season of life though, still committed to doing more in the future.
@MrMiguel211
@MrMiguel211 8 ай бұрын
Now I need the sound effects used
@xander9003
@xander9003 Жыл бұрын
I approve of this message
@kamdevofficial
@kamdevofficial 10 ай бұрын
when I put the expression if(ref==0){ value=""; } the Year text just disappears doesnt return
@CyrosonHD
@CyrosonHD 2 жыл бұрын
Really great tutorial, just curious how would I go about doing this on the Y axis instead? Better still, is there a way to the expressions running on the separate dimensions, so I could animate X & Y independently from one another if needed?
2 жыл бұрын
Awesome Tutorial, It work for me! I wonder How can I change the direction to Right to Left? Can Somebody help me
@GauravGautambloodkid
@GauravGautambloodkid 3 жыл бұрын
The expression for the text layer: var step = 100/(effect("value step")("Slider")); var ref = math.floor(effect("animation")("Slider")/step); var src = (effect("animation")("Slider")%step)/step; ref = src>0.5?ref+1:ref; value = math.floor(linear(ref,0,effect("value step")("Slider"),effect("start")("Slider"),effect("end")("Slider"))); the first line throws an error of "Reference error: math is not defined"
@MediaWorkbench
@MediaWorkbench 3 жыл бұрын
Math should be uppercase (so Math.floor instead of math.floor) otherwise it thinks math is a variable object rather than the built in Math object.
@dimasalamsyah4489
@dimasalamsyah4489 3 жыл бұрын
great tutorial... does anyone know the sound effect for this one? i curently working on something similar to the video
@dakshina7124
@dakshina7124 4 ай бұрын
Woahh! :)
@spirityt9453
@spirityt9453 5 ай бұрын
Hey man....❤Love ur content and this is a request to make a tutorial about making this in Da vinci resolve...
@LukeNewell123
@LukeNewell123 Жыл бұрын
Really helpful tutorial, one problem for me... I've added pictures above the text which move along with it, but when I take the matte from the layer it applies directly to the images instead of the comp where the text is fading under it. Any idea how I can fix it so my images fade out under it the same way the text does? Thanks!
@diwydiant5664
@diwydiant5664 2 жыл бұрын
Thanks a lot for your job, this is amazing ! I subscribed to your Patreon to get the project, but I have 5 errors, and therefore I can't change the starting / endind dates. I've sent you a link to some screenshots on Patreon ;) Anyway, that's an awesome work ! :)
@louiscarole9091
@louiscarole9091 2 жыл бұрын
Hi, thanks for the tutorial. I have an error for the exact date animation, in the line that sets the datetime variable. I have wroten that : var datetime = Math.floor(linear(ref,0,effect("pas")("Curseur"),startDate.getTime(),endDate.getTime())); And it says that it can't turn the expression into a numeric value. Any help would be highly appreciated.
@jacobcorrea422
@jacobcorrea422 3 жыл бұрын
this is fantastic. Is there a way for the year used to not be random though? Like if want the years shown to range from 1990 - 2021, what would I need to update from your tutorial? Thanks!
@MediaWorkbench
@MediaWorkbench 3 жыл бұрын
The Start Value and End Value you would use, so Start Value would be 2021, End Value will be 1990. You would follow the tutorial to 22:00 min mark and then not do the following full date integration. Let me know if that makes sense.
@luxware
@luxware 3 жыл бұрын
Would there be a way for you to link the project file or something? I'm trying to make this but I keep getting an error with the expression code and I can't figure out why it isn't working. I'm very new to After Effects, just started yesterday; any help would be amazing.
@xander9003
@xander9003 Жыл бұрын
I got the feeling inside my bones
@ezmoney7094
@ezmoney7094 2 ай бұрын
What values need to change in the Text Layer Position expression to make the number/dot move vertically instead of horizontally? Thanks.
@foodiehamster
@foodiehamster 5 ай бұрын
Hey Guys, In case your code is not working, you can use the following var step = 100 / effect("Value Step")("Slider").value; var ref = (effect("Animation")("Slider").value % step) / step; var res; if (ref > 0.5){ res = linear(ref, 0.5, 1, effect("left")("Slider").value, effect("center")("Slider").value); } else { res = linear(ref, 0, 0.5, effect("center")("Slider").value, effect("right")("Slider").value); } [res, value[1]];
@mikez4388
@mikez4388 Жыл бұрын
I keep on retyping the code to make the dates more obvious, but AE keeps on saying that there's a syntax error when I'm missing a '(' for the var datetime. How do I fix this?
@Psil_
@Psil_ Жыл бұрын
var step = 100 / effect("Value Step")("Slider"); var ref = (effect("Animation")("Slider") % step) / step; if(ref > 0.5) { var res = linear(ref,0.5,1,effect("Left")("Slider"),effect("Center")("Slider")); } else{ var res = linear(ref,0,0.5,effect("Center")("Slider"),effect("Right")("Slider")); } value = [res,transform.position[1]]; var step = 100 / effect("Value Step")("Slider"); var ref = Math.floor(effect("Animation")("Slider") / step); var src = (effect("Animation")("Slider") % step) / step; ref = src > 0.5 ? ref + 1 : ref; value = Math.floor(linear(ref,0,effect("Value Step")("Slider"),effect("Start Value")("Slider"),effect("End Value")("Slider"))); I get the error Expression result must be of dimension 2, not 1 what should I do?
@adastra8218
@adastra8218 10 ай бұрын
var step = 100 / effect("Value Step")("Slider"); var ref = (effect("Animation")("Slider") % step) / step; if(ref > 0.5) { var res = linear(ref, 0.5, 1, effect("Left")("Slider"), effect("Center")("Slider")); } else { var res = linear(ref, 0, 0.5, effect("Center")("Slider"), effect("Right")("Slider")); } value = [res, transform.position[1]]; var step = 100 / effect("Value Step")("Slider"); var ref = Math.floor(effect("Animation")("Slider") / step); var src = (effect("Animation")("Slider") % step) / step; ref = src > 0.5 ? ref + 1 : ref; value = [ linear(ref, 0, effect("Value Step")("Slider"), effect("Start Value")("Slider"), effect("End Value")("Slider")), transform.position[1] ];
@adastra8218
@adastra8218 10 ай бұрын
It looks like you are trying to set the value to a 1D array with a single element res, but the expression expects a 2D vector for the value. To fix this, you need to convert res to a 2D vector like:
@adastra8218
@adastra8218 10 ай бұрын
So in summary, whenever you are setting the value in a position expression, make sure it is a 2D vector [x, y], even if you only want to animate along one axis. The expression requires a 2D vector.
@igaurav_pandey
@igaurav_pandey 6 ай бұрын
Suggest me the best sound effect for this animation
@GideonYudista
@GideonYudista 3 жыл бұрын
Hi, great work. But i got a problem here. So, after finishing the expression for the source text, the text won't appear on screen. So if I try to animate it, I only see the keyframe not the text. Can you help me with that? Thanks
@mariasolano7576
@mariasolano7576 2 жыл бұрын
Check if your text layer is extended long enough so that the text is visible. Something like 10 seconds.
@dkvstudyarchive865
@dkvstudyarchive865 3 жыл бұрын
how do you know the expression? it's so complicated but that makes fun, what's the resource about studying expression?
@MediaWorkbench
@MediaWorkbench 3 жыл бұрын
I come from a web programming background, so I'm familiar with coding already. After Effects expressions are based off JavaScript so often the functions can translate pretty easily. There's resources like ae-expressions.docsforadobe.dev that give a better breakdown to AE's in-build expressions. Then it's a lot of trial and error, reading forums, watching videos, that sort of thing.
@Lunarvader
@Lunarvader 7 ай бұрын
awesome tutorial and I followed it without errors with AE 2024 for my anniversary church project. thanks so much for uploading it. but then I want to make it slide back to the start value and cannot find the expression. Since I am no coder, would you be so kind to give me tips on how to do it? thanks so much.
@MediaWorkbench
@MediaWorkbench 7 ай бұрын
Hey, love that use for it! To make the timeline reverse back you will want to keyframe the Animation slider on the main text layer (the layer with all the slider controls on it) to go from 100 back down to 0. When Animation is at 0, it will be the first date, when it's at 100 its the second date. Right+click both those new keyframes to easy ease them and you can even manipulate the speed graph to make that easing even more dramatic (I have a video on Easing I highly recommend to help with this). Hope that helps, let me know if you need any more assistance.
@nizarakibi3683
@nizarakibi3683 11 ай бұрын
undefined value used in expression (could be an out of range array subscript) ???????????????????? any help var step = 100/effect("Value Step")("Slider");
@nguaxn
@nguaxn Жыл бұрын
Hi, I'm trying to follow your tutorial for a school project and since my After Effect version is newer, I'm trying to change it back to a different version--what after effect version is this?
@MediaWorkbench
@MediaWorkbench Жыл бұрын
The tutorial is made in Adobe After Effects CS6, however I have confirmed that it does all work in the latest versions of CC 2023. Check out the tutorial on the Media Workbench website if you want a text version to follow along with.
@TRAILERMUSICARCHIVES1460
@TRAILERMUSICARCHIVES1460 7 ай бұрын
I can't get the expressions right... can they be written on the 2024 version?
@blitzit4567
@blitzit4567 7 ай бұрын
Hey!! I'm not sure if you still check the comments (since the vid was made 2 years ago lol), but I'm trying to do this but only with months and not years! so my Text is just "December" "November" and the idea is I just want it to animate through all of the months till January!! So at 9:50 I don't really know what to put in the start value or the end value as they are numerical. Is there any way to fix this? Thank you!!
@alyceryan
@alyceryan Жыл бұрын
i want to add text underneath to do the same effect and essentially move with the numbers and timeline. is there way to do that with expressions?
@MediaWorkbench
@MediaWorkbench Жыл бұрын
The easiest way would be to duplicate the main text layer then use the anchor point to reposition the text underneath. Then you can set up the text to do whatever you like. If you want static text then get rid of the expression on the sourceText property, otherwise on the MediaWorkbench website there's some explanations on how to make the text say different things. The key would be that the Value Step property needs to be the same for both text layers, as does the Left, Center, and Right slider values. Otherwise the text won't animate in line with each other.
@adelinaonicas6163
@adelinaonicas6163 2 жыл бұрын
Is there a way to pick a certain date you might want the source text to be so that you can pause on for a bit? If the value step is only 5 or 10....you only really get 5 or 10 different dates in your date range you can stop on. Is there expression you can write that will override what these 5 or 10 number values will be? Thanks.
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
Yes, you can manually define every single date that appears, though it will eliminate being able to use the value step slider to control what appears. To make this change you need to replace Text Layer sourceText expression to the following (where you define each value in the dateSource array)... var dateSource = ["Sept 12th", "Sept 20th", "Oct 7th", "Oct 18th", "Nov 2nd", "Nov 9th"]; var step = 100/(dateSource.length-1); var ref = Math.floor(effect("Animate")("Slider")/step); var src = (effect("Animate")("Slider")%step)/step; ref = src>0.5 ?ref + 1:ref; value = dateSource[ref];
@lilbootzes1
@lilbootzes1 Жыл бұрын
@@MediaWorkbench MEDIA YOU'RE A FUCKING LEGEND FOR DOING THIS!!! THANKS A TONNE!
@tobygarvin4918
@tobygarvin4918 4 ай бұрын
Did anyone ever figure out the issue with endDate not working?
@Dweaver1906
@Dweaver1906 2 жыл бұрын
so the expression works but it seems to make a slight pause when the value changes.....? idk if you guys ran into this problem, let me know when the file is uploaded to your patreaon!!
@MoreDeuce434
@MoreDeuce434 6 ай бұрын
At 24:48 I get the error message "Error: Couldn't turn result into numeric value". How do I fix this?
@proart0421
@proart0421 3 ай бұрын
Why do my numbers only change digits when the digits are in the middle? Does anyone know how to fix this? Or is it supposed to be like that?
@vincentthibault3534
@vincentthibault3534 Жыл бұрын
Hello dear thank you so much for this great tutorial. I have a little issue - I would like to go from year 2022 to year AD54. Since year 54 is only 2 numbers the text is not centered anymore with the dot... Is there a way to add ''00'' before 54 or in the best scenario would it be possible to add ''AD"" before the year 54. I would appreciate your help so much :) Thank you!
@MediaWorkbench
@MediaWorkbench Жыл бұрын
Thanks! Okay, so we need to tweak the end of the sourceText expression to being… var newVal = Math.floor(linear(ref,0,effect("Value Step")("Slider"),effect("Start Value")("Slider"),effect("End Value")("Slider"))); if(newVal < 1000){ if(newVal < 100){ value = ‘00’ + newVal; // or ‘AD’ + newVal }else{ value = ‘0’ + newVal; } }else{ value = newVal; }
@vincentthibault3534
@vincentthibault3534 Жыл бұрын
​@@MediaWorkbench You're amazing.
@ashraf_arshad
@ashraf_arshad 2 жыл бұрын
Hi, I was trying to make it go from right to left instead by inversing the slider animation from 100 to 0 but the text wont animate below 0. It works if I go above 100 though (to create that slow stop + slight reverse effect you have shown). Is there a way to fix this?
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
Easiest way to reverse the direction would be to swap the values in the Left and Right Slider that set the positions of the text, so the Left Slider should be the x position for the text on the right of screen, and the Right Slider should be the x position when it is on the left.
@josephchristoffel
@josephchristoffel 8 ай бұрын
@@MediaWorkbenchThank you!
@brandonnicholas5640
@brandonnicholas5640 2 жыл бұрын
Thank you for this tutorial! How would I make this work if I wanted to go from a date in the past (ex Jan. 1989) to the word "Today" or "Present"? Where you have December 25, 2026 would I just put "Present"?
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
On the bottom of the expression of the SourceText property of the text layer you want to add the following… if(ref == effect(“Value Step”)(“Slider”)){ value = “TODAY”; } Then you can use the Value Step slider control to control what it does. If you set it to a value of 1 then it will show your start date and then the word TODAY with no dates in between. Increasing the Value Step number will make dates appear in between. It will still keep TODAY at the end of the sequence. Let me know how that goes for you.
@ragedigpaint1476
@ragedigpaint1476 2 жыл бұрын
Hi ! thank you so much for this amazing tutorial ! Unfortunately, i've a problem at 16:4O.... When i write if(ref==0){value = "";} the number doesn't appear anymore even if i move the "animation" slider... I don't understand where i screwed up :) Could you please help me ? thaks a lot !
@jairo1791
@jairo1791 2 жыл бұрын
I have the same problem
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
I’ll take a look and see if I can replicate the issue
@LeProtagoniste
@LeProtagoniste 2 жыл бұрын
I think I corrected it. Try : if(ref==0){ value = ""; }else{ value = value; } Worked for me !
@conormurphy7058
@conormurphy7058 2 жыл бұрын
@@LeProtagoniste Worked for me. Thanks
@naveensingh3300
@naveensingh3300 6 ай бұрын
Worked for me , Thanks @@LeProtagoniste
@kumarb928
@kumarb928 Жыл бұрын
❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@Cyrpacus
@Cyrpacus 2 жыл бұрын
Is there a way to make this with just text and no numbers? IE: the start date would be PAST, center date PRESENT, end date would be FUTURE? I've been messing around with it a little, but I have no clue about coding. Tried parrenting the values to different text layers, but i cant get it to work. Any help would be much appriciated!
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
Hi Cyrpacus, So on the bottom of the expression of the SourceText property of the text layer you want to add the following... if(ref=="0"){ value = "PAST"; }else if(ref==Math.ceil(effect("Value Step")("Slider")/2)){ value = "PRESENT"; }else if(ref == effect("Value Step")("Slider")){ value = "FUTURE"; } Then you can use the Value Step slider control to control what it does. If you set it to a value of 2 then it will show Past, Present, Future with no dates in between. Increasing the Value Step number will make dates appear in between. It will still keep "Present" in the middle of the sequence.
@Cyrpacus
@Cyrpacus 2 жыл бұрын
@@MediaWorkbench Wow! Works like a charm. Thanks man, I really appreciate you taking the time to figure this out. Made my day :)
@moonlemons1956
@moonlemons1956 2 жыл бұрын
is it possible to have only text in the timeline and no numbers? if yes, how?
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
Yes, you can manually define the text of every single date that appears, though it will eliminate being able to use the value step slider to control what appears. To make this change you need to replace Text Layer sourceText expression to the following (where you define each value in the dateSource array)… var dateSource = [“Sept 12th”, “Sept 20th”, “Oct 7th”, “Oct 18th”, “Nov 2nd”, “Nov 9th”]; var step = 100/(dateSource.length-1); var ref = Math.floor(effect(“Animate”)(“Slider”)/step); var src = (effect(“Animate”)(“Slider”)%step)/step; ref = src>0.5 ?ref + 1:ref; value = dateSource[ref];
@danytama3933
@danytama3933 3 жыл бұрын
love your tutorial so much! but can you help me to fix the expression that saying expression result must be of dimension 2 not 1. Thankyou
@rOnNiecHaRles16
@rOnNiecHaRles16 Жыл бұрын
me too anyone resolved this?
@MediaWorkbench
@MediaWorkbench Жыл бұрын
Would this be for the position property? I would suggest a first point of call would be visit the tutorial page on the media workbench site, as it has all the expressions for every property there. Either compare your expression with the one listed there to find the discrepancy, or use the copy + paste button to replace the expression with the error. If after that you still find the same error then hit me up through my contact form and I can look into it further.
@rOnNiecHaRles16
@rOnNiecHaRles16 Жыл бұрын
@@MediaWorkbench I already did this copy + paste and also write it down manually. It didnt work.
@rOnNiecHaRles16
@rOnNiecHaRles16 Жыл бұрын
@@MediaWorkbench its working now, Im glad that you're responsive.
@GENZstudyhub
@GENZstudyhub 9 ай бұрын
13.50 my slider is not working
@shreyabarua1683
@shreyabarua1683 11 ай бұрын
I followed all the steps correctly. but the numbers didnt changed.
@darkduelist6755
@darkduelist6755 2 жыл бұрын
how would you make this go forward?
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
From memory this is pretty easy. Simply swap the values in the Left and Right slider controls, this makes the position on the left be on the right, and the right position to be on the left, effectively reversing the animation.
@StudyofSwords
@StudyofSwords 2 жыл бұрын
Is there a way to not include the day, and just display just the Month and Year?
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
Yes you would change your last line of the Text Layer's sourceText expression to remove presented.getDate() + It would instead look like... value = months[presented.getMonth()] + " '" + fullyear.substr(2,2); Check out the tutorial page on my website (see the description) for a breakdown of how to reformat the dates.
@StudyofSwords
@StudyofSwords 2 жыл бұрын
@@MediaWorkbench Excellent, much obliged!
@RichartheLionHeart2024
@RichartheLionHeart2024 11 ай бұрын
Please, if somebody can help me - this expression:var Step = 100/effect("Value Step")("Controle deslizante"); var Ref = (effect("Animation")("Controle deslizante")%Step)/Step; if(ref>0.5){ var res = linear(ref,0.5,1,effect("Controle Deslizante - Left")("Controle deslizante"),effect("Center")("Controle deslizante")); }else{ var res = linear(ref,0,0.5,effect("Center")("Controle deslizante"),effect("Right")("Controle deslizante")); } value = [res,transform.position[1]]; the line: if(ref>0.5){ is showing a problem "ref is not defined", what do I do?
@RonGerlandVFerrer
@RonGerlandVFerrer 3 жыл бұрын
Uhhhmmm hello I'm having trouble with my expression from the first one that says: var step = 100/effect("Step Value")("Slider"); Then it tells me ---> Error: SytaxError: missing ) after argument list
@MediaWorkbench
@MediaWorkbench 3 жыл бұрын
For that sort of an error, is sounds like some bracket hasn’t been wrapped properly. Check through the entire expression to see if there’s any bracket started that isn’t ended. That should indicate where it’s missing. If you’re still having issues try to copy and paste the full expression here and I’ll try to debug for you :)
@RonGerlandVFerrer
@RonGerlandVFerrer 3 жыл бұрын
@@MediaWorkbench var step = 100/effect("Step Value")("Slider"); var ref = (effect("Animation")("Slider")%step)/step; if(ref>0.5){ var res = linear(ref,0.5,1,effect("Left")("Slider",effect("Center")("Slider")); }else{ var res = linear(ref,0,0.5,effect("Center")("Slider"),effect("Right")("Slider")); } value = [res,transform.position[1]];
@MediaWorkbench
@MediaWorkbench 3 жыл бұрын
@@RonGerlandVFerrer var res = linear(ref,0.5,1,effect("Left")("Slider",effect("Center")("Slider")); This line is missing the " ) " after ("Left")("Slider" so it should be... var res = linear(ref,0.5,1,effect("Left")("Slider"),effect("Center")("Slider"));
@RonGerlandVFerrer
@RonGerlandVFerrer 3 жыл бұрын
@@MediaWorkbench Oh! Okay 😲 I'll fix it right away.
@iamstu0
@iamstu0 3 жыл бұрын
Love this effect but After Effects isn't loving your code. It's line 2. It says Error at line 2 in property "Position of layer 1 ('2021') in comp 'time line'. ReferenceError: step is not defined var stop = 100/effect("value step")("Slider") var ref = (effect("animation")("Slider")%step)/step; Any help would be greatly appreciated. Cheers.
@MediaWorkbench
@MediaWorkbench 3 жыл бұрын
Thanks! From what I can see the issue would probably be where it says “var stop”, should be “var step”. Let me know if that fixes it
@iamstu0
@iamstu0 3 жыл бұрын
@@MediaWorkbench Hey! Thanks for the swift reply. I'll give it a go. Thank you.
@MediaWorkbench
@MediaWorkbench 3 жыл бұрын
How did you go?
@DCAlbin
@DCAlbin 2 жыл бұрын
@@MediaWorkbench I have that error... I could to change "step", It doesn't work. Someone could to help me please.... I would appreciate it
@coltonvickers9712
@coltonvickers9712 Жыл бұрын
I have the first expression typed in exactly like you do (I think) and I keep getting an error message saying "Object of type Group found where a Number, Array, or Property is needed" Anything I am doing wrong?? Here is what I have typed in: var step = 100/effect("Value Step")("Slider"); var ref = (effect("Animation")("Slider")%step)/step; if(ref>0.5){ var res = linear(ref,0.5,1,effect("Left")("Slider"),effect("Center")("Slider")); }else{ var res = linear(ref,0,0.5,effect("Center")("Slider"),effect("Right")("Slider")); } value = [res,transform,position[1]];
@MediaWorkbench
@MediaWorkbench Жыл бұрын
Last line has a comma between transform and position[1] it should be a period dot, so should read…. value = [res,transform.position[1]];
@angeloberkeley1923
@angeloberkeley1923 6 ай бұрын
var step = 100/effect("VALUE STEP")("Slider"); var ref = (effect("ANIMATIONS")("Slider")%step)/step; if(ref>0.5){ }else{ } I Keep getting an Error Message "Undefined value used in expression"
@blackheartgaming5259
@blackheartgaming5259 Жыл бұрын
text dissapears when I write the first line in source text.Please help
@MediaWorkbench
@MediaWorkbench Жыл бұрын
This is expected, as the first few lines of the sourceText expression are doing calculations. It’s only the last line or two that actually set the value. If you’re wanting to see the full expression for the sourceText property, I suggest visiting the Media Workbench website, where the whole tutorial for this video is written out with code you can copy and paste. Link is in the description of this video.
@Dweaver1906
@Dweaver1906 2 жыл бұрын
is there a way to purchase this project file? lol I work in news no time at all lol
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
I’ll put it on my Patreon
@DCAlbin
@DCAlbin 2 жыл бұрын
@@MediaWorkbench when would you have it in your patreon?
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
Albino Dominguez I’ll get it up over the next day or two
@hpvinayak02
@hpvinayak02 Жыл бұрын
Copied the same exact code but it's showing error at this line : var datetime = Math.floor(linear(ref,0,effect("Value Step")("Slider"),startDate.getTime(),endDate.getTime())); Error : cannot turn the result into a numeric value I pasted the exact same values but it's showing the error. Please help.
@MediaWorkbench
@MediaWorkbench Жыл бұрын
Sounds like either the startDate or endDate isn’t resolving to a date value. I would check you have all the code required for sourceText (I have a way to copy the entire code from the tutorial on the MediaWorkbench website link in the description). If it’s still not resolving on that line it might be that the text you have entered in the source text for the Start Date or End Date text layer is not in a format that the code can resolve into a date value.
@hpvinayak02
@hpvinayak02 Жыл бұрын
@@MediaWorkbench Thanks for responding! Actually up untill that point everything has work perfectly, it's just at this moment the error is occuring. Also, I had copied the code from your site as well. The issue remains. Maybe it's a bug in AE or something.
@MediaWorkbench
@MediaWorkbench Жыл бұрын
Feel free to message me via my Support Form on the website to follow up we can continue troubleshooting there and you can always send me through your AE file if you’d like me to take a look.
@hpvinayak02
@hpvinayak02 Жыл бұрын
@@MediaWorkbench Sure. Thanks!
@Xenuria
@Xenuria 3 жыл бұрын
How can I make this work in Kdenlive?
@MediaWorkbench
@MediaWorkbench 3 жыл бұрын
Sorry, it’s a tutorial for Adobe After Effects. Unfortunately my experience with other software outside of the Adobe Suite is somewhat limited and so cannot offer support at this time.
@Xenuria
@Xenuria 3 жыл бұрын
@@MediaWorkbench It's ok, not even the people who develop Kdenlive has any idea how it works. But it's free and open source so...
@praneethrandunu
@praneethrandunu 2 жыл бұрын
can i get project files?
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
Project files for tutorials are available to download via my Patreon
@anonymoususer8849
@anonymoususer8849 2 жыл бұрын
Congrats. Btw I must say you have beautiful wife.
@Iamaamirmohammed
@Iamaamirmohammed 2 жыл бұрын
Can i get file of this work?
@MediaWorkbench
@MediaWorkbench 2 жыл бұрын
Project files for some of the tutorials (including this one) are available to download via Patreon by becoming a patron. You can find all the details and links to both Patreon and this tutorial on the Media Workbench website in the description of this video.
@telarecomiendo1004
@telarecomiendo1004 11 ай бұрын
I have error in all the sintaxis. What i can do to solve it?
@MediaWorkbench
@MediaWorkbench 11 ай бұрын
Check the comments a couple people have posted their issues and fixes. Otherwise follow the link in the description to the Media Workbench website where I have all the code typed out in a written copy of the tutorial, so that’ll be a good place to compare.
@telarecomiendo1004
@telarecomiendo1004 11 ай бұрын
@@MediaWorkbench The error its, Invalid numeric result (divide by zero?),in the expression from position. How i can fix it?
@MediaWorkbench
@MediaWorkbench 11 ай бұрын
Not sure off the top of my head. To save time I’d go to the Media Workbench website and find the tutorial, then find the expression for transform.position, then use the button in the top right to copy the whole expression, and then you can paste it to replace your existing expression code on the transform.position property.
@NiisExperience
@NiisExperience Жыл бұрын
Can we have a template please ?? I keep getting error in my expression
@MediaWorkbench
@MediaWorkbench Жыл бұрын
Project files are available from my Patreon. Otherwise follow the link in the description of the video to the Media Workbench website where you can follow along with a text version of the tutorial and copy the expression code for each property.
@NiisExperience
@NiisExperience Жыл бұрын
@@MediaWorkbenchI don’t really understand how patron works and how i can get it from there. I checked it out it says Locked and stuff and something about becoming a patron
@MediaWorkbench
@MediaWorkbench Жыл бұрын
Hit up my website and use the contact form. I’m happy to take a look at your project file to try and resolve the error for you.
@NiisExperience
@NiisExperience Жыл бұрын
@@MediaWorkbench I did Sir, waiting for your feedback
@linario3181
@linario3181 8 ай бұрын
please, help a property or method named 'ref' is missing or does not exist in the global class. It may have been renamed, moved, deleted, or there was a mistake in the name var step = 100/effect("Step")("Slider"); var red = (effect("Animation")("Slider")%step)/step; if(ref>0.5) { var res = linear(ref,0.5,1,effect("left")("Slider"),effect("centre")("Slider")); } else { var res = linear(ref,0,0,5,effect("centre")("Slider"),effect("right")("Slider")); } value = [res,transform.position[1]];
@MediaWorkbench
@MediaWorkbench 7 ай бұрын
var ref instead of var red in the starting declarations will be where the issue is.
@angeloberkeley1923
@angeloberkeley1923 6 ай бұрын
These variables keep giving me an expression error
@chanseemin9170
@chanseemin9170 2 жыл бұрын
i want to try this effect out but there's an error in line one which saying there's undefined value use in expression(could be out of range array subscript?) var step = 100/effect("Value Step")("Slider"); var ref = (effect("Animation")("Slider")%step)/step; if(ref>0.5){ var res = linear(ref,0.5,1,effect("Left")("Slider"),effect("Center")("Slider")); }else{ var ref = linear(ref,0,0.5,effect("Center")("Slider"),effect("Right")("Slider")) } value = [res,transform.position[1]];
@adelinaonicas6163
@adelinaonicas6163 2 жыл бұрын
I got the same error line after the first line in the expression, did you ever get a response?
@Bennykj87
@Bennykj87 2 жыл бұрын
@@adelinaonicas6163 I have same error. Just can´t get it to work :(
@himalay7
@himalay7 2 жыл бұрын
I had the same issue, when I added the first two lines, I kept going and then the error went away. My expression looks the same, see if copy paste can help get rid of the error. var step = 100/effect("Value Step")("Slider"); var ref = (effect("Animation")("Slider")%step)/step; if(ref>0.5){ var res = linear(ref,0.5,1,effect("Left")("Slider"),effect("Center")("Slider")); }else{ var res = linear(ref,0,0.5,effect("Center")("Slider"),effect("Right")("Slider")); } value = [res,transform.position[1]];
@ckfeliz
@ckfeliz 2 жыл бұрын
I tried to separate the dimensions into x and y, and applied the expressions on x position only. Changed the last sentence to value = res; worked for me, might worth trying.
@josephchristoffel
@josephchristoffel 8 ай бұрын
@@himalay7 i copy paste your code, and the error is gone! Thanks!
@mainamind
@mainamind 2 жыл бұрын
var step = 100/effect("Value Step ")("Slider") var step = (effect("Animation ")("Slider")%step)/step; if(ref>0.5){ var res = linear(ref,0.5,1,effect("Left")("Slider"),effect("Centre ")("Slider")); }else{ var res = linear(ref,0,0.5,effect("Centre ")("Slider"),effect("Right ")("Slider")); } value = [res,transform.position[1]]; please debug this for me, the error seems to be on line one.
@Dweaver1906
@Dweaver1906 2 жыл бұрын
looks like the word center is spelled wrong and there is an extra space after "Right"...... I plugged this into my project and it worked after the corrections
@mainamind
@mainamind 2 жыл бұрын
@@Dweaver1906 Thanks man, just corrected it and it works fine
@swamibrahmavadin5234
@swamibrahmavadin5234 7 ай бұрын
its nice but it s not working var step = 100/effect("Value Step")("Slider"); var ref =(effect("Animation")("Slider")%step)/step; if(ref>0.5){ var res = linear(ref,0.5,1,effect("Left")("Slider"),effect("Center")("Slider")); }else{ var res = linear(ref,0,0.5,effect("Center")("Slider"),effect("Right")("Slider")); } value [res,transform.position[1]]; " got the error undefined value used in expression could be out of range an array?"
@GAETAN2614
@GAETAN2614 2 жыл бұрын
It's a very good tutorial, but too much Expressions.
@harsh_kumar67
@harsh_kumar67 3 ай бұрын
@mediaworkbench i got the error 'invalid numeric result (divided by zero ?)' on var datetime line
@historecalls
@historecalls Жыл бұрын
My dates(dd mm ‘yy/yyyy) are not centered in reference with the dot. Please help
@GENZstudyhub
@GENZstudyhub 9 ай бұрын
Nah man!! I tried everything and still the slider not moving 😭😭😭😭😭😭
@MediaWorkbench
@MediaWorkbench 9 ай бұрын
On my website you can contact me via support. I’ll touch base and see if I can identify the issue, otherwise shoot me a project file :)
@GENZstudyhub
@GENZstudyhub 9 ай бұрын
@@MediaWorkbench please give the project fileeeeeeee
@MediaWorkbench
@MediaWorkbench 9 ай бұрын
@GENZstudyhub If you want the project file, it’s available via Patreon. Otherwise feel free to contact me and I can see if I can help yours directly.
@user-yj4lb5ss8o
@user-yj4lb5ss8o 3 ай бұрын
var step = 100/effect("value step")("Slider"); var ref = (effect("animation")("Slider")%step)/step; if(ref>0.5){ var res= linear(ref,0.5,1,effect("left")("Slider"),effect("center")("Slider")); }else{ var res= linear(ref,0,0.5,effect("center")("Slider"),effect("right")("Slider")); } value = [res,transform.position[1]];
@margarita-qd3jn
@margarita-qd3jn 7 ай бұрын
Platilla del 2017 al 23 o 24
@MediaWorkbench
@MediaWorkbench 7 ай бұрын
¿Te refieres al archivo de plantilla o a la versión del software?
@margarita-qd3jn
@margarita-qd3jn 7 ай бұрын
@@MediaWorkbench Hello, thank you very much for responding 😊 I wanted to know if you can make a template on green screen from the years 2017 to 2024 I would appreciate it very much It's for a school exhibition project.
@MediaWorkbench
@MediaWorkbench 7 ай бұрын
Shoot me a message on my site 👍🏼
@margarita-qd3jn
@margarita-qd3jn 7 ай бұрын
@@MediaWorkbench I wrote to him on intragram and Facebook
@tanujsingh9747
@tanujsingh9747 3 жыл бұрын
if(ref==0){ value = ""; } It is making all the text disappear. Please help.
@MediaWorkbench
@MediaWorkbench 3 жыл бұрын
only use that if() statement if you don't want text shown at the start, if you want it always visible you can just leave it out of the expression, it's optional.
@kosalaperera1030
@kosalaperera1030 3 жыл бұрын
Thanks so much for this. Such a good tutorial. var datetime = Math.floor(linear(ref, 0, effect("Value Step")("Slider"),startDate.getTime(),endDate.getTime())); Has anyone got an error saying Invalid numeric result(divide by zero?) for above expression
@MediaWorkbench
@MediaWorkbench 3 жыл бұрын
So far haven't been able to replicate that error, if you're still having trouble copy+paste the full expression code
@kosalaperera1030
@kosalaperera1030 3 жыл бұрын
@@MediaWorkbench Thanks buddy. Much appreciated
@louiscarole9091
@louiscarole9091 2 жыл бұрын
Hi, I have the same issue, it says that it can't turn the result into a numeric value.
@naveensingh3300
@naveensingh3300 6 ай бұрын
Just Copy & Paste var step = 100 / effect("Value Step")("Slider"); var ref = (effect("Animation")("Slider") % step) / step; if(ref > 0.5) { var res = linear(ref,0.5,1,effect("Left")("Slider"),effect("Center")("Slider")); } else{ var res = linear(ref,0,0.5,effect("Center")("Slider"),effect("Right")("Slider")); } value = [res,transform.position[1]]; var step = 100 / effect("Value Step")("Slider"); var ref = Math.floor(effect("Animation")("Slider") / step); var src = (effect("Animation")("Slider") % step) / step; ref = src > 0.5 ? ref + 1 : ref; value = Math.floor(linear(ref,0,effect("Value Step")("Slider"),effect("Start Value")("Slider"),effect("End Value")("Slider")));
@angeloberkeley1923
@angeloberkeley1923 6 ай бұрын
will it work like that?
@angeloberkeley1923
@angeloberkeley1923 6 ай бұрын
I did that jn and i wasn't getting any movement
@angeloberkeley1923
@angeloberkeley1923 6 ай бұрын
do i have to renter the parts with the pickwhip?
@berkanyuceer3064
@berkanyuceer3064 7 ай бұрын
var step = 100/effect("Value Step")("Slider"); var ref = (effect("Animation")("Slider")%step)/step; if(ref>0,5){ var res = linear(ref,0.5,1,effect("Left")("Slider"),effect("Center")("Slider")); }else{ var res = linear(ref,0,0.5,effect("Center")("Slider"),effect("Right")("Slider")); } value = [res,transformation.position[1]]; I'm having an error on the last line. It says "transformation is not defined". Can somebody help?
Top 20 Actually Useful Effects in After Effects
7:38
Ben Marriott
Рет қаралды 497 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 34 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 5 МЛН
Adobe is horrible. So I tried DaVinci Resolve
45:17
Bog
Рет қаралды 121 М.
animated timeline from THE LAST DANCE | Adobe After Effects Tutorial
12:25
Create the Loki Title Sequence in After Effects | Tutorial
19:09
Ben Marriott
Рет қаралды 443 М.
How to Animate in After Effects | FREE COURSE
3:36:02
Envato Tuts+
Рет қаралды 1,1 МЛН
Clean 3D Animated Travel Map Tutorial in After Effects
13:52
Ignace Aleya
Рет қаралды 1,4 МЛН
Start Compositing in After Effects - Full Tutorial!
26:15
ProductionCrate
Рет қаралды 603 М.
10 Quick After Effects Techniques I LOVE
8:01
Ben Marriott
Рет қаралды 657 М.
How to Create Vox Highlighter Effect | After Effects
9:35
Flat Pack FX
Рет қаралды 232 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 34 МЛН