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 =)
 

porpho

New Member
Fatastic tool, thank you very much for making it. When I saw that it allows to take a screenshot, I could not belive it. That feature is not available in the OBS UI and you provide it. Thank you!
 

FSC

Member
Fatastic tool, thank you very much for making it. When I saw that it allows to take a screenshot, I could not belive it. That feature is not available in the OBS UI and you provide it. Thank you!
Thank you for the feedback! Most of the credit belongs to obs-websocket, which provides that feature!
 

AdrienMenielle

New Member
Hi and thank you for making this extremely useful tool!

I have an issue though: when I try to modifiy the properties of a GDI+ text via /command=SetTextGDIPlusProperties or /sendjson, I get an error message : "not a text gdi plus source". Apparently it's a known bug on previous versions of obswebsocket : https://github.com/Palakis/obs-websocket/pull/448

Is OBScommand using the latest version of obswebsocket?

Thank you!
 

Shreg

New Member
Hey there,
first of all, thanks for your work. But I habe a question how to mute/unmute Desktop Audio 2. I tried different ways but could't figure it out.
Thank you
 

FSC

Member
Hey there,
first of all, thanks for your work. But I habe a question how to mute/unmute Desktop Audio 2. I tried different ways but could't figure it out.
Thank you
Hi, you're welcome!

That should work with:
OBSCommand.exe /mute="Desktop Audio 2"
OBSCommand.exe /unmute="Desktop Audio 2"
 
Top