Rank: Member
Groups: Registered
Joined: 8/25/2020(UTC) Posts: 11 Thanks: 9 times
|
Originally Posted by: elgarf @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).
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/23/2015(UTC) Posts: 458 Thanks: 20 times Was thanked: 226 time(s) in 129 post(s)
|
@amir29918, replace @number="2" and @index="0" with your input number ant text indexes. 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
|
1 user thanked elgarf for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 3/28/2020(UTC) Posts: 4 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
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 3/28/2020(UTC) Posts: 4 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/23/2015(UTC) Posts: 458 Thanks: 20 times Was thanked: 226 time(s) in 129 post(s)
|
@cocalo, that's the right way) There also is _ function to access internal UTC state:
_('Active')
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/11/2020(UTC) Posts: 10
|
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?
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/27/2020(UTC) Posts: 4 Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: cashmuny03 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? 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/
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/25/2020(UTC) Posts: 11 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).
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/27/2020(UTC) Posts: 4 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
|
1 user thanked pykawka for this useful post.
|
|
|
Rank: Member
Groups: Registered
Joined: 2/11/2020(UTC) Posts: 10
|
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
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/27/2020(UTC) Posts: 4 Was thanked: 1 time(s) in 1 post(s)
|
Did You check "State dependent" on that .gtzip that you refer in Your condition?
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/11/2020(UTC) Posts: 10
|
Yes "State Dependent" is checked
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/25/2020(UTC) Posts: 11 Thanks: 9 times
|
Originally Posted by: cashmuny03 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)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/23/2015(UTC) Posts: 458 Thanks: 20 times Was thanked: 226 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.
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/11/2020(UTC) Posts: 10
|
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
|
|
|
|
Rank:: Newbie
Groups: Registered
Joined: 10/5/2020(UTC) Posts: 2 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 !
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/19/2017(UTC) Posts: 45 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 10/23/2015(UTC) Posts: 458 Thanks: 20 times Was thanked: 226 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.
|
1 user thanked elgarf for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 11/25/2020(UTC) Posts: 1 Location: Obrenovac
|
Is there anyway how I can dynamicly change image in my title?
|
|
|
|
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
|
|
|
|
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close