Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions CC Sphere offset expression

  • CC Sphere offset expression

    Posted by Derek Hader on March 6, 2008 at 12:43 am

    Hey,

    I’m looking to add an expression between 2 layers with CC Sphere effect applied to each. I’d like Layer 2 Rotation X to mirror Layer 1’s Rotation X value, with an offset of 90 degrees. As well, I’d like the Layer 2 Rotation Y to mirror Layer 1’s Rotation Y value, with an offset of 45 degrees.

    I don’t get how I can write the offset value into the expression.

    Many thanks for your assistance!

    -Derek-

    Derek Hader replied 18 years, 2 months ago 3 Members · 5 Replies
  • 5 Replies
  • Mike Clasby

    March 6, 2008 at 6:27 am

    I named layer 1 “Master” and Layer 2 “Offset”.

    This expression goes on layer 2’s CC Sphere’s, X Rotation:

    thisComp.layer(“Master”).effect(“CC Sphere”)(“Rotation X”) + 90

    This expression goes on layer 2’s CC Sphere’s, Y Rotation:

    thisComp.layer(“Master”).effect(“CC Sphere”)(“Rotation Y”) + 45

    Basically I just pickwhipped from layer 2’s rotation to layer 1’s, then added the desired offset.

    Is that what you want?

  • Derek Hader

    March 6, 2008 at 5:41 pm

    Thanks Mike,

    I figured it was a fairly simple solution, I just didn’t know where to add the + 90.

    Unfortunately it hasn’t quite had the desired effect.

    I’m trying the age old elusive technique of making a soccer ball with CC Sphere. I’ve made a satisfactory pattern in PS for the middle of the ball. And I was thinking if i left the top and bottom blank, I could simply add a logo using a second offset layer.

    The ultimate goal was to link these layers with the expression you gave me, and then have the ‘Master’ layer auto-orientate to the camera using Andrew Kramer’s demonstrated technique to insert it as a 3D object in a 3D scene.

    However, I’m thinking it might not work, because the Y rotation affects the 2 layers differently. The master layer spins like a clock, while the offset layer spins like a clock laying flat.

    Any suggestions, or can u think of a way to modify this expression to work properly?

    Thanks again,

    -Derek-

  • Filip Vandueren

    March 7, 2008 at 3:17 pm

    There are a lot of troubles with interpolating using 3D-rotations, It’s not easy to wrap your head around.
    That’s partly why After Effects offers both orientation and x-y-z rotation.

    Anyway, perhaps it’s better to create your logos in the same pattern.

    start off with the logo you want to add to the top of your ball in Photoshop.

    Apply Distort -> Polar Coördinates and choose Polar -> Rectangular.

    Add the resulting image to your panaramic texture of the football and it should look ok when wrapped with CC SPhere

  • Derek Hader

    March 7, 2008 at 10:20 pm

    Filip,

    Iteresting suggestion. I’ve never used this effect before, so I’m not sure exacly how to apply it to stretch my logo on my 2:1 rectangle before applying CC Sphere.

    I will see if i can accomplish what you think can be done. But I also welcome anyone else’s expression suggestions to solve the problem i described in my previous posting.

    Thanks all for your help!

    -D-

  • Derek Hader

    March 10, 2008 at 7:30 pm

    Does anyone know of an expression that can accomplish what I’m after?

    -D

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