Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Change objects in a sphere to show the back face

  • David Cabestany

    April 30, 2016 at 10:31 pm

    Hey, it’s me again. Sorry for all the extra posting. I just figured it out,

    Change the + sign to – so instead of

    v = fromWorldVec(toWorld(anchorPoint) – parent.toWorld(parent.anchorPoint));
    lookAt(position,position+v)

    you have

    v = fromWorldVec(toWorld(anchorPoint) – parent.toWorld(parent.anchorPoint));
    lookAt(position,position-v)

    Why? No idea. I’m sure Dan can answer that.

    Thanks everyone!
    D.

  • Dan Ebberts

    April 30, 2016 at 10:35 pm

    I was going to suggest you swap the order of the parameters in the lookAt() to switch which side faces out, but it seems you’ve wrangled it a different way.

    Dan

  • David Cabestany

    April 30, 2016 at 10:40 pm

    Nah, it didn’t work. Neither changing the sign nor swapping the parameters, as I zoom out (decreasing the radius of the sphere) they all flip sides at one frame.

    Best,
    D.

  • David Cabestany

    May 4, 2016 at 9:47 pm

    Hey Dan,

    Still tinkering with this sphere. I finally got the faces to look the way they are supposed to, but now some of the cards randomly flip depending on god knows what. It happens at the end, so my guess the unwanted flipping is related to the global position of each card, as the null controlling them is rotating, weirdest of all is is not all the cards that are on the “back of the sphere rotate, just a few, so I’m a bit perplexed.

    Would you mind taking a look at the file and see if there is anything out of place?

    D.

  • Dan Ebberts

    May 4, 2016 at 9:53 pm

    Did you post it somewhere?

    Dan

  • David Cabestany

    May 4, 2016 at 9:59 pm

    Will do now. I didn’t want to post it without you agreeing first. There was an old version, but this is the latest one:

    https://dl.dropboxusercontent.com/u/35786640/VIDS_esfera%20tarjetas.aep
    https://dl.dropboxusercontent.com/u/35786640/footageSphere.zip

    It’s a stripped down version which only includes the spheres comp, the second link is the linked footage.

    Thanks a lot!.
    D.

  • Dan Ebberts

    May 4, 2016 at 11:19 pm

    There’s some strange stuff going on in there. I was watching one particular layer that was fipping, and I decided to watch what was happening to its z axis when translated to a vector in world coordinates. As soon as I added a 3D point effect with this expression:

    toWorldVec([0,0,1])

    it un-flipped. I don’t have a clue…

    Dan

  • David Cabestany

    May 4, 2016 at 11:26 pm

    If you don’t know, then there’s no hope for the rest of mankind…

    Thanks a lot anyway, I really appreciate that you took the time to look at this.

    Best,
    D.

Page 2 of 2

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