Rank: Newbie
Groups: Registered
Joined: 7/1/2024(UTC) Posts: 2 Location: Nottingham Thanks: 1 times
|
I'm unsure as to how I would get the name of the active item in a list.
Eg if I have 5 songs in a playlist, I want to read the name of the active song and output that to a title.
I think I can do the title part as it would just be
Dim i = Input.Find("SongName") i.Text("MusicName") = musicTitle
But I have no idea how to get musicTitle and I can't see all of the attributes on the object. I'd guessed it would be something like Input.Find("Break").Title or .ActiveItem or something but no idea and I can't find any documentation with all of the attributes
Thanks for the help
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
Originally Posted by: wettnoodles I'm unsure as to how I would get the name of the active item in a list.
Eg if I have 5 songs in a playlist, I want to read the name of the active song and output that to a title.
I think I can do the title part as it would just be
Dim i = Input.Find("SongName") i.Text("MusicName") = musicTitle
But I have no idea how to get musicTitle and I can't see all of the attributes on the object. I'd guessed it would be something like Input.Find("Break").Title or .ActiveItem or something but no idea and I can't find any documentation with all of the attributes
Thanks for the help Just to be sure, You are talking about a playlist, not a list, which is made up of a list of inputs available in your setup A playlist plays directly to the output. One can retrieve the title of the current input being played by retrieving the number of current active input and based on that retrieve the title of that input. This done by reading the API XML with a script . Plenty of examples on how to do that in the "scripting for dummies" post or do a forum search on your specific need Your thinking ( assumption) is wrong. The input.find() is specific to retrieving or replacing a textblock's content BTW https://forums.vmix.com/...another-input#post102595
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 7/1/2024(UTC) Posts: 2 Location: Nottingham Thanks: 1 times
|
I am talking about a list not a playlist apologies.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
|
|
|
|
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