【AE表达式】根据摄像机的角度,将3D层透明化

https://videolancer.net/transparency-3d-layer-depending-on-the-angle-of-the-camera/

适用于不透明度参数。尽如果用于其他参数,请改变endVal和startVal行中的值。

例如,要改变图层的大小,需要写上[X, Y]的数值。

endVal = [100,100];

startVal = [150,150]。

 

【AE表达式】根据摄像机的角度,将3D层透明化

endVal = 100; // Value if the layer is facing the camera
startVal = 0; // Value if the layer is at an angle
fadeAngle = 90; // The angle at which the maximum influence on the value
v = toCompVec([0,0,1]);
d = length(toWorld(anchorPoint),thisComp.activeCamera.toWorld([0,0,0]));
c = v[2]/d;
ease(c,Math.cos(degreesToRadians(fadeAngle)),1.0,startVal,endVal)

 

给TA充电
共{{data.count}}人
人已充电
AEAE表达式

【AE表达式】文字丝滑坠落

2021-12-14 15:37:56

AEAE文章AE表达式

【AE表达式】根据与相机的距离,缩放3D图层

2021-12-14 15:42:07

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
今日签到
搜索