GithubHelp home page GithubHelp logo

shanselman / powerpointtoobssceneswitcher Goto Github PK

View Code? Open in Web Editor NEW
215.0 22.0 70.0 25 KB

A .NET core based scene switcher than connects to OBS and changes scenes based note meta data. Put "OBS:Your Scene Name" as the first line in your notes and ensure the OBS Web Sockets Server is running and this app will change your scene as you change your PowerPoint slides

License: MIT License

C# 100.00%

powerpointtoobssceneswitcher's Introduction

PowerPointToOBSSceneSwitcher

A .NET core based scene switcher that connects to OBS and changes scenes based note meta data. Put "OBS:Your Scene Name" on its own line in your notes and ensure the OBS Web Sockets Server is running and this app will change your scene as you change your PowerPoint slides.

Note this won't build with "dotnet build," instead open a Visual Studio 2019 Developer Command Prompt and build with "msbuild"

This video explains how it works!

Watch the video

Usage

  • Set a scene for a slide with
OBS:{Scene name as it appears in OBS}

Example:

OBS:Scenename
  • Set a default scene (used when a scene is not defined) with
OBSDEF:{Scene name as it appears in OBS}

Example:

OBSDEF:DefaultScene

UPDATE: For many this just clones and builds, but for some folks (unknown why) it doesn't.

Here are some instructions that worked for community member Harold Dickerman. I haven't tested these instructions:

  1. Here are the build instructions for PowerPointToOBSSceneSwitcher: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio-exp/?sku=Community&rel=16

    • .NET Development (Core only, No Optional requirements)
    • Individual Components: C# and Visual Basic Roslyn compiler, MSBUILD
  2. Ensure NuGet.org is listed in Visual Studio as a package source, per fix: https://stackoverflow.com/questions/52376567/how-to-resolve-unable-to-find-package-nuget-error

  3. Download and install: https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-3.1.14-windows-x64-installer

  4. Download and install: https://github.com/Palakis/obs-websocket/releases/download/4.9.0/obs-websocket-4.9.0-Windows-Installer.exe

  5. Download and unzip https://github.com/shanselman/PowerPointToOBSSceneSwitcher/archive/refs/heads/main.zip

  6. Double click on PowerPointToOBSSceneSwitcher.sln should open Visual Studio

  7. Select Build > Build PowerPointToOBSSceneSwitcher.sln

powerpointtoobssceneswitcher's People

Contributors

bjeans avatar bparks avatar marcjenningsuk avatar nahakiole avatar rdmueller avatar shanselman avatar skipishere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerpointtoobssceneswitcher's Issues

CI/CD Pipelines failing in my private repository.

I cloned this repo and set my remote as a private repository. I setup a CI/CD pipeline to build the project

But I am getting these errors:

##[error]Program.cs(4,17): Error CS0234: The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
##[error]Program.cs(30,50): Error CS0246: The type or namespace name 'SlideShowWindow' could not be found (are you missing a using directive or an assembly reference?)
##[error]Program.cs(11,24): Error CS0246: The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?)

What am I doing wrong?

cc @shanselman

Mac support

I watched your video and was really energised by it. Is it possible to use this code on Mac? I have no experience with .Net

Thanks!
Nick

LAN support

Hi,

Big fan of this awesome piece of code. I'm curious if there is a fix for the "thing" I'm running into.

I'm using 2 laptops, 1 for presenting and 1 for streaming, the presenterfeed is send to the stream pc via NDI.

How can I enable this scene switcher to communicate with OBS on the other computer within the same LAN network?

I have tried to change the localhost ip into the other computers name and also tried the IP but this doesnt seem to be enough to make it work.

Any suggestions?

Karel

Can't advance slides in PowerPoint

When the PowerPointToOBSSceneSwitcher console application is running and I start the slideshow the first slide appears and OBS switches to the correct scene. However powerpoint has lost control, as in I can't advance to the next slide with a key press or mouse click until I exit the console app.

Steps to recreate

  • Run PowerPoint (in my case PowerPoint 2019, not O365 version)
  • Load up my freshly creately PPTX file with the OBS:Scene1, OBS:Scene2, etc
  • Open OBS Studio
  • Run PowerPointToOBSSceneSwitcher (I've tried running from VS2019 and as a publish console app)
  • Start SlideShow

OBS switched to Scene1 correctly and on my first monitor the slideshow starts.

But I now can't advance to the next slide.

Ideas?

It doesn't build with msbuild

error CS0246: The type or namespace name 'ObsWebSocket' could not be found (are you missing a usi
ng directive or an assembly reference?)

error NU1101

I always get this error after try to build yout code to an exe:
error NU1101: Unable to find package OBS.WebSocket.NET. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages

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.