This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @component | |
| export class AsrExample extends BaseScriptComponent { | |
| private asrModule = require('LensStudio:AsrModule'); | |
| @input | |
| textTest: Text; | |
| private logToText(message: string): void { | |
| print(message); | |
| if (this.textTest) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { RectangleButton } from 'SpectaclesUIKit.lspkg/Scripts/Components/Button/RectangleButton'; | |
| import { SnapCloudRequirements } from './SnapCloudRequirements'; | |
| /** | |
| * VideoStreamingController - Live video streaming to Supabase Realtime for real-time viewing | |
| * Based on Remote ARsistance pattern - streams frames for live viewing, no storage | |
| * | |
| * KEY DIFFERENCE from VideoCaptureUploader: | |
| * - This STREAMS for live viewing (no file storage) | |
| * - VideoCaptureUploader UPLOADS for video composition (stores files) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { RectangleButton } from 'SpectaclesUIKit.lspkg/Scripts/Components/Button/RectangleButton'; | |
| import { SnapCloudRequirements } from './Examples/SnapCloudRequirements'; | |
| import { createClient } from 'SupabaseClient.lspkg/supabase-snapcloud'; | |
| @component | |
| export class UploadAssetToSupabase extends BaseScriptComponent { | |
| // Supabase Configuration - Centralized via SnapCloudRequirements | |
| @input | |
| @hint("Reference to SnapCloudRequirements for centralized Supabase configuration") | |
| public snapCloudRequirements: SnapCloudRequirements; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Import required modules | |
| const Gemini = require('Remote Service Gateway.lspkg/HostedExternal/Gemini').Gemini; | |
| const GeminiTypes = require('Remote Service Gateway.lspkg/HostedExternal/GeminiTypes'); | |
| @component | |
| export class GeminiExample extends BaseScriptComponent { | |
| private cameraRequest: any; | |
| private cameraTexture: Texture; | |
| private cameraTextureProvider: any; | |
| private isProcessing: boolean = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // INSTANTIATE | |
| // @typename Instantiator | |
| // @input Instantiator instantiator | |
| // @input Instantiator instantiator1 | |
| //@input Component.SceneObject sceneRoot | |
| //@input Component.SceneObject sceneRoot1 | |
| //@input Component.ScriptComponent prefabAccessorA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {SessionController} from "SpectaclesSyncKit.lspkg/Core/SessionController" | |
| import {StorageProperty} from "SpectaclesSyncKit.lspkg/Core/StorageProperty" | |
| import {SyncEntity} from "SpectaclesSyncKit.lspkg/Core/SyncEntity" | |
| @component | |
| export class GridControllerTS extends BaseScriptComponent { | |
| @input() | |
| showLogs: boolean = true | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VISION OPEN AI | |
| import { Interactable } from "SpectaclesInteractionKit.lspkg/Components/Interaction/Interactable/Interactable"; | |
| import { InteractorEvent } from "SpectaclesInteractionKit.lspkg/Core/Interactor/InteractorEvent"; | |
| import { SIK } from "SpectaclesInteractionKit.lspkg/SIK"; | |
| import { TextToSpeechOpenAI } from "./TextToSpeechOpenAI"; | |
| @component | |
| export class VisionOpenAI extends BaseScriptComponent { | |
| @input textInput: Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| withAlpha, | |
| withoutAlpha, | |
| } from "SpectaclesInteractionKit.lspkg/Utils/color"; | |
| /** | |
| * Enhanced 3D Line component with smooth spline interpolation | |
| * Creates a 3D tube by extruding a circular cross-section along a path defined by scene objects. | |
| */ | |
| @component |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| withAlpha, | |
| withoutAlpha, | |
| } from "SpectaclesInteractionKit.lspkg/Utils/color"; | |
| import InteractorLineRenderer, { | |
| VisualStyle, | |
| } from "SpectaclesInteractionKit.lspkg/Components/Interaction/InteractorLineVisual/InteractorLineRenderer"; | |
| /** | |
| * This class provides visual representation for a spline curve through a series of control points. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @component | |
| export class LeaderboardExample extends BaseScriptComponent { | |
| @input | |
| leaderboardModule: LeaderboardModule; | |
| @input | |
| textLogs: Text; | |
| private leaderboardInstance: any; | |
| private leaderboardName = 'EXAMPLE_LEADERBOARD'; |
NewerOlder