Page 1 of 2

multiple text files as ticker source text

Posted: 11 Nov 2017, 19:55
by ahmedahmed1223
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

Re: multiple text files as ticker source text

Posted: 12 Nov 2017, 12:00
by u-double-u
Have you tried using the directory node?
It lets you step forward through files found within it using "next".
cheers

Re: multiple text files as ticker source text

Posted: 12 Nov 2017, 12:16
by ahmedahmed1223
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.

Re: multiple text files as ticker source text

Posted: 12 Nov 2017, 15:31
by u-double-u
hm, maybe the arrangenode can help with the automatic spacing between different containers that each get their own content from a different textfile.

Re: multiple text files as ticker source text

Posted: 12 Nov 2017, 16:19
by Christian Krix Schmidt
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.

Re: multiple text files as ticker source text

Posted: 12 Nov 2017, 16:27
by ahmedahmed1223
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?

Re: multiple text files as ticker source text

Posted: 13 Nov 2017, 16:28
by ahmedahmed1223
is there any other ideas to solve this case?

Re: multiple text files as ticker source text

Posted: 13 Nov 2017, 17:52
by Christian Krix Schmidt
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

Re: multiple text files as ticker source text

Posted: 15 Nov 2017, 16:36
by ahmedahmed1223
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?

Re: multiple text files as ticker source text

Posted: 15 Nov 2017, 23:17
by Christian Krix Schmidt
the length and number of text files would not matter with the ticker node.