From 70e4bced30134199066753a8e015d707c4be5c68 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Fri, 3 Apr 2026 10:26:47 -0400 Subject: [PATCH] Add README --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..dd012f7 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# AMPP Prefix Stripper + +IronPython 3.4 script for Grass Valley AMPP Framelight X Script Task brick. Removes filename prefixes (the folder path segments) from asset names after they have been organized into virtual folders. + +## Overview + +This script runs **after** the Folder Organizer in the FramelightX asset ingestion pipeline. It removes the prefix and `--` delimiter from the asset name, leaving only the filename. + +## Example + +| Input (AssetName) | Output | +|-------------------|--------| +| `BMG--Videos--Clip1.mp4` | `Clip1.mp4` | +| `NEWS--PKG--Story.mxf` | `Story.mxf` | +| `IMG--4709.jpg` | `4709.jpg` | +| `NoPrefix.mp4` | `NoPrefix.mp4` (unchanged) | + +## Environment + +- **Runtime:** IronPython 3.4 on .NET 8 +- **Available Objects:** `httpClient` (ScriptHttpClient), `job` (ScsJob), `asset` (ScriptAsset), `logger` (ScriptLogger) +- **Workflow:** Part of the FramelightX asset ingestion Script Task chain + +## Deployment + +Place this script **after** the Folder Organizer and typically **before** or **after** the Proxy Generator, depending on whether you want the proxy name to reflect the original or stripped name. + +## Notes + +- The script is safe to run on assets without prefixes — they pass through unchanged. +- The stripping is performed on the asset's metadata name, not the filename on disk. +- Works in tandem with the Folder Organizer script for the complete prefix-based organization workflow.