Scaling and centering generated objects to take up entire camera viewing width resolution using geometry nodes.
I have an output resolution set to 7000px (x) and 3900px (y). I would like to center and scale my object to fill the camera viewing width when it's rendered.
So it would fill up the width like this when rendered:
Use the Attribute Statistics node to get the dimensions of object.
Calculate the dimensions needed to be centered and scaled to fit within camera view port when rendering (I'm missing this part. (Output resolution set to 7000px (x) and 3900px (y))
Use a scale or transform node to make sure it fits within the camera view when rendering.
The reason for this is I'm testing a way to generate multiple objects that have different sizes and some of those objects won't fit within the camera output view resolution, so I would like to scale and center the object to make sure it fits within the camera view when it's batch rendered.
See Blend file below: