Skip to content

Commit f45e893

Browse files
Updated Polymorph Attach Layers page; Enable external links in new tabs
1 parent 445f826 commit f45e893

15 files changed

Lines changed: 733 additions & 22 deletions

docs/Polymorph/Attach-Layers.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
# Attach Layers
22

3-
<video src="../../assets/polymorph/videos/AttachLayers.mp4" width="100%" autoplay loop controls></video>
3+
<video controls width="100%"><!-- poster="video-thumbnail.jpg"> -->
4+
<!-- Video source -->
5+
<source src="/docs/assets/polymorph/videos/Polymorph - Attach Layers - COMPRESSED.mp4" type="video/mp4">
6+
7+
<!-- SRT subtitle track -->
8+
<track
9+
src="/docs/assets/polymorph/videos/Polymorph - Attach Layers.vtt"
10+
kind="subtitles"
11+
srclang="en"
12+
label="English"
13+
default <!-- Optional: Makes this track default -->
14+
>
15+
16+
<!-- Fallback for unsupported browsers -->
17+
Your browser does not support HTML5 video.
18+
</video>
419

520
## Required settings
621

722
- **Parenting of new layers:** New layer parented to target.
8-
- **Target visibility:** Show Target layer.
9-
10-
**Note:** The duplicated Source layers will be positioned to match the Anchor Point of each Target layer. In the example above, the anchor points of each the Target layer has been repositioned between each Target's eyes, so that the sunglasses will be placed in the appropriate position.
23+
- **Target visibility:** Show Target layer.

docs/Polymorph/Inherit-Mask.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Re-Use Character Rigs
22

3-
Video here
3+
!!! note
4+
5+
Coming soon
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Re-Use Character Rigs
22

3-
Video here
3+
!!! note
4+
5+
Coming soon
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Re-Use Character Rigs
22

3-
Video here
3+
!!! note
4+
5+
Coming soon

docs/Polymorph/Physics-Sims.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Re-Use Character Rigs
22

3-
Video here
3+
!!! note
4+
5+
Coming soon
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Re-Use Character Rigs
22

3-
Video here
3+
!!! note
4+
5+
Coming soon

docs/Polymorph/Replace-Layers.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Replace Layers
22

3-
Video here:
4-
53
<div>
64
<div style="position:relative;padding-top:56.25%;">
75
<iframe src="https://www.youtube.com/embed/yXVATehRxJ4" frameborder="0" allowfullscreen
86
style="position:absolute;top:0;left:0;width:100%;height:100%;"></iframe>
97
</div>
10-
</div>
8+
</div>
9+
10+
!!! note
11+
12+
The duplicated Source layers will be positioned to match the Anchor Point of each Target layer.

docs/Polymorph/index.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Additionally, transform properties and layer attributes can be applied to speed
2626

2727
Furthermore, if a source layer is masked, there is no native way for that mask to carry across to Alt-dragged replacements. Polymorph is able to do this, as well as retain the source layer's track matte.
2828

29-
## Some use cases:
29+
## Some use cases
3030

3131
* Replace any number of shape layers with a replacement shape layer.
3232

@@ -42,4 +42,8 @@ Furthermore, if a source layer is masked, there is no native way for that mask t
4242

4343
* Replace shape layers sent over from [**Overlord**](https://battleaxe.co/overlord){:target="_blank"} with pre-comps – quickly layout in Illustrator, then use Polymorph to put assets into position.
4444

45-
* Attach layers to multiple existing layers, by retaining the visibility of targets and parenting duplicates to the targets.
45+
* Attach layers to multiple existing layers, by retaining the visibility of targets and parenting duplicates to the targets.
46+
47+
## Current limitations
48+
49+
If your Source layer has keyframes on inheritable properties (Rotation, Scale, Opacity) or the Position property, they will be removed when applying Polymorph. I plan to add an option to choose to keep Source or Target keyframes in a future update.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
document.addEventListener("DOMContentLoaded", function () {
2+
document.querySelectorAll('a[href^="http"]').forEach(link => {
3+
if (!link.href.includes(window.location.hostname)) {
4+
link.setAttribute("target", "_blank");
5+
link.setAttribute("rel", "noopener noreferrer");
6+
}
7+
});
8+
});

docs/assets/polymorph/.DS_Store

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)