How to control materials with scripts in Lens Studio
The material editor in Lens Studio is super powerful, but it is separate from the scripting system. If you are coming from Spark AR where both logic and materials exist together in the patch editor, this may be frustrating to you. In this tutorial we'll go over how to bridge the two and use scripts to change material parameters. We'll see how to use the behavior script, the tween script, custom JavaScript, and visual scripting to change material parameters. 00:00 - Introduction 00:20 - Using the behavior script 02:30 - Using the tween script 04:23 - Using your own script 07:22 - Using visual scripting Written version -- https://arbootcamp.com/snapchat-intermediate/script-material Subscribe to the newsletter for even more! -- https://modelsbymike3d.eo.page/arbootcamp Like what you see? Support me on Patreon! -- https://www.patreon.com/ModelsByMike Buy me a coffee! -- https://www.buymeacoffee.com/modelsbymike3d Follow me! I make augmented reality filters and share stuff about bugs. Snapchat: https://www.snapchat.com/add/modelsbymike3d Instagram: https://instagram.com/modelsbymike3d/ Facebook: https://www.facebook.com/ModelsByMike3D Twitter: https://twitter.com/modelsbymike3d
Download
0 formatsNo download links available.