Register

Auto Wall Companion

An Add-on Module for Foundry Virtual Tabletop

Author: Three Hats Project Source Versions 12+ (Verified 12) Last Updated 1 week, 5 days ago

Auto Wall Companion

A module that enhances wall management by providing tools to import, export, and manage walls.

Features

Usage

Accessing the Tools

  1. Open a scene in Foundry VTT
  2. Select the Walls Tool in the left toolbar
  3. Find the "Wall Import/Export" and "Copy Scene Image URL" buttons in the walls submenu

Importing Walls

Two methods are available for importing walls:

  1. From Clipboard:

    • Copy wall JSON to your clipboard
    • Click the "Wall Import/Export" button
    • Select "Import from Clipboard"
  2. From File:

    • Click the "Wall Import/Export" button
    • Select "Import from File"
    • Choose your wall JSON file

Exporting Walls

Two methods are available for exporting walls:

  1. To Clipboard:

    • Click the "Wall Import/Export" button
    • Select "Export to Clipboard"
    • The wall data will be copied to your clipboard as JSON
  2. To File:

    • Click the "Wall Import/Export" button
    • Select "Export to File"
    • The wall data will be saved as a JSON file named after your scene

Scene Image URL

Important Notes

Scene Padding

For accurate wall positioning, it's recommended to set scene padding to 0 before importing or exporting walls. If padding is not 0, the module will warn you before proceeding.

To adjust scene padding:

  1. Right-click on your scene in the Scenes panel
  2. Select "Configure"
  3. In the scene configuration, set "Padding" to 0
  4. Save changes

Configuration

The module includes settings for log level control, accessible in the Module Settings.

For Developers

Using the API

The module exposes functions on the global AutoWallCompanion object:

// Import walls from clipboard
window.AutoWallCompanion.importWallsFromClipboard();

// Import walls from file
window.AutoWallCompanion.importWallsFromFile();

// Export walls to clipboard
window.AutoWallCompanion.exportWallsToClipboard();

// Export walls to file
window.AutoWallCompanion.exportWallsToFile();

// Copy scene image URL
window.AutoWallCompanion.copySceneImageUrl();

Support

For issues, suggestions, or contributions, please visit the GitHub repository.

Categories

Available Versions

  1. Version 1.0.0

    1 week, 5 days ago
    Foundry Version 12+ (Verified 12) Manifest URL Read Notes