中文说明在下方
English Version
We’re excited to announce that Parametric Model Maker V0.10.0 is now available! This update brings several new features and improvements, including multi-plate 3MF generation, 3MF profile configuration, an improved font selection UI, and better error handling for oversized models. Let’s dive into the details!
Multi-Plate 3MF Generation
Parametric Model Maker now supports exporting 3MF files with multiple plates. You can define a separate module for each plate using the following syntax:
module mw_plate_1() {
// Code to generate models on Plate 1
}
module mw_plate_2() {
// Code to generate models on Plate 2
}
...
The module name must follow the pattern "mw_plate_"
followed by an integer.
Optional: Assembly View
You can also define an assembly view module (optional), which helps users preview the complete assembly. The assembly view will not be included in the exported 3MF file. Use the following syntax:
module mw_assembly_view() {
// Code to generate models in assembly view
}
Example
The following code defines two plates:
module mw_plate_1() {
color("#FF0000") cube(10);
}
module mw_plate_2() {
color("#00FF00") cube(10);
}
module mw_assembly_view() {
mw_plate_1();
translate([0,0,10]) mw_plate_2();
}
The preview in Parametric Model Maker:
The exported 3MF file in Bambu Studio:
NOTE: If your script uses the multi-plate 3MF feature, users CANNOT download STL files. We recommend providing two separate scripts: One script for multi-plate 3MF export and one script for STL file export.
3MF Profile Configuration
To offer more flexibility, the 3MF profile configuration allows creators to customize settings for users.
How to Edit the 3MF Profile:
-
Open Parametric Model Maker through the Model Upload/Edit page.
-
Click the profile configuration button in the top-right corner.
-
Adjust settings in the popup dialog.
-
IMPORTANT: Click the Upload button to save your changes.
Currently, only a few selected configurations are available. We will expand these options based on community feedback.
Improved Font Selection UI
We have integrated over 500 fonts from Google Fonts into Parametric Model Maker! To help users choose the right font, we have introduced a new font selection UI.
How to Use:
Define a variable using the following syntax:
textFont="default font name"; // font
NOTE: The // font
comment is required to enable the font selection UI.
Preview of the Font Selection UI:
Users can filter fonts based on language, style, serif type, and more!
Oversize Model Issue
Since v0.9, 3MF generation fails if the model does not fit within a plate. In this update, we have improved the error message for better clarity:
How to Fix Oversized Models:
-
If your model has multiple parts, separate them into different plates.
-
Disable “Auto Arrangement” in the profile configuration. Note: If “Auto Arrangement” is turned off, you must manually position objects.
中文
我们很高兴地宣布参数化模型编辑器 V0.10.0 正式发布!此次更新带来了多盘 3MF 生成、3MF 文件配置修改、更好的字体选择界面以及更清晰的超尺寸模型错误提示。让我们一起来看看详细更新内容!
多盘 3MF 生成
参数化模型编辑器现在支持导出包含多个盘的 3MF 文件。您可以使用以下语法为每个板块定义一个独立的模块:
module mw_plate_1() {
// 生成第 1 号盘上的模型
}
module mw_plate_2() {
// 生成第 2 号盘上的模型
}
...
模块名称必须遵循 "mw_plate_" + 整数
的命名规则。
可选:装配视图
您还可以定义一个装配视图模块(可选),用于帮助用户预览完整装配效果。装配视图不会被包含在导出的 3MF 文件中。使用以下语法定义:
module mw_assembly_view() {
// 生成装配视图中的模型
}
示例
以下代码定义了盘:
module mw_plate_1() {
color("#FF0000") cube(10);
}
module mw_plate_2() {
color("#00FF00") cube(10);
}
module mw_assembly_view() {
mw_plate_1();
translate([0,0,10]) mw_plate_2();
}
在 Parametric Model Maker 中预览:
导出 3MF 在 Bambu Studio 中:
注意: 如果您的脚本使用了多盘 3MF 功能,用户将无法下载 STL 文件。我们建议提供 两份独立的脚本:一个用于多盘 3MF 导出,一个用于 STL 文件导出。
3MF 配置修改
为了提供更大的灵活性,参数化模型编辑器允许创作者自定义 3MF 文件的打印参数。
如何编辑 3MF 配置:
-
通过模型上传/编辑页面进入参数化模型编辑器。
-
点击 右上角的配置按钮。
-
在 弹出对话框 中调整设置。
-
重要: 请务必点击 “上传” 按钮 以保存更改。
目前,仅支持部分配置项,未来将根据社区反馈逐步扩展可调整选项。
更好的字体选择界面
我们已集成超过 500 种 Google Fonts 字体 到参数化模型编辑器!为了帮助用户更轻松地选择字体,我们推出了 全新的字体选择界面。
如何使用:
定义一个变量,并使用以下语法:
textFont="默认字体名称"; // font
// font
注释是必须的,否则不会显示字体选择 UI。
字体选择 UI 预览:
用户可以通过语言、风格、衬线类型 等筛选条件来选择合适的字体。
超尺寸模型问题
自 v0.9 以来,如果模型尺寸超出一个盘可容纳范围,3MF 生成将会失败。本次更新针对该错误提供了更清晰的错误提示:
如何修复超尺寸问题:
-
如果模型包含多个零件,可以拆分到不同的盘上。
-
关闭 “自动摆盘”(Auto Arrangement) 选项。