Text source with text outside of bounds + scroll filter

Destroy666

Member
I'm trying to create a sort of news ticker with too long text scrolling within bounds of a text source with defined constant width and height and no wrapping.

However, the scroll doesn't achieve anything - it just scrolls the part of text that managed to fit and the rest is cut off. Is this intended? Is there any way around it?
 

royshilkrot

Member
but what if you use something like
1692085860580.png
 

Destroy666

Member
but what if you use something like View attachment 96805

Thanks, not entirely sure what you mean here though, I'm looking for a one-line ticker and playing around with width unfortunately doesn't achieve much, it just makes the element wider and I need a specific width to stay between 2 elements.

A solution could be hiding the rest behind these 2 elements, but in my case 1 is transparent and 1 can sometimes disappear. And the length of text can exceed the legth of screen/working area as well.

I think the problem lies in the filters not applying to not drawn parts of a source. Maybe there's some way of creating the animation first, then shrinking the element by "cutting" it or rather drawing only pixels between the elements. This should be 99% possible with obs-shaderfilter, I think I'll have to create a new shader though.
 

Suslik V

Active Member
If text is read from file and needs to have no scroll animation when it is shorter than some length (let's say less than 10 symbols) then next solution may apply (script to Advanced Scene Switcher plugin):

If only scroll needed, just use "Limit Width" checkbox from the "Scroll" filter (screenshot was posted few posts above).
 
Last edited:

royshilkrot

Member
Thanks, not entirely sure what you mean here though, I'm looking for a one-line ticker and playing around with width unfortunately doesn't achieve much, it just makes the element wider and I need a specific width to stay between 2 elements.

A solution could be hiding the rest behind these 2 elements, but in my case 1 is transparent and 1 can sometimes disappear. And the length of text can exceed the legth of screen/working area as well.

I think the problem lies in the filters not applying to not drawn parts of a source. Maybe there's some way of creating the animation first, then shrinking the element by "cutting" it or rather drawing only pixels between the elements. This should be 99% possible with obs-shaderfilter, I think I'll have to create a new shader though.
Did you try the "Scroll" effect filter? It should be able to do what you're looking for
You can limit the width and then the rest is hidden and you can set the scroll animation
 

Destroy666

Member
If text is read from file and needs to have no scroll animation when it is shorter than some length (let's say less than 10 symbols) then next solution may apply (script to Advanced Scene Switcher plugin):

If only scroll needed, just use "Limit Width" checkbox from the "Scroll" filter (screenshot was posted few posts above).
That was helpful, even though I'm not really looking for dynamic scroll enable, thanks.

It made me realize that you just can't set the constant width/height on the text if you want for this to work. Which I want also for padding, but I guess working around that will be easier than working around cut out scroll.
 
Top