AfterEffects

Example: Make a 3D layer invisible if facing away from camera

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