Comments
-
thanks @"Tariq B" , i had to change some of the physics world settings. It works now!
-
We need more details. Are there any errors in the console in Lens studio? Are you instantiating lot of objects? Most times it is because framerate is really bad in the stress test (tapping repeatedly etc.)
-
Awake is initialized?
-
i know, it's very sad :(
-
Added a bunch of Mini scripts that might be usefull (also the script cheat sheet is still there ; ) -> Github.com/LensstudioSnippets
-
What exactly are you trying to do? Question unclear (:
-
hi @Simonsaysnl , did it work? :) Would be cool to get a how-to! <3
-
Scripting snapchat native hints that get translated in all languages: Create a dropdown to choose a hint in the inspector: ```//@input string hintId {"widget":"combobox","values":[{"label":"Raise your hand","value":"lens_hint_show_your_hand"},{"label":"Aim camera at the…
-
I'm continuing this cheat sheet on GitHub! Feel free to contribute :) -> Lens studio JavaScript scripting cheat sheet
-
Thank you! Super helpful :) gonna reuse this a lot <3
-
Thanks @Max ! Works perfectly :)
-
Yes! Right now it's not so much an "update", but more a "reupload" under the same URL/snapcode.. Now that we also haveto set categories every time, it get's so tideous and annoying.. would greatly appreciate it!
-
Function to calculate the distance between two Vec3: function CalcDistance(Vec1, Vec2){ distX = Vec2.x - Vec1.x; distY = Vec2.y - Vec1.y; distZ = Vec2.z - Vec1.z; distance = Math.sqrt(distX * distX + distY * distY + distZ * distZ); return distance;}var distance = CalcDistance(Point1, Point2);
-
call a global function from annywhere: global.myGlobalFunction(); The global function: global.myGlobalFunction = function(){ print("im here");}
-
Awesome thank you so much @sxu ! <3
-
@sxu wow thank you very much! :) This is great! Will there be an option to delete my own comments also? :D
-
.
-
Change material properties: (in this example i change the color of the Confetti VFX / particle material from the Asset Library, works for every material tho) //@input vec3 myParticleColor_Start {"widget":"color"} //@input vec3 myParticleColor_End {"widget":"color"} //@input Asset.Material Particle_material…
-
Create an AudioComponent on this sceneObject and set the audio track + some audio controls //@input Asset.AudioTrackAsset myAudio //create new audio component and set the track myAudioComponent = script.getSceneObject().createComponent("Component.AudioComponent"); myAudioComponent.audioTrack = script.myAudio;…
-
Hi everybody! :) I'm Ines, i live in Berlin and I am building Snapchat lenses day and night for the last 6 months now, for my full time job and for my personal projects. Lens studio is my favourite software since i switched from VR to AR! I'm interested in VR, AR, games, fashion and art, and i really like to collaborate…