How to set label font in Lua scripts

How to set label font in Lua scripts

blinue
Observer Observer
877 Views
3 Replies
Message 1 of 4

How to set label font in Lua scripts

blinue
Observer
Observer

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!

0 Likes
Accepted solutions (1)
878 Views
3 Replies
Replies (3)
Message 2 of 4

steffen_anders_adsk
Autodesk Support
Autodesk Support

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

 

Steffen Anders
Autodesk Netfabb team

Netfabb resources: Online helpSystem requirementsKnowledge baseForumsHomepageYouTube

How to get Netfabb Basic: VideoHelpDownload

0 Likes
Message 3 of 4

blinue
Observer
Observer

Thank you for your quick response! So, it's not possible to change the label font in Lua? Are there any alternative solutions?

0 Likes
Message 4 of 4

steffen_anders_adsk
Autodesk Support
Autodesk Support
Accepted solution

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.

 

Steffen Anders
Autodesk Netfabb team

Netfabb resources: Online helpSystem requirementsKnowledge baseForumsHomepageYouTube

How to get Netfabb Basic: VideoHelpDownload

0 Likes