mirror of
https://github.com/prusa3d/PrusaSlicer.git
synced 2026-11-26 23:29:07 +00:00
20 lines
461 B
Lua
20 lines
461 B
Lua
info = {
|
|
id = "hello",
|
|
type = "project.plugin",
|
|
title = "Hello world",
|
|
menu = "Tutorial/Hello world",
|
|
params = {
|
|
{name = "text", label = "Text", type = "string", default = "Hello world"}
|
|
}
|
|
}
|
|
|
|
function execute(opts)
|
|
api.project:add_object{
|
|
mesh=api.emboss_text{
|
|
font=api.get_default_font(),
|
|
text=opts.text,
|
|
depth=1
|
|
},
|
|
object_params={fill_density="0%"}
|
|
}
|
|
end
|