I would like to use multiple avatars on one page and control them individually using the API, is that a problem ? Is there maybe an example for this ?
Thanks so much,
This is entirely doable, and we have two examples on the support pages that showcase exactly that -
On the advanced examples page - look for "SitePal Conversation":
However - I would advise you to wait for about a week, as we are just about to release an update which would greatly simplify api access to multiple characters on the page.
In the examples noted above - we demonstrate how to control each character via the API. This is accomplished by loading each character into its own iframe, which enables the characters to be individually addressed / called.
Needless to say this makes page design and maintenance a bit more cumbersome than it otherwise would be.
In the upcoming update, we add new built in addressing capabilities to the API - which will make it possible to embed your characters into the same page, without using an individual iframe for each, and access each of them individually via the API.
When we launch this update, we will provide new examples that demonstrate the new method.
Hope this helps,
The SitePal Team
..that sounds great, Gil, thanks so much for your help and support
Hello, Gil, all,
one question, is it known when this new update will be released and where that will be announced ?
Any day now. We're in final review. I'll post here and let you know when released.
Thanks for your patience.
The update has been deployed, and is now available.
See these technical examples (available on our support page under "Advanced Examples")
The API reference documentation has been updated - look for "selectScene" function here (p.23) -
To use the new functionality you will need to update your embed code from v2 to v4. This version change (see below) will not be needed in the future, as we will update all users' embed code to v4. But for the moment you will need to make this change.
Note: Using this function requires embed functions v.4 – which are in Beta at this time. To try out this prerelease feature, locate this text in your embed code:▪ vhost_embed_functions_v2.phpand modify to:▪ vhost_embed_functions_v4.php
Hope this is helpful. Please let me know if any questions or problems.
Customer support service by UserEcho