Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,8 @@ Carthage/Build/

# Output directories
output/
tmp/
tmp/
# XcodeGen project and host-specific local paths
/MultiSlicer.xcodeproj/
/build/
/.env.local
34 changes: 34 additions & 0 deletions docs/macos-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# macOS SDK 26.5 development

This migration follows [ae-plugin-template](https://github.com/rebuildup/ae-plugin-template).
The sources and legacy `Mac/` Xcode project remain in place; the generated
root-level `MultiSlicer.xcodeproj` is NOT authoritative.

## Local setup (macOS, Xcode, After Effects 2026)

```sh
# Path must contain Examples/Headers/AE_Effect.h.
printf '%s\n' '/absolute/path/to/AfterEffectsSDK' > .env.local
mise install
mise run sdk-path
mise run build
mise run verify
# Only with After Effects closed and after inspecting the build:
mise run install
```

Build and verification do not modify the After Effects installation.
Installation uses the per-user MediaCore plug-in directory, keeps a backup
of any existing plug-in, and re-signs the copied bundle ad-hoc.
Restart After Effects, apply **MultiSlicer** to a test composition, verify output
and parameter behavior, and record the host version. A successful build or
bundle verification is **not** evidence that the host works.

- `mise run generate`: rebuild the generated Xcode project from `project.yml`.
- `mise run build-release`: build both arm64 and x86_64.
- `mise run verify-release`: inspect the Release bundle.
- `mise run uninstall`: move the installed bundle to a timestamped backup.
- `mise run clean`: delete generated files, not the legacy Mac project.

Keep PiPL match name, registration identifiers and parameter IDs stable.
SDK headers remain external. Developer ID signing and notarization are out of scope.
48 changes: 48 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[tools]
xcodegen = "2.46.0"

[env]
AE_PLUGIN_NAME = "MultiSlicer"
AE_PLUGIN_KIND = "effect"

[tasks.sdk-path]
description = "Print the resolved Adobe After Effects SDK path"
run = "bash scripts/ae-macos.sh sdk-path"

[tasks.info]
description = "Print the plug-in identity declared in the PiPL (name, match name, entry point)"
run = "bash scripts/ae-macos.sh info"

[tasks.generate]
run = "bash scripts/ae-macos.sh generate"

[tasks.build]
run = "bash scripts/ae-macos.sh build Debug"

[tasks.build-release]
run = "bash scripts/ae-macos.sh build Release"

[tasks.verify]
run = "bash scripts/ae-macos.sh verify Debug"

[tasks.verify-release]
run = "bash scripts/ae-macos.sh verify Release"

[tasks.install]
run = "bash scripts/ae-macos.sh install Debug"

[tasks.install-release]
run = "bash scripts/ae-macos.sh install Release"

[tasks.uninstall]
run = "bash scripts/ae-macos.sh uninstall"

[tasks.ae-reveal]
run = "bash scripts/ae-macos.sh reveal"

[tasks.clean]
run = "bash scripts/ae-macos.sh clean"

[tasks.check]
description = "Build and verify locally without installing in After Effects"
run = ["bash scripts/ae-macos.sh build Debug", "bash scripts/ae-macos.sh verify Debug"]
98 changes: 98 additions & 0 deletions project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Native macOS project. XcodeGen output is not source of truth.
# Keep Windows/ and the legacy Mac/ project unchanged during migration.
name: MultiSlicer

options:
bundleIdPrefix: com.adobe.AfterEffects
deploymentTarget:
macOS: "14.0"
createIntermediateGroups: true

settings:
base:
MACOSX_DEPLOYMENT_TARGET: "14.0"
SDKROOT: macosx
CLANG_CXX_LANGUAGE_STANDARD: c++17
CLANG_CXX_LIBRARY: libc++
GCC_SYMBOLS_PRIVATE_EXTERN: YES
REZ_PREPROCESSOR_DEFINITIONS:
- __MACH__
- "$(inherited)"

targets:
MultiSlicer:
type: bundle
platform: macOS
productName: MultiSlicer
product: MultiSlicer.plugin
sources:
- path: MultiSlicer.cpp
- path: MultiSlicer_Strings.cpp
- path: MultiSlicerPiPL.r
- path: Mac/MultiSlicer.plugin-Info.plist
buildPhase: none
- path: "${AE_SDK_ROOT}/Examples/Util/AEGP_SuiteHandler.cpp"
optional: false
- path: "${AE_SDK_ROOT}/Examples/Util/MissingSuiteError.cpp"
optional: false
dependencies:
- sdk: Cocoa.framework
settings:
base:
INFOPLIST_FILE: Mac/MultiSlicer.plugin-Info.plist
PRODUCT_BUNDLE_IDENTIFIER: com.adobe.AfterEffects.MultiSlicer
WRAPPER_EXTENSION: plugin
GENERATE_INFOPLIST_FILE: NO
HEADER_SEARCH_PATHS:
- "$(SRCROOT)"
# The Adobe SDK is third-party code. Passing its include directories via
# -isystem instead of -I keeps the SDK's own warnings out of this build
# log, so a warning here means our code, not the SDK's.
OTHER_CFLAGS:
- "$(inherited)"
- "-isystem"
- "$(AE_SDK_ROOT)/Examples/Headers"
- "-isystem"
- "$(AE_SDK_ROOT)/Examples/Util"
- "-isystem"
- "$(AE_SDK_ROOT)/Examples/Headers/SP"
- "-isystem"
- "$(AE_SDK_ROOT)/Examples/Resources"
OTHER_CPLUSPLUSFLAGS:
- "$(inherited)"
- "-isystem"
- "$(AE_SDK_ROOT)/Examples/Headers"
- "-isystem"
- "$(AE_SDK_ROOT)/Examples/Util"
- "-isystem"
- "$(AE_SDK_ROOT)/Examples/Headers/SP"
- "-isystem"
- "$(AE_SDK_ROOT)/Examples/Resources"
REZ_SEARCH_PATHS:
- "$(SRCROOT)"
- "$(AE_SDK_ROOT)/Examples/Headers"
- "$(AE_SDK_ROOT)/Examples/Util"
- "$(AE_SDK_ROOT)/Examples/Resources"
CODE_SIGN_IDENTITY: "-"
CODE_SIGN_STYLE: Manual
CODE_SIGNING_REQUIRED: YES
CODE_SIGNING_ALLOWED: YES
OTHER_CODE_SIGN_FLAGS: "--timestamp=none"
configs:
Debug:
ONLY_ACTIVE_ARCH: YES
GCC_OPTIMIZATION_LEVEL: 0
Release:
ONLY_ACTIVE_ARCH: NO
ARCHS: "arm64 x86_64"
GCC_OPTIMIZATION_LEVEL: s

schemes:
MultiSlicer:
build:
targets:
MultiSlicer: all
run:
config: Debug
archive:
config: Release
Loading
Loading