AfterEffects

Example: Flip layer horizontally if facing away from camera

  Apply the following expression to a 3D layer’s Scale property:
  if (toCompVec([0, 0, 1])[2] > 0 ) value else [-value[0], value[1], value[2]]