Here is the listing for generating “Stack mode: Median”
Run “statistics.8ba” shouldn’t be present
await batchPlay(
[
{
_obj: "select",
_target: [
{
_ref: "layer",
_name: "0.6"
}
],
selectionModifier: {
_enum: "selectionModifierType",
_value: "addToSelectionContinuous"
},
makeVisible: false,
layerID: [
572,
574,
576,
578,
580
]
},
{
_obj: "newPlacedLayer"
},
/* {
_obj: "pluginRun",
name: "statistics.8ba",
isFirstParty: true,
$Ijsx: false,
_options: {
dialogOptions: "dontDisplay"
}
},
*/ {
_obj: "applyImageStackPluginRenderer",
imageStackPlugin: {
_class: "$medn"
},
name: "Median",
_options: {
dialogOptions: "dontDisplay"
}
},
{
_obj: "set",
_target: [
{
_ref: "layer",
_enum: "ordinal",
_value: "targetEnum"
}
],
to: {
_obj: "layer",
mode: {
_enum: "blendMode",
_value: "softLight"
}
},
_options: {
dialogOptions: "dontDisplay"
}
}
],{
synchronousExecution: false,
modalBehavior: "execute"
});