Playlists

A Playlist is an embedded Collection or list of models.

Creating a Playlist from a Collection

https://sketchfab.com/playlists/embed?collection=8061ccceab1f44cf997cfca56c429eb9

To get the iframe embed code, go to the collection page and click Embed.

Sketchfab 3d model collection page

Click Show options to set the iframe size and enable Autostart.

Sketchfab 3d model collection playlist embed

By default, the models will be sorted chronologically by publish date. The order can be changed by adding the sort_by parameter to the src URL:

  • -like_count
  • like_count
  • -view_count
  • view_count
  • -published_at
  • published_at

For example: https://sketchfab.com/playlists/embed?collection=8061ccceab1f44cf997cfca56c429eb9&sort_by=-like_count

You can use the oEmbed API endpoint to programmatically get embed codes and other information.

Creating a Playlist from a list of models

Playlists can also be created from arbitrary model IDs, like this:

https://sketchfab.com/playlists/embed?models=46b6d0548ee046fd84f92fe12ac2b70e+7ad77ffcaee6407687d0a80efb3d2363

By default, these models will be sorted in the order you place the model IDs.

This is currently the only way to embed private models in a playlist.

For details on viewing collections in Virtual Reality, see VR Launcher.

Have more questions? Submit a request

Comments

  • Avatar
    andreadev

    I know you can embea each model one by one,but there is a smart way to embead all my model in my portfolio just whit my API token?

  • Avatar
    James
  • Avatar
    maritimearchaeologytrust

    Playlists not working on our site last few days, nor on yours it seems! Or is it just us??

  • Avatar
    James

    @maritimearchaeologytrust - Yep, sorry about that! We have a fix coming ASAP.

  • Avatar
    maritimearchaeologytrust

    @James

    Looks like it's back up again, good work! Do you think it will be a stable feature or still quite experimental?

  • Avatar
    James

    @maritimearchaeologytrust

    Yep! Sorry for not following up sooner. Yes, it is expected to be a stable feature.

  • Avatar
    maritimearchaeologytrust

    @James

    Great stuff, thanks a lot.

  • Avatar
    maritimearchaeologytrust

    @James

    Oh dear James, playlists out of action again? We might have to think of a different approach to putting models on our front page. Hope it's and easy fix.

    BR

  • Avatar
    andreadev

    Hi i have found a better way to embead all my model in my portfolio gallery, you can check it at http://andreadev.wiregaming.it/?page_id=511 this is a plugin developed by a friend programmer, he is working at and making a wordpress plugin for it that allow you to embed all your models just putting in the settings your profile id, and the magic will happens...if someone want this plugin let me know at andreapomposelli@gmail.com so i can advice you when it's published. Have a nice day, i hope this can help someone as it helped me.

  • Avatar
    maritimearchaeologytrust

    @andreadev

    Looks nice, is it wordpress only or is there any other way to use this on any site, some javascript and html, etc?

    We like the sketchfab playlists though, but they're a bit wobbly lately ;)

  • Avatar
    andreadev

    Yes, he will develop a lib and an api for getting all the mosels IDS and instantiate the sketchfab player.

  • Avatar
    James

    @maritimearchaeologytrust - It's working for me. Can you elaborate?

    @andreadev - That's a nice gallery, thanks for sharing!

  • Avatar
    maritimearchaeologytrust

    Yes, it's back now. It wasn't working across Sketchfab this morning. Thanks for your reply.

  • Avatar
    QMLX

    Hi @James 

    How can I scale up the THUMBNAILS and place them on the right side of viewer?

  • Avatar
    James

    Hi @QMLX 

    You would need to do it yourself with HTML, maybe using a combination of the Viewer API and oEmbed: https://sketchfab.com/developers

  • Avatar
    inventivesoftware

    Is there a way to access all my model id's at an api end point? Using HTML and Javascript.

  • Avatar
    James
  • Avatar
    digventures

    Hello!

    Quick question about Playlists... is there anyway of making the object descriptions visible? We have descriptions of all our objects, but as far as I can see, they don't display (or even have a 'click to see description') option?

    Any clues?

  • Avatar
    James

    Hi @digventures,

    Not at the moment, but thanks for the feedback! I'll pass it on to the team :)

    James