PSR重置

// by 熊猫
function sseett(ll)
{
    try{
        //不单独尺寸时
        ll.transform.position.setValue([comp.width/2,comp.height/2,0])   //位置
    }catch(e){
        //单独尺寸时
        ll.transform.xPosition.setValue(comp.width/2);  //x位置
        ll.transform.yPosition.setValue(comp.height/2);  //y位置
        }
    try{
        ll.transform.zPosition.setValue(0);  //z位置
    }catch(e){}//alert (e)}

    ll.transform.scale.setValue([100,100,100])  //缩放

    try{
        //图层3D开关开启时
        ll.transform.xRotation.setValue(0);   //x旋转
        ll.transform.yRotation.setValue(0);   //y旋转
        ll.transform.zRotation.setValue(0);   //z旋转
        ll.transform.orientation.setValue([0,0,0]);
    }catch(e){
        //图层3D开关关闭时
        ll.rotation.setValue(0)  //旋转
        }

}
var comp = app.project.activeItem;
if(comp && comp.selectedLayers.length > 0){
    for(var i = 0 ; i < comp.selectedLayers.length ; i++){

        var layer = comp.selectedLayers[i];
                sseett(layer);
    };
}else{
    alert('您没有选中图层。');
};

给TA充电
共{{data.count}}人
人已充电
AE开发脚本开发

按钮自动换行

2021-7-14 23:16:50

AE开发编程脚本开发

PSR归零

2021-7-14 23:19:08

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