Replicate Cinema 4D’s Shader Effector in After Effects

*This tutorial was recorded by Jason Hadley, check out his work!!*

Here’s a tutorial on a simple expression that replicates the Cinema 4D’s Shader Effector in After Effects to get you some really cool results.

The example:

The expression:

 thisComp.layer(“xxx”).sampleImage([transform.position[0],transform.position[1]],[2,2]) 

1st Hexagon Transform:

x = 150% of Radius

y = 85% of Radius

2nd Hexagon Transform:

x only: 300% of radius 

Again, if anyone has any questions, feel free to ask.

Sources:
sampleImage() Expression
Illustrator Hexagon Tiling

Other tutorials

  • ForceCrashandSave
  • AEHotkeys
  • BGRenderingWithMediaEncoder
  • Matt Larson

    Thanks for this tutorial, I’m new to C4D but love the idea of using the shader-like effector in AE so I’ve been looking for a way to do this.

    I’m hoping to be able to take the number value from the gradient RGBA that your script finds and use it to affect position. When I try it, I get an expression error about the array for position needing to be a value of 2 instead of 4, which makes sense.

    Do you have a recommendation on how to pull out the individual array values so they can be used discreetly? I plan on using black and white mattes, so any of the 1st 3 values would work.

    Thanks!