How to control materials with scripts in Lens Studio

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025

Комментарии • 15

  • @stevenwolpe191
    @stevenwolpe191 2 года назад +2

    Keep ending up at your tutorials Mike. Thanks for making these! They are very well done!

  • @JorikRosa
    @JorikRosa 3 года назад +1

    awesome

  • @tomnieuwendijk2383
    @tomnieuwendijk2383 Год назад

    is it possible to connect this hsv as input for base color in a pbr material?

    • @ModelsbyMike3d
      @ModelsbyMike3d  Год назад +1

      PBR materials in LS use rgba, so you'd have to convert from hsv to rgb first. There is an HSV to RGB node which makes that part easy.

    • @tomnieuwendijk2383
      @tomnieuwendijk2383 Год назад

      @@ModelsbyMike3d thanks a lot for your reply

  • @jamestorres37
    @jamestorres37 2 года назад

    What if I want to change an object's material (A) to a completely different material (B) on trigger like tap via scripting?

    • @ModelsbyMike3d
      @ModelsbyMike3d  2 года назад

      There’s an example of that here: support.lensstudio.snapchat.com/hc/en-us/community/posts/360008466766-Material-change-on-tap

  • @chidico
    @chidico Год назад

    Tween does not work with baseColorFactor

    • @ModelsbyMike3d
      @ModelsbyMike3d  Год назад

      The TweenValue script should be able to work with any material parameter. Once thing to double check is that the script name of the material parameter matches what you are using on the tween update callback property.

  • @yunusemreesen5239
    @yunusemreesen5239 3 года назад

    Hallo dear Mike, I’m trying to watch ur all videos to become a XR creator. Thank you for all videos and I want to ask a question u. How can I develop myself about scripting, writing codes? Where from I should start? Ur advice is most important for me. I wish best for u 🤞🏻

    • @ModelsbyMike3d
      @ModelsbyMike3d  3 года назад +1

      freeCodeCamp is a great resource - www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/

    • @yunusemreesen5239
      @yunusemreesen5239 3 года назад

      @@ModelsbyMike3d thank you sir 🤞🏻

  • @graysterboys4322
    @graysterboys4322 3 года назад

    Hey can you make realistic hair like my twin filter on snapchat

    • @ModelsbyMike3d
      @ModelsbyMike3d  3 года назад

      Realistic hair is not something I have much experience with. Hair cards are probably what you're after. You can look those up (not Lens Studio specific) to learn how to create them, then it's basically just importing the 3D model into Lens Studio.