Make text scroll after reaching a certain length?

shiftcsx

New Member
Heya,

so basically I have a text which reads from a changing file, so far I've used the Bounding Box option in the Transform settings, however if it gets really long the Text gets so small that it looks silly. So my idea would've been to just make it scroll after hitting a certin length / colliding with a set boundary. However I can't find any Filter or Option which does that. Does anyone have an Idea on how to solve my problem?
 

Suslik V

Active Member
The task is complex.
If only length of the string (in symbols) needs to be analyzed then Advanced Scene Switcher plugin can do the job:

Example.
regular expression that matches up to 4 characters in a string: ^.{0,4}$
regular expression that matches 5 and more characters in a string: .{5,}

Implementation depends on setup and version of the plugin. But in general, you need:
  1. original text source (that points to the file) and its reference copy (sources placed one above other);
  2. group one text source and group second source (two groups each with single text source inside: top group named Group Casual, bottom group named Group Scroll);
  3. the Group Scroll should has filter Scroll with Limit Width at length of the casual text (not scrolled), let's say 150 pixels, so visually scrolled text will cover only casual text area and not more. Make sure that the Scroll filter applied to the group itself, not to the text source;
  4. in OBS Settings to the scene that has both groups should be assigned hotkeys: Show 'Group Casual', Hide 'Group Casual', Show 'Group Scroll', Hide 'Group Scroll' (different hotkeys for each group***);
  5. set Advanced Scene Switcher to use 2 macros: 1st for File contents matches 5 and more characters (file is the same as for the text source from the p1); 2nd for File contents matches up to 4 characters (file is the same as for the text source from the p1);
  6. 1st macros (for File contents matches 5 and more characters) has series of actions: send Hotkey only to OBS to Hide 'Group Casual' -> wait for 2 sec (text update is slow) -> send Hotkey only to OBS to Show 'Group Scroll';
  7. 2nd macros (for File contents matches up to 4 characters) has series of actions: send Hotkey only to OBS to Hide 'Group Scroll' -> wait for 2 sec (text update is slow) -> send Hotkey only to OBS to Show 'Group Casual'.
***Hotkeys needed to be able to use show transitions for groups (if any, for example 'Swipe in' looks cool).
 
Last edited:
Top