Coder Social home page Coder Social logo

Comments (6)

haganbmj avatar haganbmj commented on May 29, 2024

I haven't been able to get a bounds value out of obs-websocket, I don't believe those values come out of obs-studio at all right now.

I'm not entirely sure on changing dimensions, I know at the moment obs-websocket doesn't support that. Palakis has a placeholder for that functionality, though, so it might be possible with the current obs-studio API and just hasn't been written.

from obs-websocket-js.

Palakis avatar Palakis commented on May 29, 2024

No, atm you can't move an item or change its size. Gonna check this out in the coming days.

from obs-websocket-js.

kendotpm avatar kendotpm commented on May 29, 2024

Any progress on this? Was toying with an idea of a NodeCG dashboard panel using this to change a scene's sources / transforms on the fly and wanted to see how far I could push that.

Specifically looking at these:

from obs-websocket-js.

Palakis avatar Palakis commented on May 29, 2024

@krazyken04 the bounds issue is fixed in the current codebase of obs-websocket. It will be included in the next release of obs-websocket.

from obs-websocket-js.

haganbmj avatar haganbmj commented on May 29, 2024

I'm rewriting this project from scratch. Just have had some other priorities and stuff that comes first.
I'll have Position/Transform in there, they're not currently in a 'released' version of obs-websocket. If you'd like to have the functionality now you can call the following methods, but I can't guarantee I'll keep this internal formatting for the next version.

ws._sendRequest('SetSceneItemPosition', { 'item': 'SOURCE_NAME', 'x': 123, 'y': 123 }, callback);
ws._sendRequest('SetSceneItemTransform', { 'item': 'SOURCE_NAME', 'x-scale': 2.5, 'y-scale': 2.5, 'rotation': 90 }, callback);

Callback will just be the standard err, data as a pass/fail.

from obs-websocket-js.

haganbmj avatar haganbmj commented on May 29, 2024

Rewrite was published. I'll be doing some documentation and stuff, but in the meantime read here for more info
Note that I pretty much abandoned all the custom method names and such.

#16 (comment)

from obs-websocket-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.