Resource icon

Free Command line tool for obs-websocket plugin (Windows) 1.5.3+fixed_websocket

KardinalZyn

New Member
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! ^_^

Thanks!

Hey FSC,

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!

Background
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.

The Issue
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:

OBSCommand.exe /sendjson="SetSceneItemProperties={'scene-name':'Overlay','item':'UserWhoTriggered','position.x':'960','position.y':'740'}"

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?

HUUUUUGE THANKS!
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!

-KardinalZyn
 

FSC

Member
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! ^_^

Thanks!
Awesome! You are welcome and thanks for sharing your findings =)
 
Top