vMix Forums
»
General
»
General Discussion
»
Functional programming for Scripts
Rank: Newbie
Groups: Registered
Joined: 10/14/2020(UTC) Posts: 2
Thanks: 1 times
|
I'm currently writing a vMix script and in order to monitor what's happening inside I created a title input and dynamically add new text to it. Since the output code is quite bulky I naturally decided to create a custom function so I can call it anywhere and make my code easier on the eye. The code for creating custom functions is taken from the Vusial Basic manuals, however, vMix refuses to accept it. Code:' Debug output setup
dim debug_output as Object = Input.Find("debug_output")
dim debug_text as String
function debug_print(byval str as String) as Boolean
debug_text = debug_text & str
debug_output.Text("Message.Text") = debug_text
return 1
end function
vMix tells me that "end function" command is not supported. Is there another way to create custom functions or are they not supported at all?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,222 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Helpfiles: Quote:vMix Scripting supports the majority of VB.NET 2.0 code that will work within a single sub or function. This means that custom classes and structures are not supported, however you can use the vast majority of the built in base classes in the .NET framework
including the handy System.Net.WebClient for downloading data over the internet.
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/14/2020(UTC) Posts: 2
Thanks: 1 times
|
That's a bummer.
Thanks for the quick reply!
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Functional programming for Scripts
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