# \[Extension\] Link Duplicate Cels

**URL:** <https://community.aseprite.org/t/extension-link-duplicate-cels/24487>\
**Category:** Scripts & Extensions\
**Created:** [January 30, 2025, 3:47am UTC](https://community.aseprite.org/t/extension-link-duplicate-cels/24487 "2025-01-30T03:47:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arecher](https://community.aseprite.org/user_avatar/community.aseprite.org/arecher/32/23749_2.png) [@Arecher](https://community.aseprite.org/u/Arecher)\
**Post date:** [January 30, 2025, 3:47am UTC](https://community.aseprite.org/t/extension-link-duplicate-cels/24487/1 "2025-01-30T03:47:51Z")

</div>

Created this small extension for some functionality I was missing while working on some larger animations. I thought it might come in useful for others as well, so I decided to pack it up nicely and release it. I hope it comes in helpful!

# Link Duplicate Cels - [Download](https://ko-fi.com/s/4dee65cee5)

**Link Duplicate Cels** simply adds context menu options to **detect all cels in the timeline that have exact-match (duplicate) images, and links them together**. That saves you from having to go through dozens of frames, and selecting the cels one by one before linking them. Helpful when you’ve forgotten to put a layer on continuous, or you have frequently repeating frames in your animation.

# New Functionality

The plugin adds three new context-based options:

1. **Link Duplicate Cels on Layer** : Link all duplicate cels found on the selected layer, or any sublayers if this layer is a Group.  
 ![link_duplicate_cels_on_layer](https://community.aseprite.org/uploads/default/original/3X/1/1/1140a2b82790d115cadaddcc9d627ae1ae45fc0f.gif)  
_layer context menu \> link all duplicate cels_

2. **Link Duplicates of Cel** : Link all cels that are duplicates of the currently selected cel.  
 ![link_duplicates_of_cel](https://community.aseprite.org/uploads/default/original/3X/f/7/f7f43a8c3fef186a0e7db312bde778643a7a0cd5.gif)  
_cel context menu \> link duplicates of cel_

3. **Link Duplicate Cels in Sprite** : Link all duplicate cels in the entire sprite. Equivalent to calling ‘link all duplicate cels’ on each layer.  
 ![link_duplicate_cels_in_sprite](https://community.aseprite.org/uploads/default/original/3X/1/9/1968330cf4a1930fd5e1336df90c581124520b45.gif)  
_frame \> link all duplicate cels_

---

<div class="post-metadata">

**Author:** ![Arecher](https://community.aseprite.org/user_avatar/community.aseprite.org/arecher/32/23749_2.png) [@Arecher](https://community.aseprite.org/u/Arecher)\
**Post date:** [February 3, 2025, 10:56am UTC](https://community.aseprite.org/t/extension-link-duplicate-cels/24487/2 "2025-02-03T10:56:46Z")

</div>

**Bugfix** : Cels with the exact same image at a different position no longer get incorrectly flagged to be linked with one another.

_Bit of an embarrassingly dumb oversight on my part!_

---

<div class="post-metadata">

**Author:** ![Arecher](https://community.aseprite.org/user_avatar/community.aseprite.org/arecher/32/23749_2.png) [@Arecher](https://community.aseprite.org/u/Arecher)\
**Post date:** [November 4, 2025, 8:34pm UTC](https://community.aseprite.org/t/extension-link-duplicate-cels/24487/3 "2025-11-04T20:34:40Z")

</div>

Released **Version 1.1.0** of **Link Duplicate Cels**  
_A small update to add some additional convenience and a slight reorganization of the script. The 1.1 release is now the recommended version of the extension, but updating from 1.0 isn’t required._

▸All commands now respect the user’s Range selection in the Timeline, and will only link cels within that selection.  
_Keep in mind that when using ‘Link Duplicates of Cel’ with a range selected, the last **selected** cel is the one that will be checked for, not the cel that is visually clicked in the Timeline._  
▸Cels with excess transparent space around their image are now also linked.  
▸The extension no longer causes ‘empty’ undoable events, if it didn’t find any cels to link.  
▸Adjusted script structure to avoid the extension being able to call functions inside other extensions (and vice versa), if they used the same naming.
