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
calamityjane  
#1 Posted : Wednesday, July 10, 2019 10:42:57 PM(UTC)
calamityjane

Rank: Advanced Member

Groups: Registered
Joined: 9/26/2014(UTC)
Posts: 96
Man
Location: Canada

Thanks: 36 times
Was thanked: 4 time(s) in 4 post(s)
I have a GT Designer graphic Title with a couple of elements "hidden" to start out. At some point I want to unveil them. I am struggling trying to ascertain the correct syntax of the API script.

I am thinking it should be:

http://127.0.0.1:8088/API/?Function=SetImageVisible&Value=1ytvscorebug1.gtzip&Image=HomeP2.Source


where the scorebug is the GT graphic and HomeP2.Source is the element I wish to unveil

Currently vMix displays whichever element is first in the list of hidden elements in the Title.

Looking for the correct syntax of this shortcut
doggy  
#2 Posted : Wednesday, July 10, 2019 11:01:03 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 1,124
Belgium
Location: Belgium

Thanks: 63 times
Was thanked: 195 time(s) in 173 post(s)
where did you get the SetImageVisible from ?
Peter1000  
#3 Posted : Thursday, July 11, 2019 3:31:29 AM(UTC)
Peter1000

Rank: Advanced Member

Groups: Registered
Joined: 1/25/2019(UTC)
Posts: 48
Switzerland

Was thanked: 6 time(s) in 5 post(s)
I use a small, full transparent picture as source and load the „visible“ on demand.
doggy  
#4 Posted : Thursday, July 11, 2019 5:56:11 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 1,124
Belgium
Location: Belgium

Thanks: 63 times
Was thanked: 195 time(s) in 173 post(s)
i meant as API function
calamityjane  
#5 Posted : Thursday, July 11, 2019 6:08:12 AM(UTC)
calamityjane

Rank: Advanced Member

Groups: Registered
Joined: 9/26/2014(UTC)
Posts: 96
Man
Location: Canada

Thanks: 36 times
Was thanked: 4 time(s) in 4 post(s)
Originally Posted by: doggy Go to Quoted Post
where did you get the SetImageVisible from ?



SetImageVisible is a function listed in the shortcuts for Titles. When designing the Title graphic I make this element "Show Visble Toggle" in the data tab. You can then use this shortcut to make it visible.

My issue I can't make it work ( I don't know the syntax) for the API script. It works in Web Controller but I cant find the right combination in the API script.

Whit
doggy  
#6 Posted : Thursday, July 11, 2019 7:29:23 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 1,124
Belgium
Location: Belgium

Thanks: 63 times
Was thanked: 195 time(s) in 173 post(s)
My apologies, i was still on .54 (not .60)

http://127.0.0.1:8088/API/?Function=SetImageVisible&Input=demo.gtzip&Image=Image1.Source , for the Image one can use also SelectedIndex=#
thanks 1 user thanked doggy for this useful post.
calamityjane on 7/11/2019(UTC)
calamityjane  
#7 Posted : Thursday, July 11, 2019 8:31:12 AM(UTC)
calamityjane

Rank: Advanced Member

Groups: Registered
Joined: 9/26/2014(UTC)
Posts: 96
Man
Location: Canada

Thanks: 36 times
Was thanked: 4 time(s) in 4 post(s)
Originally Posted by: doggy Go to Quoted Post
My apologies, i was still on .54 (not .60)

http://127.0.0.1:8088/API/?Function=SetImageVisible&Input=demo.gtzip&Image=Image1.Source , for the Image one can use also SelectedIndex=#


Hi

Hurrah, your suggestion re SelectedIndex worked.

Thank thank you

Whit
doggy  
#8 Posted : Thursday, July 11, 2019 3:45:32 PM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 1,124
Belgium
Location: Belgium

Thanks: 63 times
Was thanked: 195 time(s) in 173 post(s)
To be honest it was all there not? :-)

shortcut.JPG (34kb) downloaded 0 time(s).


be it Image or SelectedValue don't seem to be able to accept which when multiple images are in the title i case of an API request
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.