Lens Studio v1.5.0+
Inherits from TextureProvider
The source texture being drawn. This is useful for controlling which effects are visible on the face texture, based on which camera output texture is being used.
The x and y scale used to draw the face within the texture region. A lower scale will be more zoomed in on the face, and a higher scale will be more zoomed out. The default scale is (1, 1).
Returns the texture’s aspect ratio, which is calculated as width / height.
Returns the height of the texture in pixels.
Returns the width of the texture in pixels.
Returns the name of this object’s type.
isOfType(String type) :
Returns true if the object matches or derives from the passed in type.
// Use this in "Frame Updated" to zoom in and out on a face texture over time //@input Asset.Texture faceTexture var faceTexProvider = script.faceTexture.control; var scaleAmount = .75 + Math.sin(getTime())*.25; faceTexProvider.scale = new vec2(scaleAmount, scaleAmount);
Still Looking for help?Visit Support