logo

Live Production Software Forums


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

Notification

Icon
Error

64 Pages«<5051525354>»
Options
Go to last post Go to first unread
amir29918  
#1021 Posted : Tuesday, November 10, 2020 7:12:55 AM(UTC)
amir29918

Rank: Member

Groups: Registered
Joined: 8/25/2020(UTC)
Posts: 11
Iran (Islamic Republic Of)

Thanks: 9 times
Originally Posted by: elgarf Go to Quoted Post
@amir, is this just a number of seconds or something with colons, like mm:ss?


uumm

I'm using timer widget (ss) , the default time on 24 second reverse , and I need when the timer under 5 second , the orange image is visible and else it invisible that orange image .. Is it possible?? like this

Untitled1.png (8kb) downloaded 1 time(s).
elgarf  
#1022 Posted : Tuesday, November 10, 2020 6:00:26 PM(UTC)
elgarf

Rank: Advanced Member

Groups: Registered
Joined: 10/23/2015(UTC)
Posts: 458
Man
Russian Federation

Thanks: 20 times
Was thanked: 225 time(s) in 129 post(s)
@amir29918, replace @number="2" and @index="0" with your input number ant text indexes.

Code:
xpath(...) * 1


Is used to convert string result of xpath function to numeric value. Then this value compared to 5.
You can also use @key="{0}" (set input 1 parameter to your title) instead of @number="2".

Code:
>Condition(, , xpath('vmix/inputs/input[@number="2"]/text[@index="0"]') * 1, <, 5)
	>*SetXVisibleOn(, 0, Image)
	>*Else()
	>*SetXVisibleOff(, 0, Image)
>ConditionEnd()
>Timer(500)
>GoTo(0)



Logic is:

Code:
if value in title < 5 then
  show image
else
  hide image

wait 500msec
repeat from beginning
thanks 1 user thanked elgarf for this useful post.
amir29918 on 11/11/2020(UTC)
cocalo  
#1023 Posted : Wednesday, November 11, 2020 11:36:46 PM(UTC)
cocalo

Rank: Newbie

Groups: Registered
Joined: 3/28/2020(UTC)
Posts: 4
Spain
Location: Madrid

Thanks: 1 times
First, thank you for this excellent application and secondly apologize for my horrible English, I hope I can explain correctly.

I am trying to make a script so that depending on the signal in the program or preview it executes a script or another.

Something like:

If activeinput == input 1 (or previewInput == 1)
script 1
Else
script 2

Well I am not able to do this condition, I have tried things like:

Condition (,, activeInput, ==, Input 1)
Condition (,, -1, ==, Input 1)
Condition (,, Input 1, ==, -1)

or with the data from Dummy function (Ctrl +Space).

Can anybody help me?

Thanks
cocalo  
#1024 Posted : Thursday, November 12, 2020 12:02:51 AM(UTC)
cocalo

Rank: Newbie

Groups: Registered
Joined: 3/28/2020(UTC)
Posts: 4
Spain
Location: Madrid

Thanks: 1 times
I answer myself, it is as easy as.

Condition (,, xpath ('vmix / active'), ==, 1)

It is possible that it can be done in a more elegant way but that is how it works.

Thank you
elgarf  
#1025 Posted : Friday, November 13, 2020 4:57:00 PM(UTC)
elgarf

Rank: Advanced Member

Groups: Registered
Joined: 10/23/2015(UTC)
Posts: 458
Man
Russian Federation

Thanks: 20 times
Was thanked: 225 time(s) in 129 post(s)
@cocalo, that's the right way)
There also is _ function to access internal UTC state:

_('Active')
cashmuny03  
#1026 Posted : Sunday, November 15, 2020 4:30:47 AM(UTC)
cashmuny03

Rank: Member

Groups: Registered
Joined: 2/11/2020(UTC)
Posts: 10
United States

I'm trying to make a title animation appear when the play clock on my scoreboard gets to 00. I'm not sure if I'm doing something wrong in the scripting in the button widget or if it's even possible with utc. Can someone please help?

play clock
pykawka  
#1027 Posted : Sunday, November 15, 2020 9:15:16 PM(UTC)
pykawka

Rank: Newbie

Groups: Registered
Joined: 9/27/2020(UTC)
Posts: 4
Poland

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: cashmuny03 Go to Quoted Post
I'm trying to make a title animation appear when the play clock on my scoreboard gets to 00. I'm not sure if I'm doing something wrong in the scripting in the button widget or if it's even possible with utc. Can someone please help?

play clock




Condition

_('Inputs[{0}].Elements[0].Text') == 00:00


No. of element that time/text You looking for is in http://192.168.0.171:8088/api/
amir29918  
#1028 Posted : Sunday, November 15, 2020 11:54:24 PM(UTC)
amir29918

Rank: Member

Groups: Registered
Joined: 8/25/2020(UTC)
Posts: 11
Iran (Islamic Republic Of)

Thanks: 9 times
I have a same issue . I want to when timer on 3:00 , timer is pause . I set a link for pause and put it on condition but not working..
Capture.PNG (50kb) downloaded 4 time(s).
pykawka  
#1029 Posted : Monday, November 16, 2020 12:38:18 AM(UTC)
pykawka

Rank: Newbie

Groups: Registered
Joined: 9/27/2020(UTC)
Posts: 4
Poland

Was thanked: 1 time(s) in 1 post(s)
Because Inputs in {} brackets refer to intput 1 and 2 which You can choose in Condition constuctor. But as everything in UTC - 1st input is Input[{0}] and 2nd [{1}]. So i Sugest to change that {2} for {0}. Or You can try to add 2nd timer which starts in synq with the 1st one, and just set 2nd to stop at 3:00 and on competition send Execlink command that stops 1st clock
thanks 1 user thanked pykawka for this useful post.
amir29918 on 11/16/2020(UTC)
cashmuny03  
#1030 Posted : Monday, November 16, 2020 4:20:28 AM(UTC)
cashmuny03

Rank: Member

Groups: Registered
Joined: 2/11/2020(UTC)
Posts: 10
United States

Thanks for the responses. I'm now having an issue where it appears utc doesn't recognize 00 as 00 but instead as just 0. i've tried 0, :00 & 00:00 and none work. What can I do to make 00 = 00?

This is what the code says. I have run a clock in vmix from 05 down to 00 and nothing happens

*Condition(a744a0f9-e657-40e3-a228-fa58c2cf797b, 5820bab3-fe56-4539-8dbb-5b3a057d0823, _('Inputs[{0}].Elements[16].Text'), ==, 00)
*TitleBeginAnimation(a744a0f9-e657-40e3-a228-fa58c2cf797b, Page2)
!*Else()
!*SetXVisibleOff(a744a0f9-e657-40e3-a228-fa58c2cf797b, 17, Text)
*ConditionEnd()
!*Timer(10000)
*GoTo(0)


This is the log

7) GOTO 0 [0]
CONDITION CHECK 00==0
pykawka  
#1031 Posted : Monday, November 16, 2020 6:12:13 AM(UTC)
pykawka

Rank: Newbie

Groups: Registered
Joined: 9/27/2020(UTC)
Posts: 4
Poland

Was thanked: 1 time(s) in 1 post(s)
Did You check "State dependent" on that .gtzip that you refer in Your condition?
cashmuny03  
#1032 Posted : Monday, November 16, 2020 7:34:57 AM(UTC)
cashmuny03

Rank: Member

Groups: Registered
Joined: 2/11/2020(UTC)
Posts: 10
United States

Yes "State Dependent" is checked
amir29918  
#1033 Posted : Thursday, November 19, 2020 6:14:44 AM(UTC)
amir29918

Rank: Member

Groups: Registered
Joined: 8/25/2020(UTC)
Posts: 11
Iran (Islamic Republic Of)

Thanks: 9 times
Originally Posted by: cashmuny03 Go to Quoted Post
Thanks for the responses. I'm now having an issue where it appears utc doesn't recognize 00 as 00 but instead as just 0. i've tried 0, :00 & 00:00 and none work. What can I do to make 00 = 00?

This is what the code says. I have run a clock in vmix from 05 down to 00 and nothing happens

*Condition(a744a0f9-e657-40e3-a228-fa58c2cf797b, 5820bab3-fe56-4539-8dbb-5b3a057d0823, _('Inputs[{0}].Elements[16].Text'), ==, 00)
*TitleBeginAnimation(a744a0f9-e657-40e3-a228-fa58c2cf797b, Page2)
!*Else()
!*SetXVisibleOff(a744a0f9-e657-40e3-a228-fa58c2cf797b, 17, Text)
*ConditionEnd()
!*Timer(10000)
*GoTo(0)


This is the log

7) GOTO 0 [0]
CONDITION CHECK 00==0


Hi @cashmuny03
Replace this code in the first Line
Code:
Condition(, , xpath('vmix/inputs/input[@number="0"]/text[@index="16"]') * 1, ==, 0)
elgarf  
#1034 Posted : Thursday, November 19, 2020 2:36:34 PM(UTC)
elgarf

Rank: Advanced Member

Groups: Registered
Joined: 10/23/2015(UTC)
Posts: 458
Man
Russian Federation

