vMix Forums
»
General
»
3rd Party Software and Development
»
how to get current "object" name with scripting in vmix
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!
|
|
|
|
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!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 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
|
|
|
|
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!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/16/2013(UTC) Posts: 406 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?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/16/2013(UTC) Posts: 406 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!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/16/2013(UTC) Posts: 406 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!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 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
|
1 user thanked DWAM for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 4/16/2013(UTC) Posts: 406 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!
|
|
|
|
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
|
|
|
|
vMix Forums
»
General
»
3rd Party Software and Development
»
how to get current "object" name with scripting in vmix
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