I'm planning on creating 2 lenses, one is Creator lens, and another is Customer lens
Q1. Can you load a Custom Location scan ID dynamically at runtime in a lens?
Is there any scripting API to load a LocationAsset from a scan ID string at runtime without baking it into the lens project at design time in Lens Studio? My goal is, where people scan different locations with a custom location creator lens and an experience creator lens to add objects in the scanned place, and another user with the Customer lens can enter the ID or just go to the location, and at runtime the user can access different locations' experiences under single lens instead of manually setting it up in lens studio as seperate lenses each time a creator is scanning and adding object.
Q2. Can retrieveLocation() Access a scan created by a different lens or different spectacles from another one? I saw this on docs, so I wanted to clarify
If Creator Lens scans a space using MappingSession, calls storeLocation(), and gets back a persistedLocationId Can Customer Lens call retrieveLocation() With that same ID and localize against it?
Or is the persisted location private to the lens that created it, and should the device be the same tp access the persisted location? My goal here is to create something like a Custom location creator lens and add some objects there on runtime, and use it as an alternative for my Q1.
Q3. Best way to share spatial anchor positions between two different lenses?
I know Spatial Anchors are per-lens scoped. My plan is to save the raw vec3 positions of anchors to Snap Cloud from Creator Lens , then have the Customer Lens read those coordinates and reconstruct objects at those positions after localizing against the same scan. so if above Q1 and Q2 don't work, will this?
My Ultimate goal is to create one lens that scans and adds objects to the scanned location and the location can be accessed by another lens. The main thing is that the Lens Scanner will be used by multiple people to scan different locations and place objects there, and the Lens Customer can experience the objects created by the Lens Scanner users as soon as they reach the Location. The difficulty in manually creating lens for each location is a nightmare to manage. I need a dynamic way.
Hope I'm making sense with my post. Please show me a way I can navigate with these blocks. Thank you.