# Matchbox shader Help

**URL:** <https://forum.logik.tv/t/matchbox-shader-help/5694>\
**Category:** Flame Questions\
**Tags:** matchbox\
**Created:** [April 29, 2022, 2:04am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694 "2022-04-29T02:04:41Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![drewd](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@drewd](https://forum.logik.tv/u/drewd)\
**Post date:** [April 29, 2022, 2:04am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/1 "2022-04-29T02:04:41Z")

</div>

I’ve just built/hacked my first shader but I have one annoying thing I can’t figure out… How do I get the shader “Canvas Resolution” to default to “Same As Input 1”. Seems all the other shaders do this but mine defaults to “User Defined”

Thanks,

---

<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:** [April 29, 2022, 2:16am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/2 "2022-04-29T02:16:57Z")

</div>

Dunno, but I’m glad to hear someone is working on MX!

---

<div class="post-metadata">

**Author:** ![drewd](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@drewd](https://forum.logik.tv/u/drewd)\
**Post date:** [April 29, 2022, 2:25am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/3 "2022-04-29T02:25:03Z")

</div>

I’d call it more “borrowing” than working. It’s taken me ten days to do something that anyone savvy with glsl would knock out in half an hour!

---

<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:** [April 29, 2022, 2:28am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/4 "2022-04-29T02:28:24Z")

</div>

Well Ivar took a bit to ramp up too, starting from no knowledge…

---

<div class="post-metadata">

**Author:** ![drewd](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@drewd](https://forum.logik.tv/u/drewd)\
**Post date:** [April 29, 2022, 2:34am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/5 "2022-04-29T02:34:17Z")

</div>

True. It was his code I borrowed from the most

---

<div class="post-metadata">

**Author:** ![andy\_dill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andy_dill/32/47_2.png) [@andy\_dill](https://forum.logik.tv/u/andy_dill)\
**Post date:** [April 29, 2022, 3:01am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/6 "2022-04-29T03:01:27Z")

</div>

if any of the logik shaders do what you want, the code itself is visible so you can copy it from there.

…says someone who has no idea if that is useful or obvious or anything.

---

<div class="post-metadata">

**Author:** ![andymilkis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andymilkis/32/11067_2.png) [@andymilkis](https://forum.logik.tv/u/andymilkis)\
**Post date:** [April 29, 2022, 3:24am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/7 "2022-04-29T03:24:30Z")

</div>

@Epouliot have you ever seen this?

---

<div class="post-metadata">

**Author:** ![drewd](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@drewd](https://forum.logik.tv/u/drewd)\
**Post date:** [April 29, 2022, 3:36am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/8 "2022-04-29T03:36:17Z")

</div>

Thanks Andy,

That’s most of what I’ve done - copy code. I can’t work out if it’s the glsl file/s or the xml sidecar that’s the issue. I’ve compared it to a few other ‘working’ matchboxes and I can’t see anything different but I have gone a bit crosseyed from all the code - god I thought my eyes hurt staring at pixels all day, coding is something else!

---

<div class="post-metadata">

**Author:** ![andy\_dill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andy_dill/32/47_2.png) [@andy\_dill](https://forum.logik.tv/u/andy_dill)\
**Post date:** [April 29, 2022, 3:56am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/9 "2022-04-29T03:56:58Z")

</div>

I’ve been there. I tried to make a matchbox that was JUST an XML sidecar to drive variables. It was very difficult for me and I definitely could not do it error free today.

---

<div class="post-metadata">

**Author:** ![drewd](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@drewd](https://forum.logik.tv/u/drewd)\
**Post date:** [April 29, 2022, 4:05am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/10 "2022-04-29T04:05:35Z")

</div>

Me too! I tried the Zigmod thingy years ago, got it working on linux but never on Mac. It always bugged me so I finally decided to get my hands dirty and build a proper matchbox. Its just a clean screen/object obliterator. I use it ALL the time and got sick of stacking multiple little batches together. I’ll share what I have - it works with the option of proportional and seperate X & Y. Need to add a matte shrink.

Mmm, where the upload matchbox button…?

---

<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:** [April 29, 2022, 4:08am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/11 "2022-04-29T04:08:58Z")

</div>

Please tell me about your OBJECT OBLITERATOR.

---

<div class="post-metadata">

**Author:** ![drewd](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@drewd](https://forum.logik.tv/u/drewd)\
**Post date:** [April 29, 2022, 4:13am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/12 "2022-04-29T04:13:26Z")

</div>

It’s the batch setup Renee Tymn @digitalbanshee uploaded to the logik portal. I just wanted to package it up into a matchbox so I could stack it like you do in Nuke when building a clean plate. It’s super handy but you may be underwhelmed!

---

<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:** [April 29, 2022, 4:14am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/13 "2022-04-29T04:14:01Z")

</div>

Shoot. I thought it was a cannon.

---

<div class="post-metadata">

**Author:** ![drewd](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@drewd](https://forum.logik.tv/u/drewd)\
**Post date:** [April 29, 2022, 4:15am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/14 "2022-04-29T04:15:06Z")

</div>

Sometimes you need a canon, sorry this isn’t one

---

<div class="post-metadata">

**Author:** ![PlaceYourBetts](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/placeyourbetts/32/6852_2.png) [@PlaceYourBetts](https://forum.logik.tv/u/PlaceYourBetts)\
**Post date:** [April 29, 2022, 8:01am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/15 "2022-04-29T08:01:44Z")

</div>

This is going to be brilliant @drewd

Not a bad matchbox to start you off 👍

Kudos to you mate.

Have you been dabbling in Python as well?

---

<div class="post-metadata">

**Author:** ![Lightningad](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/lightningad/32/2191_2.png) [@Lightningad](https://forum.logik.tv/u/Lightningad)\
**Post date:** [April 29, 2022, 8:18am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/16 "2022-04-29T08:18:48Z")

</div>

I doff my cap to you @drewd ! Thats a worthy achievement.

I was looking at that shaderthing website just the other thinking i had an idea to try…but quickly ran in the opposite direction when i saw just how much i had no clue about…and code? Last time i used code it was BASIC over 30 yrs ago.  
 ![Hat Cap GIF by Mondo Cozmo](https://media1.giphy.com/media/3oriO6fA9Ke9FiG544/giphy.webp?cid=67804a9b525vte3ph25hv9y0bw1ryi1qhyl5ffpg3zukwo56&rid=giphy.webp&ct=g)

---

<div class="post-metadata">

**Author:** ![drewd](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@drewd](https://forum.logik.tv/u/drewd)\
**Post date:** [April 29, 2022, 11:01am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/17 "2022-04-29T11:01:16Z")

</div>

I did a python course over lockdown. Really enjoyed the challenge but damn easy to forget! If anything it’s helped to understand the general logic and structure of coding so looking at glsl, it feels much the same.

---

<div class="post-metadata">

**Author:** ![drewd](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@drewd](https://forum.logik.tv/u/drewd)\
**Post date:** [April 29, 2022, 11:09am UTC](https://forum.logik.tv/t/matchbox-shader-help/5694/18 "2022-04-29T11:09:29Z")

</div>

Thanks. The biggest achievement for me was persistence. I’m not kidding when I say I know very little maths, I just had to compartmentalise.
