Skip to main content
Participant
December 14, 2022
Question

Animate a procedural texture only on when frames change

  • December 14, 2022
  • 1 reply
  • 146 views

Hello !

 

I'm making my 2D graduation short movie, and I would like to use some procedural texture (with fractal noise as a track matte) on my main character.

For now, the texture moves with a randomize expression on the Evolution of the fractal noise, and a posterize time to make it fit the global framerate of my movie.

But I was wondering how I could make it move only when the frames of my animation change ?

Cause my main character is often static, and I don't really like when the texture moves but not the character.

Is there a way to automate that or do have I to make it stop and move again frame by frame ?

 

Thank you very much for reading and helping me !

 

Pauline

 

PS : I know the director Bastien Dubois did something similar in "Souvenirs Souvenirs" (textures move only when characters move) but I think I don't have enough knowledges in AE to guess by myself how he did it.

This topic has been closed for replies.

1 reply

Mylenium
Legend
December 14, 2022

Your could apply a

 

if(thisComp.layer("XYZ").transform.postion.velocity == 0)
{0}
else
{posterizeTime(5)}

 

or similar, but the caveat here is that in fact you may need to integrate the values in some way as described here:

 

http://www.motionscript.com/articles/speed-control.html

 

or else it always resets to its default and starts over again. For longer segments that may not be an issue, but for shorter ones viewers would certainly see the repeating cycles. you could also tie in a slider that provides some base offsets, so it doesn't become that obvious.

 

Mylenium