You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was trying out something with setVectorLines, namely to generate some squares on demand. Went and looked at the data of a square made by the Draw Tool. I noticed the "loop" data member and tried to input it on the table that you feed setVectorLines with, and it worked.
As a side note, lines have a "square" data member, that I wasn't able to change through setVectorLines. Although it shows in the data, TTS seems to ignore it (even when setting it directly on the savefile).
The text was updated successfully, but these errors were encountered:
It's been an annoyingly undocumented feature for a while, presumably it's an unsupported feature that TTS uses for its inbuilt drawing tools but isn't polished enough for the rest of us. Doesn't stop me using them though.
loop determines whether the vector lines should loop from the last vertex to the first square determines whether the vector lines should have rounded corners and ends
Setting loop = true implicitly sets square = true for some reason, breaks the corner rounding calcs perhaps
I agree with your reasoning, just wanted to point out, in case it was something that was meant to be documented, but just slipped through the cracks. Weirdly though, square = true never seems to be correctly reported (just checked this by drawing a square and print(JSON.encode_pretty(Global.getVectorLines())) ).
Was trying out something with setVectorLines, namely to generate some squares on demand. Went and looked at the data of a square made by the Draw Tool. I noticed the "loop" data member and tried to input it on the table that you feed setVectorLines with, and it worked.
The information is missing from the docs at https://api.tabletopsimulator.com/object/#setvectorlines , so, just pointing this out.
As a side note, lines have a "square" data member, that I wasn't able to change through setVectorLines. Although it shows in the data, TTS seems to ignore it (even when setting it directly on the savefile).
The text was updated successfully, but these errors were encountered: