Home >Common Problem >Detailed explanation of the usage of some expressions commonly used by ae
Detailed explanation of the usage of some commonly used expressions in ae
1. Application of slider expression
Pass slider
in expression control
controls a fixed value change
If you control the random displacement of the change and then let it stop
slider=effects(“SliderControl”)(“Slider”)
Then slider
Do function operations
For example, random function
wiggle(8,slider)
This way you can control the expression. You can also control the adjustment of the camera lens.
2. The use of wiggle
If you are controlling a random function
wiggle(5,40)[0]
The value 0 in the square brackets represents—XYZ is defined in AE as 0 for the X axis and 1 for the Y and 2 for the Z.
5 means dithering 5 times per second, and 40 means dithering 40 pixels each time.
Usually used together with the camera's position (displacement) and point of interest (focus point) to adjust the camera lens.
The jitter expression can also be used to set the jitter with the movement of the mask and the nodes of the puppet tool.
3. Application of smooth expression:
Smooth expression, this is an expression that can smooth the material
smooth() , the default values in the brackets are 0.2 and 5. That is smooth(0.2, 5)
0.2 means – smoothing every few seconds. 5 means – sampling rate, the higher the sampling rate, the smoother it will be.
Smooth expressions are often used when tracking materials.
4. Application of random expression:
Random expression random()
random(1,10) is between 1 and 10 Random values are extracted from time to time. The minimum value randomly extracted is 1 and the maximum value is 10
[layerStyle.gradientOverlay.effect[0],random(5,15)]
This sentence The meaning of the expression is that the first value of gradientOverlay in the layer will not change. effect[0] represents the x value of gradientOverlay.
The common expression analysis of effectAE is the second value, which is the y value. Here, the x value remains unchanged and the y value is random(5,15)
5. Application of loopOut expression:
Loop expression
Basic format: loopOut(type="type",numkeyframes=0)
loopOut(type="pingpong",numkeyframes=0)
This is a pingpong type loop, just Use it like a table tennis ball.
loopOut(type="cycle",numkeyframes=0)
This is a circular type of loop, which loops a set of actions.
loopOut(type="continue")
This is where the computer continues to calculate unfinished motion.
numkeyframes=0
is the number of loops, 0 is an infinite loop, 1 is only looped once, 2 is looped 2 times, and so on.
6. Time expression:
thisComp.layer("").transform.position.valueAtTime(time-a certain value)
The time of the position parameter of the transform attribute of this synthesized layer is delayed by a certain value
For example: thisComp.layer("").transform.position.valueAtTime( time-1)
This expression means that when this synthetic object moves, the movement time is always delayed by 1 second.
7. Index expression:
Transparency parameter opacity, fill in index*20 to make the transparency value 20%
If you change the image Layer into a three-dimensional layer, for the position parameter, fill in position[0], positionAE common expression analysis, index*2, this is you are constantly copying the same layer, the picture in the layer will continue to move in the direction of the z-axis. A 2-pixel copy ultimately creates an effect similar to a three-dimensional object.
Although the exponential expression is relatively rarely used, it is still very powerful and can make the picture become a three-dimensional effect.
8.x=thisComp.layer("Trajectory").transform.position[0]-thisComp.width/2;
##x/thisComp .width
The above is the detailed content of Detailed explanation of the usage of some expressions commonly used by ae. For more information, please follow other related articles on the PHP Chinese website!