Great respect for you man! I've been looking for something like this and you are always there for me to learn awesome programming. Thanks for all the tutorials!
2:35:09 - To draw a sine wave, it might be a better approach to first create a shape layer using the Pen tool. Then, you can write the following expression in the properties under content > shape > path > path. var positions = []; var amplitude = 200; var numPoints = 250; var xSpacing = 20; for (var i = 0; i < numPoints; i++) { var xCoord = i * xSpacing; var yCoord = Math.sin(i / (amplitude / xSpacing)) * amplitude; positions.push([xCoord, yCoord]); } createPath(positions, [], [], false);
Indeed, the equation for a sine curve appears and is used extensively in physics, mathematics, and many other areas. If you're interested, you can familiarize yourself with this type of coding through visual design coding using tools like p5.js. And yes, I am much more human than you might think👾
Really nice codes. I changed the length by assigning "time" to xSpacing and multiplied yCoord by -1. And then I applied the same loop for X Position of the layer, only added "value" and multiplied by -1 again. Here's the Path expression: var positions = []; var amplitude = 250; var numPoints = 250; var xSpacing = time; for (var i = 0; i < numPoints; i++) { var xCoord = i * xSpacing; var yCoord = Math.sin(i / (amplitude / xSpacing)) * amplitude * -1; positions.push([xCoord, yCoord]); } createPath(positions, [], [], false); And here's the X Position expression: var numPoints = 250; var xSpacing = time; for (var i = 0; i < numPoints; i++) { var xCoord = i * xSpacing; } value + xCoord * -1;
This is an excellent course. Well explained throughout and the exercises really work to reinforce learning. Superb. Love to see a follow up course. Thank you.
Great videos!! Thank you! so clrear explanation! Also, you should magnify the coding area, to follow the code. Due the conection becomes blury and difficult to follow!! You got a trully follower!!
For a beginner, learning the coding is difficult, how is the user suppose to know what coding they should use and when to apply it to the right key frame? Their are many codes the user would have to memorize, including understand the functionality behind it.
the secrete is that you do not have to memorize anything, try to make the code self explanatory for you, add comments, name variables with meaning and then forget it.
Hi, When doing 48:28 "Custom expression controls" my syntax is correct but AE throws the error "property or method named [object Property] in Class 'Array' is missing or does not exist." It's the code to do with toggling on/off the drop shadow opacity (between values 80 and 0). How do I fixt this? Thanks.
came across the same problem you did. What I understand is that the "0" or "1" returned from the checkbox is not the same as a number 0 or 1. Maybe the line has to be converted somehow. My work around was to just literally put a 0 inside the index instead of referencing the variable returning the 0 or 1 from the checkbox. It's just weird because if you did something like if (checkbox == 0). It does check it correctly.. So if statements can be another work around. Might be something the old after effects versions were able to do and maybe an update made the syntax different.
hi there. I've been trying to follow a tutorial on domestika, and right at the beginning, the start of the expression is: var holdTime = 1; and after effects keep swarning me saying that expression is wrong, however it's the same expression showed in the tutorial. Can someone give me a hand here?
I tried to changing color depend on shape moving (x,Y) but not working ;( I did it only in X position > var Black = [0,0,0,255]/255; var CloudyGray = [109,105,104,255]/255; var SmokeyGray = [114,110,109,255]/255; var White = [255,255,255,255]/255; if(thisComp.layer("Select Color").transform.xPosition
This video is just a gem for someone who don't know coding and wants to use expressions in AE. Kudos dude you killed it.
Thanks!
Thank you so much! :)
@@ClearCodedoes the === also work on after effects scripting?
Great respect for you man! I've been looking for something like this and you are always there for me to learn awesome programming. Thanks for all the tutorials!
.. B byYou can display your clips as a single column - just tap on the settings icon above
His explanations are the easiest out there!!
Thank you so much !!
I appreciate a lot your time, your dedication, your knoledge and your willing to share this amazing content to us! Thank you so much!
thank you for this! love your teaching style and the little exercises you include
I greatly appreciate for dedicating your time and effort to create this video.
2:35:09 - To draw a sine wave, it might be a better approach to first create a shape layer using the Pen tool.
Then, you can write the following expression in the properties under content > shape > path > path.
var positions = [];
var amplitude = 200;
var numPoints = 250;
var xSpacing = 20;
for (var i = 0; i < numPoints; i++) {
var xCoord = i * xSpacing;
var yCoord = Math.sin(i / (amplitude / xSpacing)) * amplitude;
positions.push([xCoord, yCoord]);
}
createPath(positions, [], [], false);
How are you guys writing and explain this complex coding are you humans?
Indeed, the equation for a sine curve appears and is used extensively in physics, mathematics, and many other areas. If you're interested, you can familiarize yourself with this type of coding through visual design coding using tools like p5.js. And yes, I am much more human than you might think👾
Really nice codes. I changed the length by assigning "time" to xSpacing and multiplied yCoord by -1. And then I applied the same loop for X Position of the layer, only added "value" and multiplied by -1 again.
Here's the Path expression:
var positions = [];
var amplitude = 250;
var numPoints = 250;
var xSpacing = time;
for (var i = 0; i < numPoints; i++) {
var xCoord = i * xSpacing;
var yCoord = Math.sin(i / (amplitude / xSpacing)) * amplitude * -1;
positions.push([xCoord, yCoord]);
}
createPath(positions, [], [], false);
And here's the X Position expression:
var numPoints = 250;
var xSpacing = time;
for (var i = 0; i < numPoints; i++) {
var xCoord = i * xSpacing;
}
value + xCoord * -1;
one of the best channels I discovered ever, thank you for your time, great teacher!💯👌🙏🙏🙏🙏
Thank you. The tutorial is clear. You have really generous heart. May God bless you.
this SIR , is a miracle, thank you very much.
This is an excellent course. Well explained throughout and the exercises really work to reinforce learning. Superb. Love to see a follow up course. Thank you.
Terrific introduction to expressions. Am halfway through. Much appreciated!
This was incredible definitely need more of this!
Incredibly well explained man. Keep it up!
Amazed. Keep it up. Thanks for creating quality content.
Thank you very very much.
You saved us so much time
Great videos!!
Thank you! so clrear explanation!
Also, you should magnify the coding area, to follow the code.
Due the conection becomes blury and difficult to follow!!
You got a trully follower!!
Amazing stuff! Thank you very much for sharing!
This kind of tutorial is really cool!
awesome and simple ... continue
I love your Videos man! Keep up the good work ;)
Thank you for a fantastic tutorial!
best video I ever saw
Looks cool!
wow!!!!! Thank you so much sir.
This is amazing. Thanks a lot
million thanks sir
Thank you sir for this tutorial
For a beginner, learning the coding is difficult, how is the user suppose to know what coding they should use and when to apply it to the right key frame? Their are many codes the user would have to memorize, including understand the functionality behind it.
the secrete is that you do not have to memorize anything, try to make the code self explanatory for you, add comments, name variables with meaning and then forget it.
Hi,
When doing 48:28 "Custom expression controls" my syntax is correct but AE throws the error "property or method named [object Property] in Class 'Array' is missing or does not exist." It's the code to do with toggling on/off the drop shadow opacity (between values 80 and 0). How do I fixt this? Thanks.
came across the same problem you did. What I understand is that the "0" or "1" returned from the checkbox is not the same as a number 0 or 1. Maybe the line has to be converted somehow. My work around was to just literally put a 0 inside the index instead of referencing the variable returning the 0 or 1 from the checkbox.
It's just weird because if you did something like if (checkbox == 0). It does check it correctly.. So if statements can be another work around. Might be something the old after effects versions were able to do and maybe an update made the syntax different.
Hello mate !
Try using
If (controllervalue==1) {100}
else (0)
wow what a legend
At 2:28 it says Command Click on Mac, it's actually Option Click on Mac
Your the best! Thanks
THANKS!!!
Thanks many many much more ,,,, ....
thank you very mush
hi there. I've been trying to follow a tutorial on domestika, and right at the beginning, the start of the expression is:
var holdTime = 1;
and after effects keep swarning me saying that expression is wrong, however it's the same expression showed in the tutorial. Can someone give me a hand here?
Now I gotta get the app
Not that easy, AE is like $300 a year
@@isaacparker3593 crack
@@madeinhvn Isn't that wrong!!!
I tried to changing color depend on shape moving (x,Y) but not working ;(
I did it only in X position
>
var Black = [0,0,0,255]/255;
var CloudyGray = [109,105,104,255]/255;
var SmokeyGray = [114,110,109,255]/255;
var White = [255,255,255,255]/255;
if(thisComp.layer("Select Color").transform.xPosition
you should compare from the higher to the lower using > instead of
What kind of code is this called ? JavaScript ?
exactly, after effects uses javascript in its coding, with some custom functions/objects in it.
@@ighao6032 so after this video , i can do coding in java script ?
@@doityourselfpakistan6535 not necessarily. its just a similar structure.
Make a tut for Fusion and Nuke.
PLS CAN U MAKE EXTENTIONS
how DO I access code that I have already done?
what laungauge is that??
javascript
Hello there
I started editing, because I had free time and didn't want to learn code.
Instant karma
Not every hero wears cape
Thanks!
thank you so much