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.
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:
By default, these models will be sorted in the order you place the model IDs.
For details on viewing collections in Virtual Reality, see VR Browser.
Comments
19 comments
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?
@andreadev
1) go to https://api.sketchfab.com/v2/users/me?token={TOKEN}
2) find the 'uid' for yourself.
3) embed like: https://sketchfab.com/playlists/embed?user=4a7c10685d744e47b8319bd0fe631840
Playlists not working on our site last few days, nor on yours it seems! Or is it just us??
@maritimearchaeologytrust - Yep, sorry about that! We have a fix coming ASAP.
@James
Looks like it's back up again, good work! Do you think it will be a stable feature or still quite experimental?
@maritimearchaeologytrust
Yep! Sorry for not following up sooner. Yes, it is expected to be a stable feature.
@James
Great stuff, thanks a lot.
@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
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.
@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 ;)
Yes, he will develop a lib and an api for getting all the mosels IDS and instantiate the sketchfab player.
@maritimearchaeologytrust - It's working for me. Can you elaborate?
@andreadev - That's a nice gallery, thanks for sharing!
Yes, it's back now. It wasn't working across Sketchfab this morning. Thanks for your reply.
Hi @James
How can I scale up the THUMBNAILS and place them on the right side of viewer?
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
Is there a way to access all my model id's at an api end point? Using HTML and Javascript.
@inventivesoftware Yep: https://api.sketchfab.com/v3/models?user=inventivesoftware
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?
Hi @digventures,
Not at the moment, but thanks for the feedback! I'll pass it on to the team :)
James
Please sign in to leave a comment.