PropertyBase obj
- エフェクトグループ・プロパティのアクセスいろいろ
- var effect1 = app.project.item(1).layer(1).effect("Add Grain")("Viewing Mode");
- var effect1again = app.project.item(1).layer(1).effect.addGrain.viewingMode;
- var effect1againtoo = app.project.item(1).layer(1)("Effects").addGrain.viewingMode;
- var effect1againtoo2 = app.project.item(1).layer(1)("Effects")("Add Grain")("Viewing Mode");
- smooth(Loilo)エフェクトの設定 by Index
- var targetLayer=app.project.item(1).layer(1);
- if (targetLayer("Effects").canAddProperty("smooth")){var newEff=targetLayer.property("Effects").addProperty("smooth");newEff.property(1).setValue(true);; //"white option"newEff.property(2).setValue(10);; //"range"newEff.property(3).setValue(1);; //"line weight"
- }else{alert("プラグイン・[ smooth ]を適用できません。" + "\r" + targetLayer.name);
- }
- anti_aliasing(PSOFT)の設定 by Name
- var targetLayer=app.project.item(1).layer(1);
- if (targetLayer("Effects").canAddProperty("anti_aliasing")){var newEff = targetLayer("Effects").addProperty("anti-aliasing");newEff ["color threshold"].setValue(10);newEff ["softness"].setValue(70);newEff ["bias"].setValue(0);newEff ["color key enable"].setValue(true);newEff ["key color"].setValue([1,1,1]); //white
- }else{alert("プラグイン・[ anti_aliasing ]を適用できません。" + "\r" + targetLayer.name);
- }
- エフェクトの無効、削除
- myLayer.property("Effects").property(1).enabled=false;
- myLayer.property("Effects").property(1).remove();
- エフェクトを適用して移動(重ね順)
- var newEff=targetLayer.property("Effects").addProperty("anti-aliasing");
- newEff.moveTo(1);
前のページへ