Thanks: 20 times
Was thanked: 225 time(s) in 129 post(s)
@cashmuny03, 00 is transformed to 0 (because it is treated as integer). If you want to compare strings, write '00' instead.
Or use @amir29918 tip to make numeric value from your left part of condition.
cashmuny03  
#1035 Posted : Thursday, November 19, 2020 11:59:40 PM(UTC)
cashmuny03

Rank: Member

Groups: Registered
Joined: 2/11/2020(UTC)
Posts: 10
United States

Thank you Amir and elgarf for trying to help me. I don't know what I'm doing wrong still. Here's what I've tried.

Condition(cc609620-2644-410f-ab81-13f213af2c12, , xpath('vmix/inputs/input[@number="0"]/text[@index="16"] * 1, ==, 0)

and I've also tried

Condition(, , xpath('vmix/inputs/input[@number="0"]/text[@index="16"]') * 1, ==, 0)

Unfortunately neither of these work.
elgarf, you said "write 00 instead". Where do I write 00? Sorry this is so confusing
PLandry26  
#1036 Posted : Saturday, November 21, 2020 5:19:23 AM(UTC)
PLandry26

Rank: Newbie

Groups: Registered
Joined: 10/5/2020(UTC)
Posts: 2
Canada
Location: QC

Thanks: 2 times
Hi ,

Trying to figure out the how to set a condition based on text

Here the code to change my text to Green:

Quote:
*SetText(8123a224-92ec-4a1b-9bf6-688c8b0aba8b, 0, Green)


And i'm trying to figure out the code for if text is green then do some action ?


Here is one of my try but I always get a Condition is False return :

Quote:
*Condition(, , Inputs[8123a224-92ec-4a1b-9bf6-688c8b0aba8b].Elements[InputText/Index/0].Text, ==, Green)



I have it running inside vmix script with this code :

Quote:
If Input.Find("var1.xaml").Text("Headline") = "Green" then "do action"


My var1.xaml is input #42 if that can help


Thanks a lot if someone can help me !
NewsworthyVision  
#1037 Posted : Saturday, November 21, 2020 7:34:42 PM(UTC)
NewsworthyVision

Rank: Advanced Member

Groups: Registered
Joined: 7/19/2017(UTC)
Posts: 45
United Kingdom

Thanks: 11 times
Was thanked: 14 time(s) in 7 post(s)
Weird bug today Elgarf. I was editing a layout, when suddenly I lost the ability to change the title map on my list items. I could still change the input, and it would update in vMix but I couldn't find the title mapping option in the list item window at all.

Saved, quit and reloaded and it worked again, but strange bug. Caused a minor stroke.
elgarf  
#1038 Posted : Sunday, November 22, 2020 4:39:31 PM(UTC)
elgarf

Rank: Advanced Member

Groups: Registered
Joined: 10/23/2015(UTC)
Posts: 458
Man
Russian Federation

Thanks: 20 times
Was thanked: 225 time(s) in 129 post(s)
@cashmuny03, I mean you need use single quotes to compare two strings.

Like that
Code:
*Condition(a744a0f9-e657-40e3-a228-fa58c2cf797b, 5820bab3-fe56-4539-8dbb-5b3a057d0823,  xpath('vmix/inputs/input[@key="{0}"]/text[@index="16"]'), ==, '00')



@PLandry26
Try using
Code:
*Condition(, , _('Inputs[8123a224-92ec-4a1b-9bf6-688c8b0aba8b].Elements[InputText/Index/0].Text'), ==, Green)

or
Code:
*Condition(, , xpath('vmix/inputs/input[@key="8123a224-92ec-4a1b-9bf6-688c8b0aba8b"]/text[@index="0"]'), ==, Green)


You need to use request function _(path) or xpath(path) to get value from vMix state.

@NewsworthyVision, looks like it's connected with volume widget. I'll make fix later.
thanks 1 user thanked elgarf for this useful post.
PLandry26 on 11/26/2020(UTC)
ivanm995  
#1039 Posted : Thursday, November 26, 2020 8:39:40 PM(UTC)
ivanm995

Rank: Newbie

Groups: Registered
Joined: 11/25/2020(UTC)
Posts: 1
Serbia
Location: Obrenovac

Is there anyway how I can dynamicly change image in my title?
jasminlord  
#1040 Posted : Friday, November 27, 2020 1:41:13 AM(UTC)
jasminlord

Rank: Member

Groups: Registered
Joined: 7/5/2018(UTC)
Posts: 18
Location: Montreal

Thanks: 2 times
Hi guys

Another question for that forum.
I use the score widget. I try to trigger a sound each time i increase the score.
But there no way to add code or use the constructor mode with that widget.
How i can make that happen ?

thanks
Users browsing this topic
Guest (4)
64 Pages«<5051525354>»
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.