vMix - Live Production Software
Live Production Software Forums       www.vmix.com
Welcome Guest Search | Active Topics | Log In | Register

Tag as favorite
how to get current "object" name with scripting in vmix
ilovevmix
#1 Posted : Saturday, 3 March 2018 3:09:55 AM
Rank: Newbie

Medals:

Groups: Registered
Joined: 22/08/2016
Posts: 8
Location: jys

Thanks: 3 times
Was thanked: 0 time(s) in 0 post(s)

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, 3 March 2018 3:18:55 AM
Rank: Newbie

Medals:

Groups: Registered
Joined: 22/08/2016
Posts: 8
Location: jys

Thanks: 3 times
Was thanked: 0 time(s) in 0 post(s)
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, 4 March 2018 3:55:47 AM
Rank: Advanced Member

Medals:

Groups: Registered
Joined: 20/03/2014
Posts: 1,629
Location: Bordeaux, France

Thanks: 123 times
Was thanked: 427 time(s) in 347 post(s)
Just query the API status.

However going for input number or GUID is much easier

Guillaume
ilovevmix
#4 Posted : Sunday, 4 March 2018 10:50:37 AM
Rank: Newbie

Medals:

Groups: Registered
Joined: 22/08/2016
Posts: 8
Location: jys

Thanks: 3 times
Was thanked: 0 time(s) in 0 post(s)
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, 15 April 2018 12:30:37 PM
Rank: Advanced Member

Medals:

Groups: Registered
Joined: 15/04/2013
Posts: 391
Location: Iowa

Thanks: 272 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 : Sunday, 15 April 2018 5:25:38 PM
Rank: Advanced Member

Medals:

Groups: Registered
Joined: 20/03/2014
Posts: 1,629
Location: Bordeaux, France

Thanks: 123 times
Was thanked: 427 time(s) in 347 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, 16 April 2018 7:07:43 AM
Rank: Advanced Member

Medals:

Groups: Registered
Joined: 15/04/2013
Posts: 391
Location: Iowa

Thanks: 272 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, 16 April 2018 8:34:56 AM
Rank: Advanced Member

Medals:

Groups: Registered
Joined: 20/03/2014
Posts: 1,629
Location: Bordeaux, France

Thanks: 123 times
Was thanked: 427 time(s) in 347 post(s)
Then try again or read the doc again because it works just as it's supposed to work
madness
#9 Posted : Monday, 16 April 2018 11:39:24 AM
Rank: Advanced Member

Medals:

Groups: Registered
Joined: 15/04/2013
Posts: 391
Location: Iowa

Thanks: 272 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 : Monday, 16 April 2018 6:58:47 PM
Rank: Advanced Member

Medals:

Groups: Registered
Joined: 20/03/2014
Posts: 1,629
Location: Bordeaux, France

Thanks: 123 times
Was thanked: 427 time(s) in 347 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
1 user thanked DWAM for this useful post.
madness on 18/04/2018
madness
#11 Posted : Wednesday, 18 April 2018 10:31:35 AM
Rank: Advanced Member

Medals:

Groups: Registered
Joined: 15/04/2013
Posts: 391
Location: Iowa

Thanks: 272 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!
Users browsing this topic
Guest
Tag as favorite
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.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.055 seconds.