Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

multiple text files as ticker source text

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

ahmedahmed1223
Posts: 45
Joined: 07 Jan 2017, 14:02

multiple text files as ticker source text

Post by ahmedahmed1223 » 11 Nov 2017, 19:55

hi
how can i use multiple text files as scroll source text ?
also if the number of text files unknown how can i solve this problem?
thanks for help

u-double-u
Posts: 172
Joined: 03 Dec 2014, 15:46

Re: multiple text files as ticker source text

Post by u-double-u » 12 Nov 2017, 12:00

Have you tried using the directory node?
It lets you step forward through files found within it using "next".
cheers

ahmedahmed1223
Posts: 45
Joined: 07 Jan 2017, 14:02

Re: multiple text files as ticker source text

Post by ahmedahmed1223 » 12 Nov 2017, 12:16

i need to merge the content of text files to feed it to scroll text node source text input.
and as i know the directory node load one file each time and there is no auto rotate between files.

u-double-u
Posts: 172
Joined: 03 Dec 2014, 15:46

Re: multiple text files as ticker source text

Post by u-double-u » 12 Nov 2017, 15:31

hm, maybe the arrangenode can help with the automatic spacing between different containers that each get their own content from a different textfile.

Christian Krix Schmidt
Posts: 290
Joined: 18 Jan 2012, 11:36
Location: Dubai, United Arab Emirates
Contact:

Re: multiple text files as ticker source text

Post by Christian Krix Schmidt » 12 Nov 2017, 16:19

You will have to use the Arrange and Ticker nodes to get that job done. The basic Scroll Text node won't be enough to solve that.

ahmedahmed1223
Posts: 45
Joined: 07 Jan 2017, 14:02

Re: multiple text files as ticker source text

Post by ahmedahmed1223 » 12 Nov 2017, 16:27

if the number of text files unknown how to import its content to text node?
and if the text files update withe new data maybe longer or lower the length of older text to to handle this setup?

ahmedahmed1223
Posts: 45
Joined: 07 Jan 2017, 14:02

Re: multiple text files as ticker source text

Post by ahmedahmed1223 » 13 Nov 2017, 16:28

is there any other ideas to solve this case?

Christian Krix Schmidt
Posts: 290
Joined: 18 Jan 2012, 11:36
Location: Dubai, United Arab Emirates
Contact:

Re: multiple text files as ticker source text

Post by Christian Krix Schmidt » 13 Nov 2017, 17:52

There is no other normal way. Sorry. Arrange and Ticker Node are the perfect solution for what you want. Those are the nodes specifically created for your problem.
Check out the entry in the documentation: http://www.ventuz.com/support/help/late ... icker.html
And you should definitely check the example scene for the ticker node. It explains a lot. Simply drop a ticker node in the Content Editor. Select it. Press F1 for help and choose "Interactive example". The Ticker RSS example uses different text for every element. That is close to what you want.

As for your file reading. If the Directory is not enough for you, you have two choices.
1) rename your files to something you can iterate through via a number, such as "File001.txt", "File002.txt", "File003.txt", etc. Then use a ConvertToText node and a counter to create a dynamic URL using the URI node to create your file references.
2) Write a short C# script that checks a directory for its content (such as Directory.GetFiles() ) and do with the output whatever you want.

Chris

ahmedahmed1223
Posts: 45
Joined: 07 Jan 2017, 14:02

Re: multiple text files as ticker source text

Post by ahmedahmed1223 » 15 Nov 2017, 16:36

thanks, Christian
but i dont have C# scripting skills,so is there any other solutions?
and what if the number and content of text file is unknown is there any idea to solve this problem?

Christian Krix Schmidt
Posts: 290
Joined: 18 Jan 2012, 11:36
Location: Dubai, United Arab Emirates
Contact:

Re: multiple text files as ticker source text

Post by Christian Krix Schmidt » 15 Nov 2017, 23:17

the length and number of text files would not matter with the ticker node.

Post Reply