Grasshopper style - text alignment VA

Hello, I would like to advise you about setting the text - I am sending a simple example - in grasshopper I prepare a simple script whose output is the text in a circle - it should be in its center. I will set the alignment to the center. The display in grasshopper is fine.
When I paste the script into VA between Annotation Tools, the text is no longer center aligned. In the text settings I have set this to center alignment. Yet in the text it is still left bottom alignment.
Am I missing something I’m doing wrong?
I have a number of ideas for custom annotation tools, but this has me stumped a bit.

If I click on the alignment settings in rhino, it shifts to the center for a while, but as soon as I insert another block, it’s misaligned again - captured on video - Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.

Thanks so much in advance for the help.


text.gh (35.0 KB)
text.3dm (3.5 MB)

Hi @user1721,

I have been testing it and it is working in the same way to me. I have just reported the issue to find a solution so I will let you know once I have news.

Hi @user1721 we have implemented a solution for controlling the text alignment in gh styles. It’s available in the last VA3 Beta 8 version.
You can use now the “Text Alignment” component to define the alignment of the text in the GH file. If you change that component’s name to that syntax %<component.textAlignment>%, you will be able to control also the text alignment to the object directly:

image

Similar syntax can be used to control other attributes of that text. For example, use the %<component.textHeight>% on a Number Slider parameter to control the text size, or the %<component.fontFamily>% for the Font.

1 Like