Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SakugaFlow

Sakugabooru directly in After Effects.
Search, preview, download, and import animation clips without leaving AE.


🎬 About

SakugaFlow is a free unofficial After Effects CEP extension made for reference and editing workflows. It searches Sakugabooru, previews clips, downloads selected files locally, and imports them directly into your After Effects timeline. It also includes AI upscaling powered by Real-ESRGAN.

SakugaFlow is an independent project built from scratch. It shares no code with Sakugaloader and was created with a different structure and feature set. The goal is to provide editors with a lightweight, stable loader regardless of their hardware or software setup.

Note

Compatibility: Supports After Effects CC 2018 through CC 2026+ (v15.0+). Windows primary, macOS untested.


πŸš€ Features

Search & Browse

  • Sakugabooru Search - Search clips by tags with comma-separated queries, pagination, and autocomplete suggestions.
  • Saved Tags - Save frequently used search tags for quick access.
  • Rating Filters - Filter results by rating (safe, questionable, explicit).
  • Recently Added - One-click browse of the latest clips uploaded to Sakugabooru.

Preview & Player

  • Canvas Video Player - Built-in player with playlist support and keyboard navigation (arrow keys, spacebar).
  • Hover Preview - Hover over any card to preview the clip with audio directly in the grid.
  • Full-size Preview - Click any card to open a larger preview with playback controls.

Download & Import

  • One-Click Download - Download individual clips or batch-download multiple selections.
  • Direct Timeline Import - Import downloaded clips straight into your AE composition at the playhead position.
  • Bulk Operations - Select multiple clips and download them all at once.

AI Upscale

  • Real-ESRGAN Integration - Upscale clips using AI with configurable scale factors (2x, 3x, 4x).
  • Queue System - Queue multiple clips, track progress with per-clip status (trim, extract, enhance, encode, done).
  • Render History - View all past upscale renders with quick import and open-folder actions.
  • FFmpeg Pipeline - Automatic frame extraction and video encoding via FFmpeg.

Scene Packs

  • Local Folders - Browse local scene pack folders and import files directly into AE.
  • Multi-Folder Support - Add and manage multiple scene pack directories.

Library

  • Downloaded Clips Manager - Browse, preview, and manage all your downloaded clips in one place.
  • Import from Library - Import any previously downloaded clip back into your timeline.

Customization

  • Card Sizes - Adjust thumbnail card sizes to your preference.
  • Accent Colors - Customize the extension's accent color.
  • Background Images - Set a custom background image with configurable opacity and blur.
  • Glass & Gradient - Toggle glass-morphism panels and gradient overlays.
  • Hover Audio - Enable/disable audio on hover with adjustable volume.

πŸ“¦ Installation

Method 1: ZXP Installer (Easiest)

  1. Pick your After Effects version folder (AE2018 / AE2020 / AE2022).
  2. Download ZXP Installer (Windows & macOS).
  3. Drag SakugaFlow.zxp onto the ZXP Installer window.
  4. Restart After Effects, go to Window > Extensions > SakugaFlow Extension.

Method 2: Windows Setup Wizard (.exe)

  1. Open your version folder and run SakugaFlowSetup.exe.
  2. Follow the setup wizard - it handles file placement and registry keys automatically.

Method 3: Manual Folder Installation

  1. Copy the SakugaFlow folder from your desired version folder to:
    • Windows: C:\Program Files (x86)\Common Files\Adobe\CEP\extensions\
    • macOS: ~/Library/Application Support/Adobe/CEP/extensions/
  2. Enable PlayerDebugMode: double-click Add-Keys.reg or run Add-Keys.bat as admin.
  3. Restart After Effects.

πŸ”§ Building from Source

cd tools && npm install
cd .. && npm run build:all

🀝 Credits & Background

Credit for the original concept of a dedicated Sakugabooru fetcher extension for After Effects goes to the creators of Sakugaloader.

When the concept was first released, I wanted to contribute to its developmentβ€”fixing bugs, optimizing code, and maintaining support for older versions of After Effects. Because collaboration was not possible and support for older AE versions was dropped in the original tool, I decided to build a new alternative from scratch.

