Forum Replies Created

  • Adrien Tasic

    February 14, 2014 at 11:18 am in reply to: linking opacity to rotation

    Hello Dan, thanks again!
    Yes your expression actually works well ! I just changed the y and x coordinates in it to x and z :…(v[0],v[2])

    Only a little problem with the z axis of my Null facing the back (like starting à 180°) when adding the expression to it.

    Thanks really much for your clarification on this ! Love it, it’s pretty close from the ‘Auto-orient Y Only’ in your Expressioneer’s Design Guide, but with transform.position.velocity.
    This rocks, 🙂

    Adrien

  • Adrien Tasic

    February 13, 2014 at 10:07 am in reply to: linking opacity to rotation

    Hello Dan,
    thank you for the answer! Yes I finally found that later on, actually I’m hitting on another problem…
    After I linked this layers expressions to a Null in my main composition
    this way :
    angle = comp("MainComp").layer("Null1").transform.yRotation%360;
    minAngle = -11,25;
    maxAngle = 11,25;
    if (angle < minAngle || angle > maxAngle) 0 else 100

    I’m trying to find a way so that this Null1 stays automatically perpendicular to its path. Something like Auto-orient, but this one doesn’t change my Null rotation (so doesn’t effect on my layers expression..)
    Hope I made it clear, and thank you so much for the help.

    Adrien

  • Adrien Tasic

    February 11, 2014 at 10:53 am in reply to: linking opacity to rotation

    Hello Dan,
    thank you for the script, as well as your whole website.

    Maybe can someone here help me with my script, in the same spirit of this one?

    I’m trying to use this code but then my layer stays transparent, it may have a mistake:
    angle = transform.yRotation%360;
    minAngle = -23;
    maxAngle = 22;
    if ([angle < minAngle] || [angle > maxAngle]) 0 else 100

    There I want the opacity to go from 0 to 100 without fading. Hope this is understandable enough, or?
    Thank you for the help.

    Ad

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