Slow Motion Low FPS Script
So I tried using a script that was from about a year ago and since then the lens studio has been updated. I was wondering if anyone could give me a better or working script for this? Its used to basically make the filter look like its on an android.
Here is the link to the old video
// @input Component.Camera camera
// @input float framerate = 10
var countdown = 0;
function onUpdate() {
countdown -= getDeltaTime() * script.framerate;
script.camera.enabled = (countdown <= 0);
if (countdown <= 0) {
countdown += 1.0;
}
}
script.createEvent("UpdateEvent").bind(onUpdate);
Hey there, that's my video you watched and I just replied to your email as well.
Just posting the response here for anyone else.
The script still works the script editor has just changed.
First, make a script and double click it in the resources.
This opens the script editor.
Now, paste the script and press ctrl + s or cmd + s to save it. A circle at the top next to the script name will disappear if it saved. Make sure you press that while ur clicked into the script editor.
Next add the script to a script component on an object. if you have already done this, then click on an object that doesn't store the script..then back onto the script storing object. This will make the inputs update so you can connect the camera.
Hope this helps.
Samuel12345@gmail.com La propuesta