Exposes User Data
Spectacles: ImageFrame contains the results of a still image request initiated from the CameraModule. Still images are high resolution images of the user's current camera stream.
let cameraModule = require("LensStudio:CameraModule");let imageRequest = CameraModule.createImageRequest();try { let imageFrame = await cameraModule.requestImage(imageRequest); // Use the texture in some visual script.image.mainPass.baseTex = imageFrame.texture; let timestamp = imageFrame.timestampMillis; // scene-relative time} catch (error) { print(`Still image request failed: ${error}`);} Copy
let cameraModule = require("LensStudio:CameraModule");let imageRequest = CameraModule.createImageRequest();try { let imageFrame = await cameraModule.requestImage(imageRequest); // Use the texture in some visual script.image.mainPass.baseTex = imageFrame.texture; let timestamp = imageFrame.timestampMillis; // scene-relative time} catch (error) { print(`Still image request failed: ${error}`);}
Readonly
The texture of the ImageFrame.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
other
Spectacles: ImageFrame contains the results of a still image request initiated from the CameraModule. Still images are high resolution images of the user's current camera stream.
Snap OS
Example