Guys in this lecture I will introduce you to the expression the regular expression will turn somehow
random values.
And it's very much you used to wiggle something to make it move left and right up and down whatever.
And they kind of randomly We stayed in the project.
Expressions that started that a b.
Please open the file.
And then within this project go to the composition interpellation rotation Tylene year and it's over
here.
Now we have a kind of a speedometer here.
And our aim is to wiggle this needle if you like.
We wanted to go left and right in a random way.
And the best way to do that is to use the expression that's open the rotation now at and click on the
stopwatch go to the arrow over here and go to property.
You'll find that you have wiggle and you have temporal wiggle.
So it has five parameters here the frequency the amplitude the octaves the amplitude multiplier and
the time we are all interested and we are going to work with the first two the frequency and the amplitude.
So click and selected and delete everything.
The frequency is the number of times per second.
You want a value to be returned to the rotation.
So for example let's say two values.
What is the amplitude the amplitude is like how much you want to wiggle.
Let's say if you give it 100 it will wiggle 100.
So some confusion about the concept here.
The 100 is not minus 100 plus 100 actually.
This is amplitude is going to wiggle 100 Binik is going to be going from zero to 50 and from zero to
minus 50 and you have 50 down 50 up.
The total is 100.
I will show you how it works.
Let's play the animation.
Notice how it's wiggling it's not going to minus 100 and it's not going to plus 100 is just getting
values in between.
Now this is very nice.
It's wriggling but it's not exactly what you want.
How do you discover or find out what are the values that we get is returning to that question.
Well it's very easy.
I would like you now to go to your graph editor and in the graphic designer you most probably don't
see anything.
Select the rotation and you're not saying you have the wiggle expression see the values and the graph
of the expression you come to the small I can hear short post expression graph.
So it will show you the graph after the expression if you click on it are highlighted.
Now you can see the values provided that you are in the value graph.
If you go to a speed graph it's going to show you another kind of graph which will then notice of course
the speed.
So let's go to the value graph.
And these are the values that has been returned by the get.
Well guys you see these values have been returned and that's it.
They are never going to change.
It's not a random value every time prices respond.
These values will change.
No.
These values are set as soon as you put the wiggle expression.
If you play now you will notice how it's working actually.
Let's come over here.
And if you remember we put to one.
Is the amplitude.
So it is minus 50 and it is plus 50 over here.
I don't know if you can see it.
The amplitude goes from minus 50 to 50 which makes it 100.
Of course if you take the absolute value.
So the space that is wiggling in between is 100.
It is not from zero to minus 100 and from zero to plus 100.
So now the minimum amplitude here the negative one is around minus six.
So over here it even went beyond the minus 50 or the 100.
And the maximum amplitude is just over here I can see it on the graph.
It is 45.
So actually there's always going to wiggle from minus 50 to 50.
In concept we have a small value here on top and that's it.
Logically you would say that we get 90.
So it goes minus 90 plus 90.
It doesn't work like this.
If you want minus 90 to 90 then you have to wiggle one hundred eighty.
And yet this one even when not what.
Let's look at it at one hundred eighty and not as it went out already.
We've got the graph and your lowest point here is minus 101.
Much more then the half.
It does happen.
This is the object of the vehicle to give you some kind of roundups.
In our case here it would be very good if you put for example 150.
OK go to the graph here.
This is the maximum.
I'm cool with it.
Look at the needle.
And then I go up here Matt.
Cool fine.
So this really is pretty cool.
I'm happy from the values.
Let's go back to the Spirograph and you have a different kind of graph with the speed and not see how
jumping up very fast then go back slow.
And so on.
So this is the wiggle demystified and it give us a chance to work with the post expression.
Now what we're likely to do here is to go back and write this expression in the rotation because in
the next texture we are going to interpolate with the small not all that.
Thank you for listening.
We'll see you in the next election.