Easily rotate objects around the head in Lens Studio - no coding required
Вставка
- Опубліковано 26 сер 2024
- In this Lens Studio tutorial you will learn how easy it is to make objects rotate around the head using the built-in tween scripts - no custom coding required. All it takes is adding your objects and using the right settings on the tween scripts.
Written version -- learn.arbootca...
Subscribe to the newsletter for even more! -- modelsbymike3d...
Like what you see?
Support me on Patreon! -- / modelsbymike
Buy me a coffee! -- www.buymeacoff...
Follow me! I make augmented reality filters and share stuff about bugs.
Snapchat: / modelsbymike3d
Instagram: / modelsbymike3d
Facebook: / modelsbymike3d
Twitter: / modelsbymike3d
Amazing 👌. Thanks for this tutorial. Can you make tutorials on how to get started with material shaders and snapML ?
I do plan on doing some snapML tutorials down the line, but maybe I'll move them up. I personally don't do a lot with material shaders, but I'll look into what I'm comfortable doing with them. In the meantime you can check out Max's demo of materials from the last Lens Fest. He does some pretty crazy things with it -- ua-cam.com/video/vZVk7hcHrx4/v-deo.html
@@ModelsbyMike3d Thanks for replying Mike !
where do you have the tween script from ? I cant select it in my LS
You import the script in the objects panel. See here for more reference -> lensstudio.snapchat.com/guides/scripting/helper-scripts/tween-manager/
Is it possible to stop rotation after certain event? For example, I want to start with a rotating chess pieces and when I open my mouth they stop moving. How can I do that?
I believe you could use a behavior script for the mouth open event, and for the action you would do "Set Enabled" and disable the tween. But to do that make sure the tween script is its own separate object in your scene hierarchy with no children, otherwise the children will also be disabled. If you move the tween off the object that is rotating, there is a field on the tween script to select which object to apply the tween to.
I'm a newbie and i want to do something like this how do I get started because it like you have started already and I don't understand how to go from where to where I'm confused. If I could get help from how it started I would be very grateful. Thanks
I recommend checking out the 3d object import guide as a good first step docs.snap.com/lens-studio/references/guides/adding-content/3d/importing-content/overview/
is there a tutorial on how to animate the individual chess pieces?
There isn't a separate tutorial for that, but it is the exact same process of adding the tween to do continuous rotation.
What is the point of a tutorial when you already start w a half done project.
I wanted to focus on the tween setup; I did not feel the rest of the project setup contributed to that goal so I didn’t cover it. However, I’ve noted your feedback and will keep it in mind for future tutorials.
@@ModelsbyMike3d hey! thanks for the tutorial! do you think the same steps apply when trying to spin stuff around body parts? with 3d body tracking
@@thesdfable the same steps should apply, just parent your empty scene object to wherever you want the center of rotation to be.