I have a set of layouts where their extents change based on the county being published. Basically, the script sets the definition query of the County layer and then uses
mf.camera.setExtent(mf.getLayerExtent(lyr, False, True))
to move the layout extent. However, this zooms too far in on the county boundaries. The goal is to zoom to the extent of the county layer - n%.
I've attached current results vs goal