Ignore all of this except the part where I thank you and think you are awesome for making OBSCommand, because I just learned about custom extents in OBS which solved my issue! ^_^
First of all, THANK YOU for an AMAZING utility! This thing ROCKS! ^_^ That said, I am having an issue and I am hoping you can help!
I have a GDI+ Text source named UserWhoTriggered inside a scene named Overlay. The GDI+ Text source named UserWhoTriggered reads from a text file, and the string in the text file is rewritten every time a viewer triggers a certain bot command. The result of this, is that the GDI+ Text source named UserWhoTriggered is never centered on my screen because the length of the string is always changing.
What I Want to Achieve
Immediately before I use OBSCommand to show this source, I want to use OBSCommand to center this GDI+ Text source named UserWhoTriggered on the screen, horizontally. I want to do this so no matter the length of the username that is stored as a string in the text file that the GDI+ Text source reads from, the text will always be centered horizontally on the screen.
I am trying to use the /sendjson option with SetSceneItemProperties to set this GDI+ Text source to a certain x/y position, and it doesn't appear to be working. Here is what I am sending:
Question re: position.alignment
Also, can you explain this a bit more too re: position.alignment?
"The point on the source that the item is manipulated from. The sum of 1=Left or 2=Right, and 4=Top or 8=Bottom, or omit to center on that axis."
What int value would I use to manipulate from the point that is at both the vertical and horizontal center of the source?
Sorry to be so wordy, I wanted to give you more info rather than less! ^_^ Thank you again SO MUCH for this FANTASTIC tool! It really has added life to my stream! ^_^
Thanks in advance for your response! I appreciate you and your hard work on this project FSC!