這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Sketchfab Embed

外掛說明

Upload your 3D models to Sketchfab and embed them to any WordPress page in your site.

About Sketchfab

Sketchfab is the place to be for 3D files: a platform to publish and find the best 3D content. Millions of people make 3D models or scan the real world in 3D, why would they share this in 2D? What YouTube did for video makers, or SoundCloud for musicians, we are doing it for creators of 3D content.

Sketchfab integrates with all major 3D creation tools, and is natively built in Photoshop, Modo and Blender. Sketchfab supports 28 native 3D formats, and displays them in browser in real-time.

Sketchfab WordPress Plugin

The Sketchfab 3D viewer can be embedded on any web page, as easily as a YouTube video. This plugin will enables you to embed 3d models from Sketchfab using the model URL or model ID.

Choose any item from sketchfab.com, or create your own! Copy the model URL and paste it to your post text editor. Then simply click over to the visual editor to confirm that it loads properly.

Alternatively, you can embed 3D models to your content using the [sketchfab id=""] shortcode and the model ID.

More Information

For any questions or more information, please contact us.

螢幕擷圖

  • Pasting the URL to the text editor.
  • Pasting the URL to the visual editor.

安裝方式

Installation

  1. In your WordPress Dashboard go to “Plugins” -> “Add Plugin”.
  2. Search for “Sketchfab Embed”.
  3. Install the plugin by pressing the “Install” button.
  4. Activate the plugin by pressing the “Activate” button.

Minimum Requirements

  • WordPress version 3.5 or greater.
  • PHP version 5.2.4 or greater.
  • MySQL version 5.0 or greater.

Recommended Requirements

  • The latest WordPress version.
  • PHP version 5.6 or greater.
  • MySQL version 5.6 or greater.

常見問題集

How do I embed 3D models from Sketchfab?

With this plugin you can use the model URL, just paste the URL into your post editor:
https://sketchfab.com/models/034a1a146e304161b7c45b9354ed2dfd

How do I set custom dimensions to my models?

Since WordPress 4.2 you can double click the embedded models and set max width and max height dimensions. It will add the WordPress [embed] shortcode:
[embed width=”400″ height=”300″]https://sketchfab.com/models/034a1a146e304161b7c45b9354ed2dfd[/embed]

Note: Doing it the WordPress way, using the [embed] shortcode, is backwards and forward compatible, and it works with all the themes.

Can I customize the embedded 3D models?

For advanced customization, use [sketchfab id=""] shortcode with the following attributes:

  • id – Model ID. this is a required field.
  • width – Model width. Default 640.
  • height – Model height. Default 480.
  • autostart – Load model immediately once the page is ready, rather than waiting for a user to click the Play button. Default 0. This should probably not be used if you have a lot of models on the same page.
  • autospin – Automatically spin around the z-axis after loading. Default 0. The greater the number, the faster the spin. A negative number will reverse the spin direction.

使用者評論

2020 年 5 月 21 日
Installed and running in about 1 minute. It even supports animation from Sketchfab. Works for me. Thank you!
2018 年 10 月 25 日
It seems an interesting plugin though I don't know how useful could be since just by pasting the link of the item from sketchfab site, it already displays in the wordpress pages and posts.. If the plug in had more settings on size of the embed, styling etc etc then I guess it would be great .. (and hope is perfectly integrated to gutenberg interface etc.. ) Thanks for the plug in as sharing and visualizing 3D files are the definitely the future of many things to come !
2018 年 6 月 6 日
Works great (felt compelled to add this review because the other person leaving the one-star review didn't seem able to be able to even know where to put a shortcode--not the developer's fault; that's ignorance on his own behalf). The only thing I would recommend is having the ability to change the dimensions of the embed without having to use custom CSS, but it's no biggie. Thanks.
2018 年 3 月 14 日
Installed the PlugIn, does not see anything. Description says something about an editor but not where to put the link exactly. > do not have time for this > uninstalled.
閱讀全部 4 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Sketchfab Embed〉的開發相關工作。

參與者

〈Sketchfab Embed〉外掛目前已有 8 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Sketchfab Embed〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.5 (2016-04-04)

  • Add shortcode.
  • Move plugin files to ‘includes’ directory.

1.4 (2015-12-01)

  • Remove po/mo files from the plugin.
  • Use translate.wordpress.org to translate the plugin.

1.3 (2015-04-21)

  • Prevent direct access to php files.
  • Prevent direct access to directories.

1.2 (2015-03-04)

  • Add branding text and a video to the readme file.
  • Add two screenshots.

1.1 (2015-03-02)

  • Add i18n support.
  • Add Hebrew (he_IL) translation.

1.0 (2015-03-01)

  • Initial release
  • Register oEmbed provider.