Replies with the camera's current zoom multiplier, computed as DEFAULT_FIELD_OF_VIEW / current_fov. 60° (≈1.047198 rad) gives 1.0, and a narrower (zoomed-in) view gives a higher value.

Syntax

@getcam_zoom=<channel>

Return value

A number with six decimals, e.g. 1.000000 at the default zoom.

Caveats

Examples

// Portable alternative that works in both clients:
llOwnerSay("@getcam_fov=-81234");
// listen(): float zoom = (60.0 * DEG_TO_RAD) / (float)msg;

See also

Implementation notes

RRInterface.cpp 1902-1906: DEFAULT_FIELD_OF_VIEW / LLViewerCamera::getInstance()->getView().

Client differences

CoolVL's handleCommand() (mkrlinterface.cpp 1895-1950) handles getcam_avdistmin, getcam_avdistmax, getcam_zoommin, getcam_zoommax, getcam_fovmin, getcam_fovmax, getcam_fov and getcam_textures, but not getcam_zoom. Henri's readme (line 384) still lists "zoom" among the added @getcam_XXX commands.

Comparison with RLVa

RLVa has no exact equivalent; the closest is @getcam_fov; see the comparison.