Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions driving rotation with a black and white map in after effects using expressions?

  • driving rotation with a black and white map in after effects using expressions?

    Posted by Lex Trickett on April 23, 2013 at 3:34 pm

    Wondering if someone could help me out…

    Is there a way to drive rotation of a 3d layer y rotation with a black and white map in after effects using expressions? Kind of like what the shader effector can do in C4d

    Thanks very much,
    Lex

    Dan Ebberts replied 13 years ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    April 23, 2013 at 4:18 pm

    This may not be exactly what you’re looking for, but it should give you some ideas:

    map = thisComp.layer(“map”);
    minRotation = -100;
    maxRotation = 100;
    samplePoint= toComp([width,height]/2);
    rgb = map.sampleImage(map.fromComp(samplePoint),[.5,.5],true,time);
    lum = rgbToHsl(rgb)[2];
    linear(lum,0,1,minRotation,maxRotation)

    Dan

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