# Flicker

**URL:** <https://forum.logik.tv/t/flicker/6934>\
**Category:** Flame Questions\
**Tags:** batch\
**Created:** [October 14, 2022, 2:38pm UTC](https://forum.logik.tv/t/flicker/6934 "2022-10-14T14:38:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justint](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@Justint](https://forum.logik.tv/u/Justint)\
**Post date:** [October 14, 2022, 2:38pm UTC](https://forum.logik.tv/t/flicker/6934/1 "2022-10-14T14:38:24Z")

</div>

Hey guys I was wondering if there is a way of linking the camera shake aspect of the 2d transform to a colour correct node to drive some flicker. I am sure it can be done with expressions but I am hopeless with those. Thanks in advance jt

---

<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:** [October 14, 2022, 2:41pm UTC](https://forum.logik.tv/t/flicker/6934/2 "2022-10-14T14:41:31Z")

</div>

Sadly, I don’t think the camera shake node can be linked to anything. You can probably make a random number expression on a colour node, but I think there may be a matchbox out there that already does this.

---

<div class="post-metadata">

**Author:** ![Justint](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@Justint](https://forum.logik.tv/u/Justint)\
**Post date:** [October 14, 2022, 3:01pm UTC](https://forum.logik.tv/t/flicker/6934/3 "2022-10-14T15:01:31Z")

</div>

Damn I thought might be really good for that. Are you referring to a flicker match box?

---

<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:** [October 14, 2022, 3:13pm UTC](https://forum.logik.tv/t/flicker/6934/4 "2022-10-14T15:13:25Z")

</div>

It would be good for a lot of things, but the shake data is not available as an animation channel. There is a croc matchbox for flicker. [Shader: crok\_flicker](https://logik-matchbook.org/shader/crok_flicker)

---

<div class="post-metadata">

**Author:** ![Justint](https://avatars.discourse-cdn.com/v4/letter/j/3da27b/32.png) [@Justint](https://forum.logik.tv/u/Justint)\
**Post date:** [October 14, 2022, 3:18pm UTC](https://forum.logik.tv/t/flicker/6934/5 "2022-10-14T15:18:48Z")

</div>

Cool thanks for that

---

<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:** [October 14, 2022, 4:00pm UTC](https://forum.logik.tv/t/flicker/6934/6 "2022-10-14T16:00:16Z")

</div>

Mimic link a copy of the 2d transform and feed a shape you can track, feed that output to a gmaskTracer or action and track it, use the resulting curves to drive your flicker.

Convoluted? Yes.

---

<div class="post-metadata">

**Author:** ![Sinan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/sinan/32/155_2.png) [@Sinan](https://forum.logik.tv/u/Sinan)\
**Post date:** [October 14, 2022, 4:36pm UTC](https://forum.logik.tv/t/flicker/6934/7 "2022-10-14T16:36:06Z")

</div>

Here’s a generic noise function you can use with expressions. You should create a “Variables” matchbox in action or batch. I’ll write it as the whole expression is inside an action node:

your\_channel = noise ( frame / Variables1.Variables.var01 ) \* Variables1.Variables.var02 + Variables1.Variables.var03

Variables1.Variables.var01 = Frequency. A value of 25 -30 makes the result fluctuate about once per second (in PAL)  
Variables1.Variables.var02 = Amplitude. Since the noise function returns values between -1 and +1 we want to multiply this value to get to our intended range  
Variables1.Variables.var03 = Offset. Some parameters require positive values, like transparency so we need to offset the noise value.

You can also create a noise function for a vector, like position, rotation, scale, RGB…

your\_vector\_channel = noise3 ( frame / Variables1.Variables.var01 ) \* Variables1.Variables.var02 + (Variables1.Variables.position01\*Variables1.Variables.var04)

The offset value here has to be a vector, so the position variable is used here, and to amplify its effect I multiply it with var04.

Unfortunately the names of the parameters in the Variable matchbox are a bit long and you need to be careful…

---

<div class="post-metadata">

**Author:** ![Raphael](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/raphael/32/2672_2.png) [@Raphael](https://forum.logik.tv/u/Raphael)\
**Post date:** [October 14, 2022, 6:23pm UTC](https://forum.logik.tv/t/flicker/6934/8 "2022-10-14T18:23:54Z")

</div>

Here are some janky ideas. You could always slave (w-click) the 2D transform to another 2D transform and pipe a tracking texture though it to get some the numbers data applicable to the camera shake generator. Or use that slaved 2D transform that has texture that you use the luminance to drive the CC node or add/screen on a comp node.

---

<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:** [October 15, 2022, 6:28am UTC](https://forum.logik.tv/t/flicker/6934/9 "2022-10-15T06:28:04Z")

</div>

Ivar made a little MX for me that might be handy for this, to my very specific needs with 3D cameras in action. Let me try to find it - he never published it publicly.
