Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Layer1 invisible when Layer2 facing away from the camera in an other comp

Guest
Sep 25, 2010 Sep 25, 2010

Hi

I've got a main comp with many Picture comps.A cam is flying from one picture comp to the next and so on.Each picture comp is made out of several

pre-comps.one of this pre-comps contains the frame of the picture.(3d layer)

my goal is now this=>if the picture comp(3dlayer) is facing away from the cam in the main comp i'd like that the frame in the precomp changes it opacity from 100 to 0 .

it's similar to Dan's expression http://www.motionscript.com/design-guide/invisible-facing-away.htm but with pre-comps.

any ideas?

cheers

TOPICS
Expressions
879
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 25, 2010 Sep 25, 2010

Like this:

if (comp("Main Comp").layer(thisComp.name).toCompVec([0, 0, 1])[2] > 0 ) value else 0

Dan

Translate
Community Expert ,
Sep 25, 2010 Sep 25, 2010

Like this:

if (comp("Main Comp").layer(thisComp.name).toCompVec([0, 0, 1])[2] > 0 ) value else 0

Dan

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 25, 2010 Sep 25, 2010
LATEST

thank youuuuuuuuuuuuu!!!!!!!it works

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines