Hello everyone!
We are using Lua scripts to automate mesh labeling. I have read through the documentation of Stamper and found that it doesn't provide an API to customize the typeface. According to the documentation: "The stamper uses the typeface, size, style, and variant set in the Settings." I tried changing the default label font in Netfabb's settings, but it didn't work. Could anyone please advise on the correct way to set the label font?
Thank you!
Solved! Go to Solution.
Hello everyone!
We are using Lua scripts to automate mesh labeling. I have read through the documentation of Stamper and found that it doesn't provide an API to customize the typeface. According to the documentation: "The stamper uses the typeface, size, style, and variant set in the Settings." I tried changing the default label font in Netfabb's settings, but it didn't work. Could anyone please advise on the correct way to set the label font?
Thank you!
Solved! Go to Solution.
Solved by steffen_anders_adsk. Go to Solution.
Hello, @blinue,
Welcome to the Netfabb forum!
I must apologise, the documentation is wrong. The typeface selection, including its weight, variant, style, size, and other parameters currently have no effect on the Lua stamper; they are set internally to defaults when the object is created and there are no properties or methods exposed to affect them.
I will correct the documentation.
Kind regards,
Steffen
Hello, @blinue,
Welcome to the Netfabb forum!
I must apologise, the documentation is wrong. The typeface selection, including its weight, variant, style, size, and other parameters currently have no effect on the Lua stamper; they are set internally to defaults when the object is created and there are no properties or methods exposed to affect them.
I will correct the documentation.
Kind regards,
Steffen
Thank you for your quick response! So, it's not possible to change the label font in Lua? Are there any alternative solutions?
Thank you for your quick response! So, it's not possible to change the label font in Lua? Are there any alternative solutions?
With the release of Netfabb 2025.1 today, this has been fixed and even expanded with greater customisability.
The documentation page https://help.autodesk.com/view/NETF/2025/ENU/?guid=NETF-LUA-STAMPER has been updated accordingly.
With the release of Netfabb 2025.1 today, this has been fixed and even expanded with greater customisability.
The documentation page https://help.autodesk.com/view/NETF/2025/ENU/?guid=NETF-LUA-STAMPER has been updated accordingly.
Can't find what you're looking for? Ask the community or share your knowledge.