Skip to content

Instantly share code, notes, and snippets.

@aescripts
Last active November 27, 2017 14:55
Show Gist options
  • Save aescripts/8a8a25112398459a6b4d9e174ce03721 to your computer and use it in GitHub Desktop.
Save aescripts/8a8a25112398459a6b4d9e174ce03721 to your computer and use it in GitHub Desktop.
Serge Step #AfterEffects #Script #KBar Add solid with Plexus effect
// Add solid with Plexus 2 effect.
var comp = app.project.activeItem;
comp.layers.addSolid([255/255,75/255,0/255],"Plexus",comp.width,comp.height,comp.pixelAspect,comp.duration);
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];
var fx = layer.Effects.addProperty('RWB PLEXUS TWO');
fx.property(String('RWB PLEXUS TWO-0002')).setValue([0]);
fx.property(String('RWB PLEXUS TWO-0004')).setValue([2]);
fx.property(String('RWB PLEXUS TWO-0005')).setValue([500]);
fx.property(String('RWB PLEXUS TWO-0006')).setValue([500]);
fx.property(String('RWB PLEXUS TWO-0008')).setValue([1]);
fx.property(String('RWB PLEXUS TWO-0009')).setValue([2]);
fx.property(String('RWB PLEXUS TWO-0010')).setValue([2]);
fx.property(String('RWB PLEXUS TWO-0011')).setValue([1]);
fx.property(String('RWB PLEXUS TWO-0012')).setValue([1]);
fx.property(String('RWB PLEXUS TWO-0014')).setValue([0]);
fx.property(String('RWB PLEXUS TWO-0015')).setValue([0]);
};
}
@aescripts
Copy link
Author

aescripts commented Nov 27, 2017

Another alternative javascript:

try{
var adjLayer = app.project.activeItem.layers.addSolid([120/255,0/255,255/255], "Plexus", app.project.activeItem.width, app.project.activeItem.height, app.project.activeItem.pixelAspect, app.project.activeItem.duration);
adjLayer.adjustmentLayer = true;
adjLayer.label = 10;
adjLayer.opacity.setValue(100);
adjLayer.effect.addProperty("RWB PLEXUS TWO"); 
}
catch (e) {
alert (e);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment