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.
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
His explanations are the easiest out there!!
Thank you so much !!
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
I appreciate a lot your time, your dedication, your knoledge and your willing to share this amazing content to us! Thank you so much!
I greatly appreciate for dedicating your time and effort to create this video.
thank you for this! love your teaching style and the little exercises you include
one of the best channels I discovered ever, thank you for your time, great teacher!💯👌🙏🙏🙏🙏
this SIR , is a miracle, thank you very much.
Terrific introduction to expressions. Am halfway through. Much appreciated!
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;
This was incredible definitely need more of this!
Thank you very very much.
You saved us so much time
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.
Amazed. Keep it up. Thanks for creating quality content.
Amazing stuff! Thank you very much for sharing!
Incredibly well explained man. Keep it up!
This kind of tutorial is really cool!
awesome and simple ... continue
Thank you for a fantastic tutorial!
I love your Videos man! Keep up the good work ;)
best video I ever saw
wow!!!!! Thank you so much sir.
Thank you sir for this tutorial
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!!
This is amazing. Thanks a lot
Thanks!
Thank you so much! :)
@@ClearCodedoes the === also work on after effects scripting?
million thanks sir
Looks cool!
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.
wow what a legend
Your the best! Thanks
Thanks many many much more ,,,, ....
THANKS!!!
At 2:28 it says Command Click on Mac, it's actually Option Click on Mac
thank you very mush
Now I gotta get the app
Not that easy, AE is like $300 a year
@@isaacparker3593 crack
@@madeinhvn Isn't that wrong!!!
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)
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
PLS CAN U MAKE EXTENTIONS
Make a tut for Fusion and Nuke.
how DO I access code that I have already done?
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.
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