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
ilovevmix  
#1 Posted : Saturday, March 3, 2018 1:09:55 PM(UTC)
ilovevmix

Rank: Member

Groups: Registered
Joined: 8/22/2016(UTC)
Posts: 22
Location: jys

Thanks: 3 times

dim aa as object
Input.Find(aa).Function("Fade",,3000)
API.Function("WaitForCompletion",aa,)



my english is poor, only simple expression my thinking, above scripting programe is not false ,but no result.....please instrut


how to get the name of the instance from the object,how to write programe

thank you!hopefully!

ilovevmix  
#2 Posted : Saturday, March 3, 2018 1:18:55 PM(UTC)
ilovevmix

Rank: Member

Groups: Registered
Joined: 8/22/2016(UTC)
Posts: 22
Location: jys

Thanks: 3 times
1 layer apply........


dim i as integer
for i=1 to 5
dim aa as object
dim bb as string 'expression the name of instace from object
Input.Find(bb).Function("Cut")

API.Function("WaitForCompletion",bb)

aa=aa+1
next i


above is not correct,please give me correct programe ,key:how to get the name of instance from objcet,thank you very much!
DWAM  
#3 Posted : Sunday, March 4, 2018 1:55:47 PM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Just query the API status.

However going for input number or GUID is much easier

Guillaume
ilovevmix  
#4 Posted : Sunday, March 4, 2018 8:50:37 PM(UTC)
ilovevmix

Rank: Member

Groups: Registered
Joined: 8/22/2016(UTC)
Posts: 22
Location: jys

Thanks: 3 times
DWAM wrote:
Just query the API status.

However going for input number or GUID is much easier

Guillaume



thank you! but still i want to know how to get the name of instance from the "object" class in scripting,
please give me help from the engineer of vmix co.. thank you!

if probably,please give me more scripting sample with visual basic language or syntax what can be run correctly in vmix.
sincerly thanks!
madness  
#5 Posted : Sunday, April 15, 2018 10:30:37 PM(UTC)
madness

Rank: Advanced Member

Groups: Registered
Joined: 4/16/2013(UTC)
Posts: 406
Man
Location: Iowa

Thanks: 281 times
Was thanked: 32 time(s) in 29 post(s)
I'm with ilovevmix!

What's the point of being able to use find to find the proper input, when you can't do the same for WaitForCompletion??? We need a way to wait for it directly, or to translate to get it's key.

I've been trying to get WaitForCompletion to work all day in both web scripting and vb scripting, and unable to do so unless I put the key or input number in, but that in itself is a bit of work, as you need to call up the status in a web browser to do so. It's not in the input settings. Just more to do! Especially if I move inputs around.

Ideally, I would like to see this work...

Input.Find("Pre-Show Video").Function("WaitForCompletion")

Is it not in the correct format?
DWAM  
#6 Posted : Monday, April 16, 2018 3:25:38 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Why don't you use the "OnCompletion" trigger on this Pre-Show Video along with the "StartScript" command then ?

Guillaume
madness  
#7 Posted : Monday, April 16, 2018 5:07:43 PM(UTC)
madness

Rank: Advanced Member

Groups: Registered
Joined: 4/16/2013(UTC)
Posts: 406
Man
Location: Iowa

Thanks: 281 times
Was thanked: 32 time(s) in 29 post(s)
DWAM wrote:
Why don't you use the "OnCompletion" trigger on this Pre-Show Video along with the "StartScript" command then ?

Guillaume


Because that isn't working for me either!
DWAM  
#8 Posted : Monday, April 16, 2018 6:34:56 PM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Then try again or read the doc again because it works just as it's supposed to work
madness  
#9 Posted : Monday, April 16, 2018 9:39:24 PM(UTC)
madness

Rank: Advanced Member

Groups: Registered
Joined: 4/16/2013(UTC)
Posts: 406
Man
Location: Iowa

Thanks: 281 times
Was thanked: 32 time(s) in 29 post(s)
It could very well be, it fails because it was a multiview, and would not start the multiview inputs!
It works in some places, and not in others, and if you think I would come on here, and +1 ilovevmix without trying to research and make it work when I have so many other things to do for the event I'm programming for Thursday, you're out of your mind! What I have now works, but most of it I had to call for external scripts using the web interface to complete. It's a lot of work going back through and modifying input numbers when you shuffle things about! I don't think it's out of line to ask for the same find capabilities with the WaitForCompletion function!

You might just want to get off that high horse of yours!
DWAM  
#10 Posted : Tuesday, April 17, 2018 4:58:47 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Wow! Take it easy, I'm just trying to help here and I'm not responsable for your situation and we're not in a feature request post.
My suggestion was based on the info YOU gave and on what vMix can do. Like it or not, I'm not the one to blame for your misery
thanks 1 user thanked DWAM for this useful post.
madness on 4/18/2018(UTC)
madness  
#11 Posted : Wednesday, April 18, 2018 8:31:35 PM(UTC)
madness

Rank: Advanced Member

Groups: Registered
Joined: 4/16/2013(UTC)
Posts: 406
Man
Location: Iowa

Thanks: 281 times
Was thanked: 32 time(s) in 29 post(s)
DWAM wrote:
Wow! Take it easy, I'm just trying to help here and I'm not responsable for your situation and we're not in a feature request post.
My suggestion was based on the info YOU gave and on what vMix can do. Like it or not, I'm not the one to blame for your misery



Me take it easy? My apologies, but I thought it was you that was coming off a but snippy. That's the text format for you!

True that!
smudge1977  
#12 Posted : Wednesday, May 9, 2018 5:35:06 AM(UTC)
smudge1977

Rank: Advanced Member

Groups: Registered
Joined: 4/3/2014(UTC)
Posts: 58
Location: UK

Thanks: 19 times
Was thanked: 4 time(s) in 1 post(s)
DWAM wrote:
Just query the API status.

However going for input number or GUID is much easier

Guillaume


Hi

I want to do something like


dim i as integer
i = API.currentinputnumber <<<<<< How do i do this?

Dim client = WebRequest.Create("http://BACKUP-IP:8088/api/?Function=Cut&Input="&i)
Dim response = client.GetResponse()


Thanks

Keith
Users browsing this topic
Guest (2)
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.