Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Offseting position of objects affected by Displacement Map

  • Offseting position of objects affected by Displacement Map

    Posted by Lisa Tanner on November 6, 2014 at 7:19 am

    I’ve got a character rippling with the desert heat as he splits into twins. I’ve applied the heat waves via displacement map on an adjustment layer and it works pretty well, but the displacement map offsets whatever it’s affecting. To cancel this, I ran across the following expression in an old tutorial, and had copied it down for future use, but I can’t for the life of me, remember what layer to apply it to and nothing I’m doing is working. And I can’t find that particular tutorial anymore.

    My note/expression:
    “For pulling displacement maps back to normal position:
    Add Transform Effect and write under position: “value+[ then pick-whip x and y of displacement and close with ]”

    So basically, I don’t know if I should be applying the transform effect to the character or to the adjustment layer. I get an error when I choose the latter.

    Thanks!

    EDIT: For anybody who cares, I dinked around and ended up changing the formula to
    +[effect (pickwhip to x displacement),(pickwhip to y displacement)] which moved the character back into the correct position. Now I’m just stuck with an error message reading, “Transform cannot allocate a buffer larger than 30000 pixels in either direction. (516).” I’ll keep digging.

    Jonathan Alenskas replied 8 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Lisa Tanner

    November 7, 2014 at 1:39 am

    I did a ton of goggling but the error message remains and it won’t RAM preview because whatever “transform” does to the adjustment layer makes it too big.

    Anybody know what I’m doing wrong?

    To recap: Is there an expression I can use to move an object back into position after a displacement map displaces it?

  • Jonathan Alenskas

    August 1, 2017 at 2:28 pm

    Hello

    So I know I am responding like 3 years after you posted this but I found your post cause I was looking for an answer to the same problem. I found it. Firstly the tutorial you spoke of from which you got the formula was most likely Andrew Kramers – https://youtu.be/22N_fXrBAWQ

    I too tried this but it did not work for my purposes so I rewrote it as follows..
    value+[effect(“Displacement Map”)(“Max Horizontal Displacement”),-[effect(“Displacement Map”)(“Max Vertical Displacement”)]]

    Hope this helps someone out there.

    Jonathan Alenskas

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy