logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
mixsystem  
#1 Posted : Monday, October 19, 2015 12:27:24 PM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

how can I make a collapsed that got the text from a text file .txt. the file content changes every three minutes as I can align the contents of the file in the collapsed? thank you
IceStream  
#2 Posted : Monday, October 19, 2015 2:02:46 PM(UTC)
IceStream

Rank: Advanced Member

Groups: Registered
Joined: 3/7/2012(UTC)
Posts: 2,636
Man
Location: Canada

Thanks: 33 times
Was thanked: 506 time(s) in 475 post(s)
@ mixsystem

I think we may have lost something in the translation...
Can you describe differently or provide a visual aid to what it is you want to accomplish?
(I have no idea what a "collapsed" is referring to)


Ice
mixsystem  
#3 Posted : Monday, October 19, 2015 5:15:26 PM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

I have to insert the contents of a text file overlay. the content of the file changes every 3minutes about

thanks for the answer you want to give me
IceStream  
#4 Posted : Monday, October 19, 2015 6:31:48 PM(UTC)
IceStream

Rank: Advanced Member

Groups: Registered
Joined: 3/7/2012(UTC)
Posts: 2,636
Man
Location: Canada

Thanks: 33 times
Was thanked: 506 time(s) in 475 post(s)
@ mixsystem

If I understand you correctly, you want to have the text content update itself 'dynamically' and automatically.
I believe there are others who are doing this to some extent via the API and some scripting but it is outside of my knowledge base so I will leave that for someone else to contribute on that front.
There are, however, some related threads that deal with dynamic changes to XAML titles and images that may help with your general task.

http://forums.vmix.com/d....aspx?g=posts&t=2183
http://forums.vmix.com/d....aspx?g=posts&t=3837

And then there is SmartTitler from Richard Gatarski:

http://forums.vmix.com/d....aspx?g=posts&t=2958

All-in-all though, you are not the first to 'request' this type of feature in vMix.
As stated, I believe it is possible, it is just not something that is easily configured with the click of a button or setting in vMix.


Ice
mixsystem  
#5 Posted : Tuesday, October 20, 2015 7:11:01 AM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

thanks for perfect pictures I can do it, it works perfectly. but to a text file, there is no solution?
thank you
mixsystem  
#6 Posted : Tuesday, October 20, 2015 7:12:35 AM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

in short, I would need a dynamic text
doggy  
#7 Posted : Tuesday, October 20, 2015 7:15:18 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 292 times
Was thanked: 955 time(s) in 790 post(s)
@ mixsystem

see this post for example example

it checks a (xml)file every .5 sec.
instead of populating a listbox one has to populate a textfield in your title. key here is that it checks the source file at regular interval
mixsystem  
#8 Posted : Tuesday, October 20, 2015 7:57:18 AM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

It could be a solution, but I can not create code suitable for my needs.It can help you?
thank you
doggy  
#9 Posted : Tuesday, October 20, 2015 9:16:29 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 292 times
Was thanked: 955 time(s) in 790 post(s)
Like this (see attached)

load *.dll file as title
edit and save text in TestFile.txt
will check for change every 3 seconds
File Attachment(s):
testtitleupdate.zip (8kb) downloaded 20 time(s).

You cannot view/download attachments. Try to login or register.
mixsystem  
#10 Posted : Tuesday, October 20, 2015 9:39:18 AM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

perfect is what I was looking for. now I should change the code to read from a file with a .txt extension to a folder on your PC
thank you
doggy  
#11 Posted : Tuesday, October 20, 2015 12:26:10 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 292 times
Was thanked: 955 time(s) in 790 post(s)
on my computer ??
mixsystem  
#12 Posted : Tuesday, October 20, 2015 2:06:51 PM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

the text file containing the text you have to enter in output is in a folder locally.
example r:/regia/OnAir.txt
how can I do?
thank you
doggy  
#13 Posted : Tuesday, October 20, 2015 3:54:12 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 292 times
Was thanked: 955 time(s) in 790 post(s)
here is the basic of the code (MS Visual Basic 2010 Express compiled as .dll)

xaml.vb
Code:
Imports System.Windows.Threading
Imports System.IO


