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
Dave Cruickshank  
#1 Posted : Saturday, September 14, 2024 12:14:42 PM(UTC)
Dave Cruickshank

Rank: Member

Groups: Registered
Joined: 9/12/2021(UTC)
Posts: 22
Man
Canada
Location: Medicine Hat, AB

Thanks: 1 times
Hey Gang. I have a question, and after exhaustive research, I can't find the answer to this.

I have a VMIX session that has multiple VMix callers on it. Every now and then, I have to put a timer on one of the callers to time their response (They get 10 minutes to answer the question).
Depending on the moment, that caller might appear on different parts of the screen, but the timer ALWAYS needs to be on them.

I have 2 titles (one for "blue" caller, and one for "red" caller).

I can set that title into a layer, and remotely turn the layer on and off when I need to (with LayerOnOff), but that doesn't trigger any kind of custom title animation (which is built into the title).

IS it possible to trigger the Title animation so that it animates on, and animates off... just like a regular overlay, but only on one specific channel?

I know I can manually "transitionIn" and "transitionOut" the animation by right-clicking on the element itself, but I can't see a way to do it with a shortcut.
dmwkr  
#2 Posted : Saturday, September 14, 2024 4:02:19 PM(UTC)
dmwkr

Rank: Advanced Member

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

Thanks: 62 times
Was thanked: 128 time(s) in 117 post(s)
Hey Dave,

the function is "TitleBeginAnimation", where you use eg. "TransitionIn" as the value.

thanks 1 user thanked dmwkr for this useful post.
Dave Cruickshank on 9/14/2024(UTC)
Dave Cruickshank  
#3 Posted : Saturday, September 14, 2024 4:44:47 PM(UTC)
Dave Cruickshank

Rank: Member

Groups: Registered
Joined: 9/12/2021(UTC)
Posts: 22
Man
Canada
Location: Medicine Hat, AB

Thanks: 1 times
Thank you! I will try that!

While we're at it.

What would be the Web script for turning a layer on/off?

I'm trying to turn on and off a layer in a script with a Streamdeck.

I'm using:

Function=LayerOnOff=5,24

This should toggle on/off Layer 5 on Input 24), but it's not working. I can understand this stuff if the documentation points me in the right direction... but I find it's REALLY BAD at showing me the proper syntax.

The docs say:


Toggle On/Off Layer For Input At Index (starting from 1) Value,Input where Value=Index (so, 5,24 for layer 5 at Input 24)

Where am I going wrong?
doggy  
#4 Posted : Saturday, September 14, 2024 4:56:47 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 290 times
Was thanked: 952 time(s) in 787 post(s)
Originally Posted by: Dave Cruickshank Go to Quoted Post
Thank you! I will try that!

While we're at it.

What would be the Web script for turning a layer on/off?

I'm trying to turn on and off a layer in a script with a Streamdeck.

I'm using:

Function=LayerOnOff=5,24

This should toggle on/off Layer 5 on Input 24), but it's not working. I can understand this stuff if the documentation points me in the right direction... but I find it's REALLY BAD at showing me the proper syntax.

The docs say:


Toggle On/Off Layer For Input At Index (starting from 1) Value,Input where Value=Index (so, 5,24 for layer 5 at Input 24)

Where am I going wrong?



Streamdeck calls script, script uses functions (API or Web depening on if more logic is used witin the script)
https://forums.vmix.com/posts/m70833-Scripting-for-Dummies#post70833

or Streamdeck calls function (shortcut) directly

https://www.vmix.com/knowledgebase/article.aspx/180/using-the-elgato-stream-deck-with-vmix


or Streamdeck uses its own Hotkey option to calls the key of an allready defined vMix shortcut or uses the Website option to send a httprequest of the function (advantage of the latter vMix Gui does not have to be the active one )


FYI function needs the input where to act and its value (layer) separatly specified
dmwkr  
#5 Posted : Saturday, September 14, 2024 8:36:16 PM(UTC)
dmwkr

Rank: Advanced Member

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

Thanks: 62 times
Was thanked: 128 time(s) in 117 post(s)
As doggy said, your function needs a different syntax.

Here is an example for the syntax:
https://www.vmix.com/help27/WebScripting.html

Everthing connected by an "&" is a "parameter".

In this table you'll find the needed parameters for every function:

https://www.vmix.com/hel...utFunctionReference.html

What is needed in the value parameter is described in the text.

(The order of the parameters doesn't matter, I prefer to put the input always first.)

So this should work:

Code:
Function=LayerOnOff&Input=24&Value=5

Dave Cruickshank  
#6 Posted : Monday, September 16, 2024 8:19:27 AM(UTC)
Dave Cruickshank

Rank: Member

Groups: Registered
Joined: 9/12/2021(UTC)
Posts: 22
Man
Canada
Location: Medicine Hat, AB

Thanks: 1 times
THIS! Thank you! That solves my problem. I appreciate it.
Users browsing this topic
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.