
內容簡介
這是我為 WordPress 開發的第一個擴充套件,希望對您有用。如果您有建議,請發送電子郵件或留言。
這個外掛讓您能夠使用簡碼(shortcode)將您的 SweetHome3D 家屋嵌入 HTML5。
如何使用:
使用 SweetHome3D 外掛程式的 Export to HTML5 功能,建立可直接嵌入的 Zip 檔案。
在 SweetHome3D 中使用功能表「工具(T) → 匯出為 HTML5」,將您的家屋匯出成 Zip 檔案。
解壓縮生成的 Zip 檔案。
它將包含:
lib/
viewHome.html
viewHomeInOverlay.html
your_house.zip <- 我們需要這個
進入您的 WordPress 管理員區,並在左側選單 SweetHome3D 中上傳 your_house.zip 檔案。
將所生成的簡碼嵌入您的文章/頁面中。
免責聲明:這個外掛不屬於 SweetHome3D 專案,並且不與其開發人員有任何關聯。
外掛標籤
開發者團隊
原文外掛簡介
This plugin lets you embed a house designed in SweetHome3D as an interactive HTML5/WebGL model, directly inside your WordPress posts and pages.
You can insert a model either with the SweetHome3D block in the block editor, or with the classic [sh3d] shortcode.
Features:
Gutenberg block with a live preview and a model picker
[sh3d id=1] shortcode (fully backwards compatible with 1.0.x)
Configurable size (max width) and aspect ratio (4:3, 16:9, 3:2, 1:1)
Optional auto-rotation and navigation panel
Several models on the same page
Uploaded archives are validated (a valid SweetHome3D model must contain a Home.xml entry)
How to use:
In SweetHome3D, export your house with the Export to HTML5 plug-in (menu Tools -> Export to HTML5)
Unzip the generated file. It contains a lib/ folder, viewHome.html, viewHomeInOverlay.html and your_house.zip — that inner ZIP is the file you need
In your WordPress admin, open the SweetHome3D menu and upload your_house.zip
Insert the SweetHome3D block, or copy the generated [sh3d id=X] shortcode into your content
Disclaimer: This plugin is not part of the SweetHome3D project and is not affiliated with its developer(s).
