While active, @camzoommin stops the user from zooming the camera out (Ctrl-8, which widens the field of view) past a minimum zoom multiplier. A multiplier of 1.0 is the viewer's default 60° vertical field of view. A multiplier of 2.0 gives 30°, so a minimum of 2.0 keeps the view at 30° or narrower.
@camzoommin[:<min_multiplier>]=<n|y>
add and rem work in place of n and y, as for every restriction.
atof(). Text that isn't a number gives 0, and 0 means "no limit" (see Caveats). If the option is left out, the viewer uses 1.5, the default every RLV numeric restriction gets when called without a value.@camzoommin, the viewer keeps the highest value.mCamZoomMin is reset to −1000000). A negative value is kept, but it can never be reached, so it has no effect.DEFAULT_FIELD_OF_VIEW / f), and the stricter of the two wins.LLViewerCamera::setDefaultFOV(), after the viewer's own clamp to its min/max view, so the RLV value can push the field of view outside the viewer's normal range. When the restriction is added, the viewer calls setDefaultFOV() with the saved CameraAngle, so the current view snaps into the new limit at once.// Keep the view at 30 degrees or narrower (zoom x2 or more)
llOwnerSay("@camzoommin:2=n");
// Lift it again
llOwnerSay("@camzoommin:2=y");
To remove the restriction, =y must repeat the same option string, because the stored restriction is camzoommin:2.
RRInterface::updateCameraLimits() (RRInterface.cpp 6338-6420) sets mCamZoomMin = getMax("camzoommin", -EXTREMUM) and treats 0 as unset (6350-6351). It then folds in setcam_fovmax (6366-6374) and clamps min to max (6407-6409).getMax() (940-972) parses each stored restriction with atof() and uses 1.5 when the option is empty.RRInterface::add() (1307-1314) calls updateCameraLimits() for any behavior starting with cam or setcam, then setDefaultFOV(CameraAngle) for camzoommax, camzoommin, setcam_fovmin and setcam_fovmax.LLViewerCamera::setDefaultFOV() (llviewercamera.cpp 816-835): if 60°/fov < mCamZoomMin, the FOV is set to 60°/mCamZoomMin.No differences found between Marine's RLV and CoolVL in how @camzoommin is parsed or enforced. CoolVL re-applies setDefaultFOV() from refreshCachedVariable() as well as from add() (mkrlinterface.cpp 730-733 and 1455-1466), so the snap also happens on removal there. On removal this has no visible effect, because the stored angle is already inside the remaining limits. CoolVL lists camzoommin in its blacklistable camera commands (mkrlinterface.cpp 518). Marine's blacklist is disabled.
This command works differently from RLVa's @camzoommin; see the comparison.