Next (jQuery API) Previous (Embedding(Old))

Interactive Experiences(Old)

Check out our NEW API DOCUMENT for Clara.io's Interactive Experiences.

This method allows you to embed a scene programatically directly into your page using JavaScript. With this method you can interact with the scene through the JavaScript API. Here is an example of a configurator created with Clara.io's Interactive Experiences tools:

You can also find examples of how to create interactive embeds in our public Github repository here Clara IO Embeding Example Code.

This video also provides an overview of our Interactive Experiences capabilities via “div-embeds”:

To get started, add the following script to your page. If you use jQuery, add the script after your jQuery script tag to enable the jQuery plugin. Note that the third party javsacript loaded with this script is loaded asynchronously, and will not block the rendering of your page.

Here is a barebones page which displays a Clara IO scene that fills the width of the screen.

NOTE: If your Clara IO scene is Private, then it will not be interactive. To set your scene to something other than Private:

  • Open your scene in the Clara.io
  • Click on the Share button at the top right of the browser window
  • Click on the Publishing tab in the dialogue that opens
  • In the Access Control section, select the radio button Unlisted: those with the share link may view, ora any of those above it.

The following pages describe the available methods of controlling the interactive embeds as well as the commands available:

Topics


Next (jQuery API) Previous (Embedding(Old))