Line Thickness

Hi guys,

What strategy do you advise for displaying line thickness?

Human’s “Custom Preview Lineweights” component is not supported,
is there any way to directly affect display line thickness in the scene?

This can be done only on API level at the moment. You can update various scene assets with api.parameters.updateAsync() as covered in this tutorial. Assuming there is only one display output for all lines in your Grasshopper definition, the updateObject would then contain ID of the this output object and new LineMaterial properties.

It’s important to note that suport for line rendering is still in early stage and might not work reliably.

1 Like