# Repeat Last Pixel

**URL:** <https://forum.logik.tv/t/repeat-last-pixel/6103>\
**Category:** Flame Questions\
**Tags:** batch\
**Created:** [June 17, 2022, 2:55pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103 "2022-06-17T14:55:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [June 17, 2022, 2:55pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/1 "2022-06-17T14:55:15Z")

</div>

Hi All

When I shrink something in 2d transform, I can repeat the last pixel out to create a nice neat edge on the fill. Like the attached image. I would like to do this with an image I have tracked. Can you think of how I can do this? The extrapolation in flame isnt quite doing it since it gives mirror repeat and Pixel Spread have some aberration to do with the filtering.

 ![repeat](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/c/c44ba8085a4cf84dbfe6dfaf1171c2a2f5c029a1.jpeg)

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [June 17, 2022, 3:16pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/2 "2022-06-17T15:16:28Z")

</div>

Diffuse ?

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [June 17, 2022, 3:24pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/3 "2022-06-17T15:24:01Z")

</div>

Tell me more

---

<div class="post-metadata">

**Author:** ![kirk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/kirk/32/151_2.png) [@kirk](https://forum.logik.tv/u/kirk)\
**Post date:** [June 17, 2022, 3:26pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/4 "2022-06-17T15:26:37Z")

</div>

Is it too late to just expand your canvas in 2d transform with repeat last on and then feed that in as your front?

I don’t remember offhand what effect changing the resolution of an already tracked bilinear will have, but I assume it won’t be great. It may be something you can fix by messing with the surface UVs.

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [June 17, 2022, 3:35pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/5 "2022-06-17T15:35:32Z")

</div>

You can repeat diffuse maps in action.

---

<div class="post-metadata">

**Author:** ![BrittCiampa](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@BrittCiampa](https://forum.logik.tv/u/BrittCiampa)\
**Post date:** [June 17, 2022, 3:40pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/6 "2022-06-17T15:40:28Z")

</div>

I think it’s just tile and mirror repeat though randy, no last pixel repeat that I could see

---

<div class="post-metadata">

**Author:** ![BrittCiampa](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@BrittCiampa](https://forum.logik.tv/u/BrittCiampa)\
**Post date:** [June 17, 2022, 3:44pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/7 "2022-06-17T15:44:50Z")

</div>

I’ve done something like this before, just making your bigger canvas in 2d transform before it gets piped into action, then using the edit track channel function under the vertices of the bilinear or perspective surface to just change one frame of the corner pins so they’re pinned where they need to be and remain there without ditching all my shape keyframes or having to adjust every keyframe again. Results will certainly vary.

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [June 17, 2022, 3:59pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/8 "2022-06-17T15:59:15Z")

</div>

Sadly, I have to agree for now - in photoshop it just stretches out the last pixel - I feel sure I stumbled across a way to replicate this in flame…but I can remember for now.

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [June 17, 2022, 4:08pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/9 "2022-06-17T16:08:01Z")

</div>

You can do this with replicate. It’s a little convoluted, but I’ll try to explain.

Add a replica node to the image.  
Set replications to 100  
Set z position to -1  
Go to the priority menu, select all layers and select z sort  
return to replica and set z translation back to 0  
adjust scale in the replica menu to taste. small increments are best. It might take some math to figure out what the value should be to replicate just the last pixel.

If you don’t like the fact that it scales unevenly in x and y, then go to the y scale in animation and add this expression: ((x-100)\*[aspect ratio])+100. So if it was a normal HD image, [aspect ratio] would equal 1.7778. Turn proportional scaling off.

---

<div class="post-metadata">

**Author:** ![hildebrandtbernd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/hildebrandtbernd/32/3038_2.png) [@hildebrandtbernd](https://forum.logik.tv/u/hildebrandtbernd)\
**Post date:** [June 17, 2022, 8:12pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/10 "2022-06-17T20:12:35Z")

</div>

Expanding the resolution and painting the edges mostly is way faster than trying to find some technical solution

---

<div class="post-metadata">

**Author:** ![GPM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/gpm/32/4224_2.png) [@GPM](https://forum.logik.tv/u/GPM)\
**Post date:** [June 17, 2022, 10:26pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/11 "2022-06-17T22:26:31Z")

</div>

I actually made a simple little rig in Action a couple months ago that does exactly this procedurally. Someone had asked similar in another post and I posted the setup of you want to find it. Or I can send it when I get back in town Monday.

---

<div class="post-metadata">

**Author:** ![GPM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/gpm/32/4224_2.png) [@GPM](https://forum.logik.tv/u/GPM)\
**Post date:** [June 17, 2022, 10:27pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/12 "2022-06-17T22:27:21Z")

</div>

Because yes, unfortunately diffuse only has tile and mirror.

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [June 18, 2022, 8:08am UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/14 "2022-06-18T08:08:34Z")

</div>

Natch

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [June 18, 2022, 9:34am UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/16 "2022-06-18T09:34:27Z")

</div>

This is more or less what I ended up doing thanks.

It’s a good workaround. I’m also keen to try @ytf replicate trick too!

And @GPM would enjoy seeing your solve.

Every day is a learning day.

Many thanks.

---

<div class="post-metadata">

**Author:** ![cicero](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@cicero](https://forum.logik.tv/u/cicero)\
**Post date:** [June 18, 2022, 2:18pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/17 "2022-06-18T14:18:04Z")

</div>

@johnt I think @GPM is referring to this which he kindly took time to build for me a few months ago:

> [@Crash zoom transitions](https://forum.logik.tv/t/crash-zoom-transitions/5257/12):
>
> Franz, I think I have the solution (or at least a solution) for you, which you should be able to use no problem in Action TL transitions (though I haven’t tried it there). I’m attaching a Batch from 2021.1.1, as well as just an Action with no media inputs. It’s just adding a left, right, top, bottom surface around the unaffected center surface. Then gmasking off each exterior image (in this case HD rez) until there is only a 1 pixel sliver edge on each of the sides. Then with an axis offset …

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [June 18, 2022, 6:25pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/18 "2022-06-18T18:25:24Z")

</div>

If your transform is in a single axis you could always still use 2D transform…

This was an hd source into a UHD backplate with an planar track driven transform from action. Just copy and paste the relevant transform data, manually set the output resolution to match the backplate size and set to last.

![Jun-18-2022 11-22-57](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/7/773b19841aa2b8b36dbd0c7a7efd59c607259547.gif)

Best,  
Chris

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [June 18, 2022, 6:29pm UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/19 "2022-06-18T18:29:55Z")

</div>

I imagine this might work on a bilinear etc with uv adjusted if 2d transform added after the fact. I’ve changed canvas size after setting bilinear. Note to self to try.

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [June 19, 2022, 5:59am UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/20 "2022-06-19T05:59:12Z")

</div>

Well if you want to add surface transforms like bilinear or whatnot, track the surface into place, distort it with whatever surface type you want, then make a copy of the surface with all the axis transforms included and assign it to a uv action output only. Make sure to hide it from your comp output.

View the UV output and expand the copied surface’s extents with a stupid high number so that the uv’s of that surface cover the whole rendered frame.

Add a Uv transform matchbox (or whatever it’s called), plug your original surface in and you should have exactly what you’re after.

![Jun-18-2022 22-51-31](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/f/f89901444d5ee8e7882a28d8b70a41a196d229f8.gif)

One extra node really.

Best,  
Chris

---

<div class="post-metadata">

**Author:** ![GPM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/gpm/32/4224_2.png) [@GPM](https://forum.logik.tv/u/GPM)\
**Post date:** [June 19, 2022, 8:33am UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/21 "2022-06-19T08:33:29Z")

</div>

Whoa, Rube Goldberg! 🙂

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [June 19, 2022, 8:59am UTC](https://forum.logik.tv/t/repeat-last-pixel/6103/22 "2022-06-19T08:59:55Z")

</div>

Mint

[Next page](https://forum.logik.tv/t/repeat-last-pixel/6103.md?page=2)
