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
wettnoodles  
#1 Posted : Tuesday, July 2, 2024 12:04:18 AM(UTC)
wettnoodles

Rank: Newbie

Groups: Registered
Joined: 7/1/2024(UTC)
Posts: 2
United Kingdom
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
doggy  
#2 Posted : Tuesday, July 2, 2024 12:40:00 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,243
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
Originally Posted by: wettnoodles Go to Quoted Post
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
thanks 1 user thanked doggy for this useful post.
wettnoodles on 7/2/2024(UTC)
wettnoodles  
#3 Posted : Tuesday, July 2, 2024 12:56:30 AM(UTC)
wettnoodles

Rank: Newbie

Groups: Registered
Joined: 7/1/2024(UTC)
Posts: 2
United Kingdom
Location: Nottingham

Thanks: 1 times
I am talking about a list not a playlist apologies.
doggy  
#4 Posted : Tuesday, July 2, 2024 1:20:27 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,243
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
Originally Posted by: wettnoodles Go to Quoted Post
I am talking about a list not a playlist apologies.


A search is your friend ;-)

Google search "vmix list song name"

https://forums.vmix.com/...uthor-of-song-via-script

https://forums.vmix.com/...-file-name-from-the-list
Users browsing this topic
Guest
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.