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

Maintain stroke width when precomping and using a 3D camera // Need experts help : )

Community Beginner ,
Apr 14, 2023 Apr 14, 2023

Hi!

 

I have a pretty specific question for a pretty specific workflow I'm using.

 

Is there a way to maintain the stroke width of a shape inside a precomp, when you're animating that precomp with a 3d camera?

 

My goal is to keep the stroke width of the shapes inside the precomps when animating the Z position of the camera.

 

Thanks in advance!! 

TOPICS
Expressions , FAQ , How to , Scripting
495
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
LEGEND ,
Apr 14, 2023 Apr 14, 2023
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
Community Beginner ,
Apr 14, 2023 Apr 14, 2023
LATEST

Thanks for your reply!

 

They mention this expression on the link you pasted:

 

c=thisComp.activeCamera; p=thisLayer.toWorld(thisLayer.transform.anchorPoint); value * length(c.fromWorld(p)[2])/c.zoom;

In my case, the camera is not on the same comp (Shape is on a precomp and camera is on the main comp), and I'm not really sure how to adapt it.

 

Do you know how I should do it?

 

Thanks again!

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