Coder Social home page Coder Social logo

obs_quotes's Introduction

obs_quotes

po polsku

Skrypt pobiera losowo jedną linię tekstu ze wskazanego pliku tekstowego i wyświetla ją w widgecie tekstowym OBS. Linia jest losowana zgodnie z ustawioną częstotliwością w zakresie od 1 sekundy do 3600 sekund.

Załączony do przeprowadzania testów plik test.txt zawiera listę polskich przysłów.

Skrypt powstał na bazie domyślnego skryptu dostępnego w OBS url-text.py

Uruchomienie

  1. W OBS wchodzimy w panel źródła obrazu i dodajemy do niego obiekt Text (GDI+).
  2. Z menu "Narzędzia" wybieramy "skrypty". Jak pojawi się okienko naciskamy w nim plus i wskazujemy lokalizację pobranego skryptu, następnie klikamy go i naciskamy guzik otwórz. Pojawi nam się w oknie obsługującym skrypty jego nazwa (obs_quotes.py).
  3. Klikamy w nazwę obs_quotes.py i wypełniamy formularz:
    • w pierwszej linii podajemy pełną ścieżkę do pliku tekstowego
    • w drugiej linii ustawiamy czas wyświetlania napisu
    • w trzeciej linii z menu rozwijalnego wybieramy nazwę którą nadaliśmy obiektowi Text (GDI+) mającemu wyświetlać napisy
    • klikamy guzik Refresh i 👏.

in English

The script takes one line of text randomly from the indicated text file and displays it in the OBS text widget. The line is randomized according to the set frequency ranging from 1 second to 3600 seconds.

The test.txt file attached to the tests contains a list of Polish proverbs.

The script is based on the default script available in OBS url-text.py

Commissioning

  1. In OBS, we enter the image source panel and add a Text (GDI +) object to it.
  2. Select "scripts" from the "Tools" menu. When the window appears, press plus in it and select the location of the downloaded script, then click it and press the open button. His name (obs_quotes.py) will appear in the script window.
  3. Click on the name obs_quotes.py and fill in the form:
    • in the first line we give the full path to the text file
    • in the second line we set the time of displaying the text
    • in the third line, from the pull-down menu, we select the name that we gave the Text (GDI +) object that was to display the strings
    • we click Refresh and 👏.

obs_quotes's People

Contributors

bibliotekarz avatar arekbeka avatar

Stargazers

MelonJack avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.