Add README

This commit is contained in:
Zac Gaetano 2026-04-03 10:26:47 -04:00
commit 70e4bced30

32
README.md Normal file
View file

@ -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.