This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
OBS Studio Lua script : Run a Command Line with hotkeys | |
Author: Jonathan Wood | |
Version: 0.1 | |
Released: 2024-06-26 | |
references: https://obsproject.com/forum/resources/hotkeyrotate.723/, https://obsproject.com/forum/threads/command-runner.127662/ | |
-- This script is intended to work with a Browser Source. | |
-- To use this script enter a command line into a text source. | |
-- Use a javascript to listen for the text source changed event. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
OBS Studio Lua script : Run a command-line trigged by a hotkey | |
Author: Jonathan Wood | |
Version: 0.1 | |
Released: 2024-03-23 | |
references: https://obsproject.com/forum/resources/hotkeyrotate.723/, https://obsproject.com/forum/threads/command-runner.127662/ | |
https://github.com/jtfrey/uvc-util | |
--]] | |
local obs = obslua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local obs = obslua | |
local ffi = require("ffi") | |
local obsffi | |
local cur_settings | |
local prev_settings | |
ffi.cdef[[ | |
struct obs_source; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { contextBridge, ipcRenderer } = require('electron'); | |
const cameraID = ipcRenderer.sendSync('camera-ID'); | |
window.addEventListener('DOMContentLoaded', () => { | |
//console.log("cameraID ", cameraID ) | |
const dataElement = document.createElement(`data`); | |
dataElement.setAttribute("id", "cameraID"); | |
dataElement.setAttribute("data-camera-Id", cameraID); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'"> | |
<link href="./styles.css" rel="stylesheet"> | |
<title>Hello World!</title> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP --> | |
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> | |
<title>Reveal Player</title> | |
</head> | |
<body> | |
<h1 >Enter OBS WebSocket server details</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Reveal Player</title> | |
</head> | |
<body> | |
<h2>Choose a Reveal slide deck</h2><br/> | |
<p >Open in transparent window</p> | |
<input type="file" onchange="transparentWindow()"/><br/><br/><br/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update OBS Text Sources with Excel | |
description: >- | |
This script gets all the text sources from OBS. When a text value is updated | |
in Excel, the update also appears in OBS. | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
$("#register-event-handlers").click(() => tryCatch(registerEventHandlers)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OBS WebSocket Sample (1) | |
description: >- | |
A Register handles the `onSelectionChanged` events and sends the selected cell | |
value to OBS via OBS WebSockets js | |
host: EXCEL | |
api_set: {} | |
script: | |
content: "$(\"#register-event-handlers\").click(() => tryCatch(registerEventHandlers));\n\nasync function registerEventHandlers() {\n await Excel.run(async (context) => {\n // Add a selection changed event handler for the workbook.\n context.workbook.worksheets.onSelectionChanged.add(onWorksheetSelectionChange);\n console.log(\"Change the seleceted cell\");\n await context.sync();\n });\n}\n\nasync function onWorksheetSelectionChange(args: Excel.WorksheetSelectionChangedEventArgs) {\n await Excel.run(async (context) => {\n //get selected cell value\n let myWorkbook = context.workbook;\n let activeCell = myWorkbook.getActiveCell();\n activeCell.load(\"values\");\n await context.sync();\n let cellText = activeCell.values.toString();\n console.log(\"The\_active\_cell\_is\_\" + cell |