This extension is written entirely from the ground up, shares no code with other plugins, and supports CC 2018 through CC 2026.

πŸ” Technical Differences & Codebase Proof

A side-by-side comparison of the codebase files and configurations proves that SakugaFlow is written entirely from scratch with a completely different architecture and features:

1. Directory Structure Comparison

  • Sakugaloader utilizes a single monolithic bundled production file for its logic:
    πŸ“‚ Sakugloader/
    β”œβ”€β”€ πŸ“‚ CSXS/
    β”‚   └── manifest.xml (Locks host version to [18.0, 26.9], dropping CC 2018)
    β”œβ”€β”€ πŸ“‚ client/
    β”‚   β”œβ”€β”€ index.html
    β”‚   β”œβ”€β”€ main.js (233 KB monolithic compiled file)
    β”‚   └── style.css (64 KB)
    └── πŸ“‚ host/
        └── index.jsx (Simple JSX bridge)
    
  • SakugaFlow is designed with a highly modular, readable, component-based architecture:
    πŸ“‚ SakugaFlow/
    β”œβ”€β”€ πŸ“‚ CSXS/
    β”‚   └── manifest.xml (Dynamic host version generated at build time)
    β”œβ”€β”€ πŸ“‚ css/ (Modular CSS sheets: base.css, grid.css, player.css, console.css, etc.)
    β”œβ”€β”€ πŸ“‚ js/
    β”‚   β”œβ”€β”€ πŸ“‚ components/ (searchPanel.js, libraryPanel.js, upscalePanel.js, consolePanel.js, etc.)
    β”‚   └── πŸ“‚ utils/ (downloader.js, fileSystem.js, storage.js)
    └── πŸ“‚ jsx/
        └── host.jsx (Custom native ExtendScript handler)
    

2. Host Version Compatibility (manifest.xml)

  • Sakugaloader's manifest restricts compatibility to newer releases only:
    <!-- Sakugaloader manifest.xml -->
    <Host Name="AEFT" Version="[18.0,26.9]"/>
  • SakugaFlow's build tools inject custom compat manifest files dynamically depending on the build target to support CC 2018 (v15.0) up to CC 2026+ (v99.9).

3. Build & Packaging Automation

  • Sakugaloader lacks automation scripts, requiring manual ZIP compression and certificate generation.
  • SakugaFlow features a customized Node-based build toolchain (tools/build.js) that automates:
    • JavaScript obfuscation (javascript-obfuscator).
    • ExtendScript compiling (jsxbin).
    • Automated ZXP packaging & self-signed certificate generation (zxp-sign-cmd).
    • Automatic Inno Setup installer packaging (ISCC).

4. Codebase Architecture & Scope Isolation

  • Sakugaloader consolidates its logic into a single giant global file (client/main.js, over 8,750 lines) with global scoping:
    let library = loadLibrary();
    let favorites = loadFavorites();
    function init() { ... }
  • SakugaFlow isolates logic to prevent global conflicts. Its root (js/main.js) is only 799 lines, structured in a namespace pattern:
    (function () {
      const App = {
        init() { ... },
        switchTab(tab) { ... }
      };
      window.addEventListener("DOMContentLoaded", () => {
        App.init();
        window.App = App;
      });
    })();
  • ExtendScript Functions: ExtendScript calls are isolated and prefixed under sakugaflowJson and getSelectedSakugaflowLayerFile to prevent conflict with other installed panels, whereas Sakugaloader uses sakugloaderJson.

πŸ’¬ Community


⚠️ Usage Notice

Use responsibly. This extension does not own, host, or license any clips. All rights belong to their original copyright holders. Do not redistribute downloaded clips as packs, sell downloaded content, or claim ownership of any material.


After Effects CEP AI Engine Compatibility

Unofficial tool by Moongetsu. Made for the AMV community.

About

An open-source After Effects Extension for AMV editors to search, download, and upscale Sakugabooru clips directly in After Effects.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages