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
David_in_Philly  
#1 Posted : Wednesday, December 29, 2021 6:16:41 PM(UTC)
David_in_Philly

Rank: Advanced Member

Groups: Registered
Joined: 11/21/2017(UTC)
Posts: 124
United States
Location: Philadephia, PA

Thanks: 31 times
Was thanked: 13 time(s) in 8 post(s)
Hi.

I've been beating my head against a wall, trying to create a webscript or VBscript or Companion Custom Command that will allow me to do the following:

Use three variables (dynamic inputs and dynamic values) TO:

2. Set an input for multiview layers (DynamicInput1)

3. Set a layer to change (DynamicValue1)

4. Set an input to fill that layer (DynamicInput2)

The problem is #3, setting the layer requires a comma in the value statement and I can't seem to do that in this context - so I need a work-around.

Here's my use case:

I repeatedly use 1-8 box multiview (layered) inputs.

I want to be able to select which input, layer and input to fill that layer very quickly - and change those parameters mid-show, using as few keys on a Stream Deck as possible:

- Keys in Row-1 (Sets the input name or number (8 buttons - 1-Box, 2-Box....8-Box)
- Keys in Row 2 (Sets the layer number (1-8)
- Keys in Row-3, Row 4, etc. (Sets the Input number to feed that layer)
- One additional key calls a script or provides a Companion Custom Command that combines those 3 variables into a function or group of functions)

That's it. I'd sincerely appreciate any samples or advice that can accomplish this.

Best,

David
doggy  
#2 Posted : Wednesday, December 29, 2021 6:35:39 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,216
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
FYI vb.net scripting not VBscript

Read values from the Dynamics from the API XML and combine them as one string (with the comma included ;-) ) to use in the layer function within the script


a similar situation:
thanks 1 user thanked doggy for this useful post.
David_in_Philly on 12/29/2021(UTC)
David_in_Philly  
#3 Posted : Wednesday, December 29, 2021 11:40:06 PM(UTC)
David_in_Philly

Rank: Advanced Member

Groups: Registered
Joined: 11/21/2017(UTC)
Posts: 124
United States
Location: Philadephia, PA

Thanks: 31 times
Was thanked: 13 time(s) in 8 post(s)
Awesome! Thanks Doggy!
That’s really helpful.
lainol  
#4 Posted : Wednesday, January 5, 2022 12:56:46 AM(UTC)
lainol

Rank: Member

Groups: Registered
Joined: 12/4/2018(UTC)
Posts: 16

Thanks: 2 times
Was thanked: 3 time(s) in 2 post(s)
Companion has presets for that(not sure if only in the beta version), really usefull and fast
nowski  
#5 Posted : Tuesday, January 11, 2022 8:34:46 PM(UTC)
nowski

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 135
Location: UK

Thanks: 15 times
Was thanked: 11 time(s) in 9 post(s)
I'm struggling with this exact thing using Companion. So far nothing seems to work.
Tried using the pr-emade SetMultiViewOverlay function in Companion but you cant use a dynamic value in the Layer field.
Also tried VMIX run custom command:

SetMultiViewOverlay Input=40&Value=Dynamic4,66

This does not work either but using a number in the layer parameter works fine.

SetMultiViewOverlay Input=40&Value=1,66

Seems dynamic values are not handled properly in this command. - Unless I'm doing it wrong.
doggy  
#6 Posted : Tuesday, January 11, 2022 8:49:12 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,216
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: nowski Go to Quoted Post


SetMultiViewOverlay Input=40&Value=Dynamic4,66

This does not work either but using a number in the layer parameter works fine.

SetMultiViewOverlay Input=40&Value=1,66

Seems dynamic values are not handled properly in this command. - Unless I'm doing it wrong.



Has been addressed before here , Dynamic values are working just fine
The SetMultiViewOverlay value is asking for one value (string in a format x,x).
Get the content of the Dynamic , add that before the string containing ",66" and use that and all will be fine
One can get the actual content of the dynamic using the vMix API
nowski  
#7 Posted : Tuesday, January 11, 2022 9:11:27 PM(UTC)
nowski

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 135
Location: UK

Thanks: 15 times
Was thanked: 11 time(s) in 9 post(s)
Ah ok. But in the case of companion integration that is less easilly acheived I think.
Not sure how one can concatenate strings in a single button press:
Scenario:
Mode Button - sets a value to the layer number (1 or 5 in my case) in Dynamic4
Input button - sets the fixed input value - say 66 to layer set in Mode button
would need to somehow set a string to equal "1,66" from Dynamic4

I am attempting to set the 2 box L or R content using minimal number of buttons (4 + mode button)

I just cant see how I might do that from Companion
nowski  
#8 Posted : Wednesday, January 12, 2022 1:11:02 AM(UTC)
nowski

Rank: Advanced Member

Groups: Registered
Joined: 8/5/2017(UTC)
Posts: 135
Location: UK

Thanks: 15 times
Was thanked: 11 time(s) in 9 post(s)
So I probably need to involve a script element I think and call that from a Companion button.

You did say it was available in the WEB API, but cant find the reference. Or will I have to query the XML to get it?
Users browsing this topic
Guest
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.