0
Answered

Multiple avatars independently on one page ?

Frank E 4 years ago updated by Gil Sideman 4 years ago 5

Hello,

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,

Frank

Answer

Answer
Under review

Hello Frank!

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":

http://www.oddcast.com/support1/cookbook.html

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,

Gil

The SitePal Team

GOOD, I'M SATISFIED

..that sounds great, Gil, thanks so much for your help and support

Satisfaction mark by Frank E 4 years ago
Answer
Under review

Hello Frank!

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":

http://www.oddcast.com/support1/cookbook.html

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,

Gil

The SitePal Team

Hello, Gil, all,

one question, is it known when this new update will be released and where that will be announced ?

Thanks so much,

Frank

Frank, 

Any day now. We're in final review. I'll post here and let you know when released.

Thanks for your patience.

Best,

Gil

Hello Frank,

The update has been deployed, and is now available.


See these technical examples (available on our support page under "Advanced Examples") 

http://www.oddcast.com/support1/conversation.html

http://www.oddcast.com/support1/conversation2.html

The API reference documentation has been updated - look for "selectScene" function here (p.23) - 

https://www.oddcast.com/support/docs/vhost_API_Reference.pdf

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.php
and modify to:
▪ vhost_embed_functions_v4.php

Hope this is helpful. Please let me know if any questions or problems.


Best,

Gil