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

STL Viewer

外掛說明

With a simple shortcode you can enable and embed a WebGL viewer to show 3d stl files.

In the current version:

  • STL files have to be uploaded to /wp-content/uploads
  • The viewer can’t be used more than one time per page. This might be a feature because the viewer needs a lot of resources.

A complete description of the plugin can be found on my blog.

螢幕擷圖

安裝方式

  1. Upload the directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

  3. Upload an STL-File to WordPress

  4. Insert the shortcode [stl file=”filename.stl” ]

A complete description of the plugin can be found on my blog

使用者評論

2016 年 9 月 3 日
Only one but: but it would be nice if Settings, Rendering Options and Lightning Option would be explained
2022 年 2 月 23 日
... but needs some config. 1. Enable .stl file upload (or any other file type or file-extension) You have to disable FILTER upload before be able to upload an .STL file. Just add // -- allow all files to be uploaded define('ALLOW_UNFILTERED_UPLOADS', true); somewhere in your config.php file. 2. Refer your .STL files correctly Then make sure you refer your .STL files correctly! If your domain is: http://www.yourdomain.com Your uploads will go to maybe: http://www.yourdomain.com/uploads/2015/10/myfile.stl So refer the stl file as: /2015/10/myfile.stl because http://www.yourdomain.com/uploads/ is added by the plugin itself. 3. Example: Insert code is not documented within the plugin, which is a shame. So here it is: [stl file="/2015/10/3dprinted-wrench.stl" /] Hope that helps. 4. Setup Background I was not able to set the background, which seems to be just a black color by default. There is a way within the plugin to setup a tile (image) but it did not work correctly. (Just a small stripe is shown.) I did try: [stl file="myfile.stl" background="#f8f8f8" /] but does not seems to work for me. Question If someone knows how to setup Background color (mono, fix), or tile image, please let me know!
閱讀全部 5 則使用者評論

參與者及開發者

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

參與者

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

對開發相關資訊感興趣?

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

變更記錄

1.1

  • Minor bug fixing.
  • Scripts are only loaded if a shortcode was found on the page.

1.0

  • Complete rewrite of the plugin.
  • Many settings

0.5

  • Removed hard-coded links.

0.4.1

  • the settings page is working again.

0.4

  • added stuff to the readme file
  • cleanup

0.3

  • code cleaning
  • settings page is now working

0.2

  • less hard-coded stuff
  • added more parameters for the shortcode
  • cleaning

0.1

  • first working version based on a howto plugin from the web