Resource icon

OBS Lua Scene Execute Command 1.1.0

OBS script for executing any CLI command whenever whenever a scene is activated. Useful for:
  • Loading a preset of any PTZ camera when an OBS scene is activated.
  • Executing any command that does anything when an OBS scene is activated.
For documentation see the README.md included in the zip file, or read it on Github.
  • Like
Reactions: Wyld and Nicovdd
Author
Marq
Downloads
4,821
Views
11,396
First release
Last update
Rating
4.75 star(s) 4 ratings

Latest updates

  1. 1.1.0 - Optional logging of command output

    New option for logging command output, contributed by @IT-VBFK.
  2. Release 1.0.1

    Improved documentation.

Latest reviews

This worked perfectly with my Hilook (Hikvision) PTZ camera.
I used the setting from Nicovdd above as the Command
curl --anyauth --user admin:Password -X PUT http://192.168.1.64/ISAPI/PTZCtrl/channels/1/presets/SCENE_VALUE/goto

Then set the scene value to the preset number.
I had to setup the presets via the web interface for the camera. Used the Internet Explorer addon for Chrome.
marklagendijk responded within hours of my problem using this plugin to control a Datavideo PTC-140 camera. His advice was exactly correct.
Works excellent!

The command for my HikVision DS-2DE4225IW-DE to change between presets

curl --anyauth --user admin:Password -X PUT http://192.168.1.64/ISAPI/PTZCtrl/channels/1/presets/SCENE_VALUE/goto >> c:\OBSLogs\commandlogs
I wanted to execute batch script when switching my scenes, this Lua script allows me to do that! It is working great
Top