Public Class UserControl1
    Private WithEvents m_Timer As New DispatcherTimer

    Private Sub UserControl1_LayoutUpdated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LayoutUpdated
        If m_Timer IsNot Nothing Then
            m_Timer.Interval = TimeSpan.FromMilliseconds(3000)
            m_Timer.Start()
        End If
    End Sub


    Private Sub m_Timer_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles m_Timer.Tick

        InitializeComponent()

        Try
            

            Using sr As New StreamReader( "r:/regia/OnAir.txt")
                Dim line As String
                line = sr.ReadToEnd()

                TextBlock1.Text = line
            End Using
        Catch
            TextBlock1.Text = "Could not read the file"
        End Try



    End Sub

End Class


xaml
Code:
<UserControl x:Class="UserControl1"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Width="1920" Height="1080" xmlns:my="clr-namespace:vMixTitleLibrary;assembly=vMixTitleLibrary" Padding="5" Margin="5">

   

    
    <Grid  >
        <TextBlock Height="79" Margin="73,926,772,0" Name="TextBlock1" Text="TextBlock" VerticalAlignment="Top" Foreground="White" FontSize="56" Background="#FF145BAD" />
    </Grid>

</UserControl>


thanks 1 user thanked doggy for this useful post.
smudge1977 on 4/19/2018(UTC)
mixsystem  
#14 Posted : Tuesday, October 20, 2015 4:53:16 PM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

thanks for the umpteenth time to answer and I are dedicating.
unfortunately I am not a programmer and I can not compile correctly what you have provided me.
can you kindly produce it?
thank you very much and sorry again for my ignorance
doggy  
#15 Posted : Wednesday, October 21, 2015 12:08:18 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 292 times
Was thanked: 955 time(s) in 790 post(s)
Would be practical if you could provide me with a title example as of where on the screen ( and size etc ) you want the text to appear.
You can use the vMix title designer to do this and provide it ( or the code of it)
mixsystem  
#16 Posted : Wednesday, October 21, 2015 5:25:02 AM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

I would like to get a result as in the link

https://drive.google.com...QTBRak0/view?usp=sharing

I got it with "Title / XAML" of Vmix named "News HD5" making changes, I removed a row and reduced in height by stretching in length
I hope we can do
thank you
doggy  
#17 Posted : Wednesday, October 21, 2015 5:52:06 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 292 times
Was thanked: 955 time(s) in 790 post(s)
See attached (kept it universal)

- load as title
- right click and specify duration (of interval) in seconds and specify file location (c:/dir/yourfile.txt)
- change textcolor, size etc with the title options available
- position your appearing text / title according to your liking ( or on top of your personal background)
- long texts do not wrap but multiline is possible (hence starting top of title)
- there is NO error trapping (except if file is not found)
- Use at own risk !
File Attachment(s):
vMixReadText.zip (8kb) downloaded 26 time(s).

You cannot view/download attachments. Try to login or register.
thanks 1 user thanked doggy for this useful post.
DYosua on 10/21/2015(UTC)
mixsystem  
#18 Posted : Wednesday, October 21, 2015 10:45:42 AM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

perfect perfect I got the desired result.
I thank you infinitely ..... thanks again for your patience

Now I would have two questions to ask but do not think it appropriate to continue on the same topics, though I try.

1) it's configuration, I would like to know the procedure for the inclusion of the "station logo" Now I plug in "Multi View" But I have to duplicate it on each input. There is a procedure to put it on 'total output?

2) I need to create a playlist consisting of camera inputs inserting graphics and cameras change in time. despite the playlist is not over I have to stop with a clip without the preset playlist does not return output

I hope I have expressed properly.
thanks again for the answer you want to give me
doggy  
#19 Posted : Wednesday, October 21, 2015 12:19:50 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 292 times
Was thanked: 955 time(s) in 790 post(s)
welcome

1) as an constant on overlay ;-)

please post these questions in a seperate topic
mixsystem  
#20 Posted : Thursday, October 29, 2015 6:28:18 PM(UTC)
mixsystem

Rank: Advanced Member

Groups: Registered
Joined: 10/19/2015(UTC)
Posts: 41
Location: Italy

doggy wrote:
See attached (kept it universal)

- load as title
- right click and specify duration (of interval) in seconds and specify file location (c:/dir/yourfile.txt)
- change textcolor, size etc with the title options available
- position your appearing text / title according to your liking ( or on top of your personal background)
- long texts do not wrap but multiline is possible (hence starting top of title)
- there is NO error trapping (except if file is not found)
- Use at own risk !



dynamic text works perfectly for days running without any problems, but the reopening of Vmix despite reloading the preset does not store the path where the source file fish
how can I do?
thank you
Users browsing this topic
Guest (2)
2 Pages12>
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.