The term aperture is a cinema term, it refers to the size of the metal window in front of the film. Changing the size of the aperture is the same as changing the film format. The ‘fstop’ as it's called in houdini refers to the lens aperture which is maybe what you are thinking of.
You got it right up to ‘size of metal window in front of the film’; Except I'm not sure what you mean by film format.
However in real life a cameras aperature is controlled by ‘F-Stop’ and ‘Shutter Speed’; Both contribute towards how much exposure the film receives and both have their own respective additional contributions. The Aperatures F-stop also determines Depth of Field which can be used as a blurring technique or the opposite in how much of the scene is kept in focus. The shutter speed can be used as a blurring technique as well but of a different kind - one caused by motion.
So in ‘real life’ the aperature is controlled by ‘f-stop’, there is no ‘aperature’ control per se, other than f-stop and shutter speed, i.e. having a parameter called ‘Aperature’(in Houdini) is nonsenesical in terms of representing what it does and how it is controlled (in real life).
That's because the f-stop in Houdini is taken out of the camera and put in lights to contribute towards exposure, and doesn't contribute towards the Depth Of Field.
The Aperature in Houdini does neither of controlling exposure or Depth Of Field(as far as I know, since I haven't tried to get Depth of Field effects like a real life camera in Houdini).
So in real life aperature opening has the inseperable effect of both contributing towards exposure and Depth Of Field.
Lower F-Stops(more open) result in less Depth Of Field and the converse.
In either case,
the resulting image size does not change.Yet in Houdini, this Aperature parameter, actually changes the size of the image - Acting like a
zoom/cropping tool.
Zoom not being a good term because a
Zoom on a camera lens(that is a
zoom lens that has the capacity for different focal lengths) is essentially only changing the focal length, the net result being a change in image composition.
And yet in Houdini we already have a focal length parameter - so the size of the image can be set in two ways - focal length parameter and Aperature parameter, leaving out resolution parameter settings(that also change image size).
Cropping is not a good analogy since that implies less than the original, but the Aperature parameter can make the image area larger as well.
So this Aperature parameter does this
zoom/cropping, and as usefull as it is, has no real world counterpart to relate to.
I suppose you could do that, but then the resolution of the render will probably be very very small and also most likely truncate your precision resulting in a different aspect ratio.
Then with the ‘expression’ you gave me, yours would have the same result. I simply am doing what you said manually - your expression gives the same results. So long as I choose the larger of the two values(Horizontal vs. Vertical LOP aperature) for the OBJ aperature). The only exception being, you didn't mention what to use for the initial ‘ResX’ of your expression, of which I assumed the LOPs Horizontal. And again, all that gets switched out if the other is larger.
and select a real film back size (aperture) from a physical camera.
As I mentioned before, there is no ‘real film back size’. In real life the size of an aperatures opening is controlled by f-stops and the end result does not change the size of the image.
Thanks for the tip on the nodes. The LOP Import Camera node works well.