Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Camera Position Changing Every Time New Layer Is Added?

  • Camera Position Changing Every Time New Layer Is Added?

    Posted by Bradley Kus on August 28, 2018 at 7:33 pm

    I’ve run into this issue before and I’m hoping all you smart people out there can help me. Any time I’m working with a camera in AE, I typically pair it to a Null Object – pretty common. In this scenario, I have a wiggle expression on the null object’s position and orientation. Whenever I add a new layer, whether it’s an adjustment layer, text layer, etc., it changes the values of three dimensions (X, Y, and Z) ever so slightly. If you open the screenshots below, you’ll notice that everything is exactly the same, but the only difference is that I added a new layer into the composition (not pictured) in the second screenshot, and the values changed by themselves (for example the X orientation when from 6.4 to 2.8).

    Why is it doing this and is there a way to stop this? This also happens when I simply move layers below the Null Object. Open up these two links and compare the images side by side to see what I mean.

    https://i1.creativecow.net/u/324897/image_20180828193036_1.png

    https://i1.creativecow.net/u/324897/image_20180828193124_1.png

    Bradley Kus replied 7 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Walter Soyka

    August 28, 2018 at 9:43 pm

    The seed for the random number generator is based on the layer number, so when you add layers above your wiggling layer, the random number sequence wiggle() is using changes.

    To work around this, you can manually set the random seed with an expression like this:

    seedRandom(1, true);
    wiggle(frequency, amplitude);

    Change the “1” in seedRandom() to different numbers on different layers when you need variety (i.e., different random results), and obviously use your own wiggle() line however makes sense for your comp.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Bradley Kus

    August 28, 2018 at 11:05 pm

    Thank you man!! Great explanation

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