Skip to main content

Other Classes

Base64​

Handles encoding and decoding images and textures into Base64 format, commonly used to embed images in JSON or other text-based formats.

Lens Studio v5.3.0+

Expressions​

Expression names used with FaceRenderObjectProvider.getExpressionWeightByName() and returned by FaceRenderObjectProvider.getExpressionNames().

Lens Studio v3.0+

GeoLocation​

Namespace for location functionality.

Lens Studio v5.0.0+

Globals​

Lens Studio v1.0.0+

HingeLimitSettings​

Settings that describe how the position of the object should be limited in respect to the applied forces.

Lens Studio v5.3.0+

HingeMotorSettings​

Settings describing the independent force (motor) applied to the constraint. Motor within a hinge constraint is used to create controlled, powered movement along the hinge's axis, allowing objects to rotate automatically or maintain a particular speed or position.

Lens Studio v5.3.0+

LayerSet​

Used to describe a set of layers that an object belongs to or interacts with.

See SceneObject's layer property, Camera's renderLayer property, and LightSource's renderLayer property.

Lens Studio v2.0.0+

MachineLearning​

Namespace for Machine Learning related classes and methods. For more information, see the Machine Learning Overview.

Lens Studio v3.0+

ManipulateFrameIntersectResult​

Result object returned from ManipulateComponent.intersectManipulateFrame().

Lens Studio v1.0.0+
Scripting Name: ManipulateFrameIntersectResult

MathUtils​

Provides useful math utility functions.

Lens Studio v4.28.0+

MeshBuilder​

A class for generating meshes at runtime.

Lens Studio v1.0.0+

MotionController.Options​

Settings for configuring a motion controller.

Lens Studio v5.0.20+

Physics​

Namespace containing physics classes and static physics methods.

Lens Studio v4.10.0+

Physics.Constraint​

Namespace containing static helper methods for Constraints.

Lens Studio v4.10.0+
Outer Classes: Physics

Physics.Filter​

Script interface for applying collision filtering to colliders and ray/shape-casts.

Lens Studio v4.31.0+
Outer Classes: Physics

ScanModule.Contexts​

Contexts used in ScanModule.scan().

Lens Studio v3.4+
Outer Classes: ScanModule

SnapchatFriendUserInfo​

Details about friendship between the active user and another user.

Lens Studio v5.0.10+
Scripting Name: SnapchatFriendUserInfo

SnapchatUserBirthday​

Set the bone on the skin.

Lens Studio v5.0.10+
Scripting Name: SnapchatUserBirthday

Studio​

Lens Studio v4.40.0+

TensorMath​

Namespace for mathematical operations on tensors. Useful with MLComponent.

Tensor broadcasting rules

  • Tensor (channels, width, height) op Tensor (1, 1, 1) = the same as applying op with scalar

  • Tensor (channels, width, height) op Tensor (channels, 1, 1) = the same as applying op per channel

Lens Studio v3.0+

TextInputSystem.KeyboardOptions​

The settings used for how the input keyboard should work.

Lens Studio v4.13.0+
Outer Classes: TextInputSystem

TextToSpeech.VoiceNames​

The voice style on which the TextToSpeech will be synthesized, Varying from neutral style, to a more elaborated styles depending on the voice. Note that Sam’s voice still doesn’t have more than the neutral style, this will be added throughout the coming releases.

Lens Studio v4.10.0+
Outer Classes: TextToSpeech

VoiceML.NlpIntentsModelOptions​

Contains helper functions for NlpIntentModel.

Lens Studio v4.7+
Outer Classes: VoiceML

VoiceML.NlpKeywordModelOptions​

Contains helper functions for NlpKeywordModel.

Lens Studio v4.7+
Outer Classes: VoiceML

VoiceMLModule.SpeechRecognizer​

Lens Studio v5.0.12+
Outer Classes: VoiceMLModule

mat2​

A 2x2 matrix.

Lens Studio v1.0.0+

mat3​

A 3x3 matrix.

Lens Studio v1.0.0+

mat4​

A 4x4 matrix.

Lens Studio v1.0.0+

quat​

A quaternion, used to represent rotation.

Lens Studio v1.0.0+

vec2​

A two dimensional vector. Vectors can only store finite numbers in the range Number.MIN_VALUE to Number.MAX_VALUE.

Lens Studio v1.0.0+

vec3​

A three dimensional vector. Vectors can only store finite numbers in the range Number.MIN_VALUE to Number.MAX_VALUE.

Lens Studio v1.0.0+

vec4​

A four dimensional vector. Vectors can only store finite numbers in the range Number.MIN_VALUE to Number.MAX_VALUE.

Lens Studio v1.0.0+

vec4b​

A vector containing 4 boolean values.

Lens Studio v1.5.0+
Was this page helpful?
Yes
No

AI-Powered Search