Skip to main content
gdg55
Participant
April 14, 2023
Question

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

  • April 14, 2023
  • 1 reply
  • 518 views

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!! 

This topic has been closed for replies.

1 reply

Mylenium
Legend
April 14, 2023
gdg55
gdg55Author
Participant
April 14, 2023

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!