# Switching Different Avatars in my RPM lipsync web application

**URL:** <https://forum.convai.com/t/switching-different-avatars-in-my-rpm-lipsync-web-application/2693>\
**Category:** Web SDK & Embeds\
**Tags:** question, threejs\
**Created:** [January 28, 2025, 7:07am UTC](https://forum.convai.com/t/switching-different-avatars-in-my-rpm-lipsync-web-application/2693 "2025-01-28T07:07:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wy\_c](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/wy_c/32/2875_2.png) [@wy\_c](https://forum.convai.com/u/wy_c)\
**Post date:** [January 28, 2025, 7:07am UTC](https://forum.convai.com/t/switching-different-avatars-in-my-rpm-lipsync-web-application/2693/1 "2025-01-28T07:07:06Z")

</div>

Hi I am working on this demo [GitHub - Conv-AI/RPM-Lipsync · GitHub](https://github.com/Conv-AI/RPM-Lipsync) to integrate with my own avatar and succeed, but now I want to use the reset session icon to do the switching between different avatars. I used a dynamic variable to store the reset session click counts (this update works well) and found that in order to switch between different avatars I only need to change character ID in App.jsx and imported .glb file in the anita.jsx file in models folder, but I can not do this successfully, I wonder how can I do it smartly or if I missed somewhere to update when the clickcounts is increasing? The following three pictures are the parts according to changed codes

 ![Anita.jsx_prelod](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/b/bbce948c44014a49722bcf482fc9df92e13dbe95.png)  
 ![Anita_load.jpg](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/1/1d05ab1262e9d44b2c1606b2084594c3f018b8cc.png)  
 ![App.jsx](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/a/a64dde0e4dca7c40fed18fceb9e190d5875de00f.png)

---

<div class="post-metadata">

**Author:** ![Saurav](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/saurav/32/2514_2.png) [@Saurav](https://forum.convai.com/u/Saurav)\
**Post date:** [January 29, 2025, 2:33pm UTC](https://forum.convai.com/t/switching-different-avatars-in-my-rpm-lipsync-web-application/2693/2 "2025-01-29T14:33:43Z")

</div>

Hello @wy_c,

**Welcome to the Convai Developer Forum!**

Will need some time to get back to you on this.

---

<div class="post-metadata">

**Author:** ![wy\_c](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/wy_c/32/2875_2.png) [@wy\_c](https://forum.convai.com/u/wy_c)\
**Post date:** [January 29, 2025, 10:42pm UTC](https://forum.convai.com/t/switching-different-avatars-in-my-rpm-lipsync-web-application/2693/3 "2025-01-29T22:42:40Z")

</div>

Thank you! looking forward to your reply!

---

<div class="post-metadata">

**Author:** ![Saurav](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/saurav/32/2514_2.png) [@Saurav](https://forum.convai.com/u/Saurav)\
**Post date:** [February 5, 2025, 9:35am UTC](https://forum.convai.com/t/switching-different-avatars-in-my-rpm-lipsync-web-application/2693/4 "2025-02-05T09:35:02Z")

</div>

Instead of dynamically changing the models link try creating few jsx model files and switch between components instead based on clicks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/1X/e60ef96aa7334c5ccf6682f6c6dbc20fcfa96b49.png) [@system](https://forum.convai.com/u/system)\
**Post date:** [March 7, 2025, 9:35am UTC](https://forum.convai.com/t/switching-different-avatars-in-my-rpm-lipsync-web-application/2693/5 "2025-03-07T09:35:09Z")

</div>

Closed on March 7, 2025, 9:35am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
