Baileywiki Mass Edit
FoundryVTT module for searching and editing multiple placeables at the same time and storing them as presets to be re-used.
Mass Edit is now Baileywiki Mass Edit! See the announcement in the video below. As part of the transition to the Baileywiki family of content, Mass Edit will be converting to entirely for free. Enjoy!
Note that all keybindings referenced bellow can be changed via 'Configure Controls'
Recommended modules:
- Multiple Document Selection (https://foundryvtt.com/packages/multiple-document-selection)
- Will enable selection of multiple documents in the sidebar
- Mass Edit will recognise these selection for Actors, Scenes, and Journals
Showcases by Foundry community members
- v1.9.1 covered by BaileyWiki YouTube.
- v1.13.0 covered in German by TomVTT YouTube
- Configure TMFX filters with Mass Edit by BaileyWiki YouTube
Editing
Select the placeables you wish to edit and press 'Shift+E'.
You will be presented with the following modified 'Configuration' window:
Common data shared between all placeables will be highlighted as green, differing data as orange, and flags as purple. The newly added checkboxes to the right indicate which fields will be saved on Apply.
In addition to this key-binding Token and Tile HUDs will contain a new button if multiple tokens or tiles are selected which will also open up this modified configuration window.
Search
An alternative to selecting placeables manually is to press 'Shift+F' to open a configuration window which will allow you to perform scene and world wide searches using the selected fields.
Text fields allow the use of wildcards: *
- Goblin*
- *Goblin
- *Go*n*
Copy/Paste
Field can be copied from opened Mass Edit forms using 'Ctrl+C'. Data copied this way can be pasted onto any selected or hovered over placeables using 'Ctrl+V'. Each placeable type has it's own "clipboard" from which data will be pasted. You can also paste this data as plaintext in and out of foundry.
Presets
Any configuration window opened using the module will have a 'Presets' header button. It will open up a window where you can store currently selected fields and re-use them later. Alternatively you can drag in a placeable from the canvas onto the form to create a preset from it.
The window can also be opened using Scene controls
and a keybind (Shift+X
by default)
Short video clip: https://youtu.be/MRjHXc3MJWA
Adding/Subtracting
Numerical fields can be added and subtracted instead of overriding the current value. This can be done by right-clicking the numerical controls in the Mass-Edit form. Green background indicating addition, and red subtraction.
Text fields will instead append or remove the entereed text from all selected placeables. By default appending will be done to the end of the string, but this can be changed by adding >>
to the start of the field.
Brush Tool
This tool can be activated by clicking the brush icon in the header of Mass Edit forms
Once selected your cursor will be transformed into a brush allowing you click and drag over placeables on the canvas to apply fields selected in the form onto them.
The brush can also be accessed via the Preset window
Permission Editing
Note, Token and Actor forms will contain a 'Permissions' header button allowing you to quickly change access permissions.
Macro Generator
Using the selected fields the module will generate simple macros that will update, toggle, delete, or open Mass Edit forms.
Target
Define the target for the generated macro
ALL
- All documents within the selected scopeIDs of Current Selected
- IDs of documents are stored within the macro and will be looked up at run-timeSearch
- A search will be performed within the selected scope using configured fieldsSearch Fields
- A sub-menu made available whenSearch
is selected. Enter key-value pairs to be used in the search
Tagger
- A search will be performed within the selected scope using Tagger module's 'tags'.Tags
- A sub-menu made available whenTagger
is selected. Define a comma separated list of tags to be used in the search.Must Match
- A sub-menu made available whenTagger
is selected. Select whether any one (Any Tag
) or all (All Tags
) tags must be contained within the document for a successful match.
Scope
Limit the scope of documents affected by the macro.
Selected
- Only selected documents at macro run-time will be consideredActive Scene
- All documents in the currently active sceneWorld
- All documents throughout the game world
Action
The action you want the macro to perform on all documents that matched based on Target and Scope
Update
- Updates the documents using the data in the text boxToggle
- Alternates document updates between the data in the two text boxesToggle Detection
- A sub-menu made available whenToggle
is selected. How should the macro determine whether a particular document has been toggle on or off.Field Compare
- Check if the data within the text box matches the documentFlag
- Apply a unique flag to track whether data has been already applied to the document
Open Mass Edit Form
- Opens the Mass Edit form (Shift+E)Delete
- Deletes the documents
In addition to the above, if Update
or Toggle
are selected you'll also get an option to select the matched documents and/or run another macro. Useful if you have macros that require placeables to be under control for them to execute. For example filters in the Token Magic FX compendium.
Randomization and Add/Subtract operators are supported but will add a dependency on Mass Edit
to be active when the macro is run.
Example video:
Example Video
The video bellow shows off Mass Search and Edit being used on various placeables:
Randomization
Randomize any numerical, color, text, image, drop-down, or coordinate values.