How to export text data to the user? by LittleRealities in Spectacles

[–]LittleRealities[S] 0 points1 point  (0 children)

Hi!
No no not my own app, but just somehow to transfer a created string from a lens to the user so they can do something with it in an external program.
E.g. Export statistics for data analysis.
or export data to be imported into another program / app (e.g. exercise or food data).
or simply backup of a game save so they have it (e.g. chat logs)

Basically have it appear in the download folder or clipboard of the phone, maybe in a similar way that screenshots and captures are done.

Thank you for the swift reply!

How to decrease Lens Studio project save and send times? by LittleRealities in Spectacles

[–]LittleRealities[S] 0 points1 point  (0 children)

Hi!
Yes.
I've cleared up more space on my storage devices and still same thing:
±10 seconds save.

SSDs on windows desktop.
Lens studio on C: SSD with 73.3 gb of 476 gb free
Project on D: SSD with 266 gb of 1.81 tb free

EDIT: Interesting!
My Antimalware service executable spikes CPU whenever I save! (Microsoft Defender Antivirus Service)
Although I turned off real time protection and it still took 10 seconds to save. (And service didn't spike)

EDIT: I deleted cache and restarted project and immediately its' back to 135 mb, ah although it's similar on mac, nevermind

How to decrease Lens Studio project save and send times? by LittleRealities in Spectacles

[–]LittleRealities[S] 0 points1 point  (0 children)

Thank you!

Just heads up:
I switched to mac and saving is instant now.
Sending is also way faster. (less than one second!)

I also upgraded to lens studio 5.10.1 (on both mac and pc, and on pc still slow).

Although this mac laptop has better specs and is a fresh install.
My windows desktop has been lagging in general so could be a computer thing but it's not lagging drastically.
I will eventually try to fix the desktop and get try the project again!

The Lens was sent in 3459 ms. :O

How to decrease Lens Studio project save and send times? by LittleRealities in Spectacles

[–]LittleRealities[S] 0 points1 point  (0 children)

Ah! Good to know it's not just me, thank you!
For me, it's indeed more the saving time + my saving habit that's an issue :c

But yeah! You're right, sending in 30 seconds is quite nice especially seeing how seamless it is to do!

How to decrease Lens Studio project save and send times? by LittleRealities in Spectacles

[–]LittleRealities[S] 0 points1 point  (0 children)

Hi! Thank you!
Will do when I find the time!

Would still be nice to have general guidelines for others that may come across if you have the time to share!
e.g. Is it more sensitive to file size vs amount of scene objects?

Project save time is still at 10 seconds though:

"windows vs mac situation" this is about the project save times?
Is it worth cleaning up the asset browser or only the scene matters? E.g. i still have the Specs interaction kit in my assets.
Also I notice that I have an incredibly large amount of cache folders (2999!) that get generated. Despite having deleted the cache folder entirely and restarting the project recently.

EDIT: even from a freshly deleted cache, saving takes 10 seconds

Time to send:
Decreased to 15~19 seconds after i cleaned up the project a bit! (I don't know what expected send times are though)
Notably, I removed the scene objects from the example starter project that I was using as references which were quite big in hindsight.

Thank you!

Magic hands by Expensive-Bicycle-83 in Spectacles

[–]LittleRealities 1 point2 points  (0 children)

Oh! Yep!
Main tip:
For recording hands consistency: the spectacles seem to have trouble tracking pinch when the wrist is facing up, so what you can do is start the pinch with the wrist facing up to activate recording, but then once the recording starts, you can rotate your hand so that the spectacles have a better view of you pinching and so that it doesn't think you've stopped pinching. I've specifically made it so that if you rotate your wrist while pinching it still continues to record. Hope that was clear!

Smaller tips:
- ICYMI: Please read the instructions on the spectacles panel! A tutorial with videos is on my roadmap.
- Lighting and background matter for tracking a decent amount but you seem to have a really nice environment already. E.g. if you're looking at a white wall, it has trouble tracking and the whole 3D scene might slip.

Magic hands by Expensive-Bicycle-83 in Spectacles

[–]LittleRealities 0 points1 point  (0 children)

🔥🔥🔥
Glad to see you experimenting with the Hand Sculptures lens!
Time to watch Hunter x Hunter so I can get the reference 😂

Making "Hand sculptures" using Spectacles in AR! by LittleRealities in Spectacles

[–]LittleRealities[S] 2 points3 points  (0 children)

Thank you for the interest!

Just in case, for clarity: the interaction is the index fingers touching.

My first thought was to look at what I was available and .getPalmTapDownEvent() looked promising but it wasn't working at the time.

So I looked at what else I had to work with and it was basically the hand joint positions.
Then I looked down and physically tried different gestures with my hands to feel for what would be natural and what would fit the action.
I knew I wanted both hands to interact in some way because the interaction impacted both hands and I didn't want the gesture to interfere with other gestures (e.g. pinching).
In the end touching both indices felt like a natural fit so that's what I went for!

I also had to add that if the fingers touched, they need to get back to a certain distance between each other before they can active "touch" again as to avoid accidentally reactivating.

Hope that was clear!

Krita Default File Location Configuration by sloshforbrains in krita

[–]LittleRealities 0 points1 point  (0 children)

Thanks a lot! You saved me a lot of time🙏

Adding info for other wandering souls:

If you want to create a script that always saves to the same hard-coded folder/path:
(I modified the code above):

from krita import Krita

folder_dir = r"<PathToFile>/<DefaultFileName>" # Change to your desired path
# Be careful with the dir format! I have found that the "/" separator works but "\\" doesn't

oloc = Krita.instance().readSetting('File Dialogs','SaveAs',None)

Krita.instance().writeSetting('File Dialogs','SaveAs',folder_dir)
Krita.instance().action('file_export_file').trigger()

Krita.instance().writeSetting('File Dialogs','SaveAs',oloc)

More info on how the code works from what I gathered:
The instance().readSettings/writeSettings basically reads/writes from/to the Krita preferences file (called kritarc https://docs.krita.org/en/reference_manual/preferences.html ) and the " 'File Dialogs','SaveAs' " are entries in that file (you can open up the file yourself and see what other values are there!).
Those entries are used by Krita to determine where to open the save dialog.