logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
AGP Video  
#1 Posted : Friday, December 8, 2023 2:10:16 PM(UTC)
AGP Video

Rank: Newbie

Groups: Registered
Joined: 12/8/2023(UTC)
Posts: 1
United States
Location: California

Thanks: 1 times
Hi all,

I've been working on building a custom vMix preset that's tightly integrated with both PTZ cameras and the X-Keys XK68 joystick. I've been able to do everything with shortcuts and activators so far, but am struggling with the PTZ virtual input workflow.

Here's the workflow I'm trying to achieve, using 1 button (SET) to set presets and 12 more (P1-12) to call them:

1. Press the SET button, which should start blinking to indicate it's in 'set' mode.
2. Press one of the preset buttons, e.g P1. This should set the position of the matching virtual input (#1) for the camera currently in preview.
3. Press the P1 button, which should call virtual input 1 for the camera that's in preview.

I'm almost certain I'll need a VB.NET script to do this, but I'm confused about one aspect of vMix scripting:
Is there a way to run a script that can be started by one key, and then listen for a different key being pressed? (In this case, the 'set preset' key in step 1 would start the script, and then listen for a keypress on one of the preset keys in step 2.)

I'm new to vMix, so I'd greatly appreciate any guidance you're willing to give.
dmwkr  
#2 Posted : Friday, December 8, 2023 3:41:52 PM(UTC)
dmwkr

Rank: Advanced Member

Groups: Registered
Joined: 2/23/2019(UTC)
Posts: 561

Thanks: 62 times
Was thanked: 131 time(s) in 119 post(s)
Originally Posted by: AGP Video Go to Quoted Post

Is there a way to run a script that can be started by one key, and then listen for a different key being pressed? (In this case, the 'set preset' key in step 1 would start the script, and then listen for a keypress on one of the preset keys in step 2.)


Welcome AGP Video.
Afaik, that's not possible. But you can use eg. a dynamic value to indicate a certain state (like "SET MODE"), retrieve it in a script and execute functions depending on the state.
thanks 1 user thanked dmwkr for this useful post.
AGP Video on 12/9/2023(UTC)
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.