HIDE & SHOW

OBS Lua HIDE & SHOW 3.5.19.23

  • Added Features:
    • Introduced new commands: rand_like_* and reset.
  • Bug Fixes:
    • Fixed an issue where the all_like_* and all target commands were not functioning correctly in versions 2 and 3.
    • Resolved the problem where the script failed to restart itself when switching scenes.
    • When the "Switch Scenes" option is enabled, the program will now restart whenever you manually or automatically switch scenes.
You can now manipulate objects (sources) randomly:

  • Use the rand_like_* command to randomly hide and show objects.
  • Specify the number of objects you want to select randomly by using curly brackets, such as rand{number}_like_label.
  • for example, hide | rand_like_label will hide a random object every 1 second.
A new feature allows you to customize action repetition:

  • Set the duration and repetitions for an action.
  • Use the format: <action> | <target> | <duration> | x<repetitions> | <reset duration>.
  • For example, hide | label | 3s | x4 | 6s will execute the "hide" action on the "label" target for 3 seconds, repeating it four times, and resetting after 6 seconds.
  • Like
Reactions: NAZARUIZ
What's New:
  • onhideEnd
  • onshowEnd
  • repetition
  • onstream
  • onrecord
  • indexing
'Action mode' is a dropdown menu, where you choose how you want to execute the commands.
hns am.PNG

  • Global (default)
this is always default; when you select this option, it will execute the command instantly.​
  • Streaming
Select this option, if you want to execute certain commands when you are streaming.​
  • Recording
This option will only execute if you are recording.​
'Repeat' is an input for 'Setup action'; use it to set how long you want the action to execute for.
hns rp.PNG

  • Value Type
If the value of the repeat is set to -1; that means it will run forever. You can modify the value​
To any number you want. just not 0!​
What's new:
  • UI (user interface)
  • Program sources
  • Linear behavior
  • Switch scenes
  • Storage capacity
  • Command prompt
  • (all) & (all_like_*)
Status box is where you would toggle on/off advanced settings.
hns p1.PNG

  • UI
when is active it will let the user interact with user interface (UI) like buttons/dropdown etc.
  • Linear Behavior
this option will make the program run in synchronization meaning (hide) will not execute before (show) and vice versa.
  • Switch Scene
when is active it will automatically switch scenes whenever you select a different scene.

Configuration is where you can select a scene that you are currently working with.
hns p3.PNG

  • Manual interface
check this box to work with a command prompt, instead of the UI

Action setup is where you would add an object that you want to hide/show.
hns p4.PNG

  • Action
this lets you select an action that you want to perform on the target (hide/show) are the only options. (Anything that is marked with * is required)
  • Target
this is the target you want to effect, in this case hide or show.
  • Time
this is the timer which runs in seconds, so for example 120 would be (2 minutes)
if you give it 5 seconds that would mean (action) hide/show would execute every 5 seconds.
  • Random
check this box, if you want the timer to be random.

Event setup is where you would work with events, you can use this to listen to a specific target whenever it hides or shows itself.
hns p5.PNG

  • Event
select the event you want to listen to, the options are (onhide) and (onshow)​
  • Handle
the target you want to add the event to.​
  • Target
the target you want to effect, when the event is triggered.​
  • Action
the action you want to apply to the target, in this case there is only two options (hide, show)​

The source list is where you will see all the operations that are currently running.
hns p2.PNG


Operation is where you will be able to delete an operation that is currently executing.
This is only visible if the (Source list) is not empty.

hns p7.PNG


all & all_like_*
If you are using (UI) when select the target dropdown it will give you the option <all> and <all_like_*>
selecting <all> it would mean that everything or every operation target that you have defined will be effected by this <all> command.
if you select <all_like_*> it will ask for input, for the target/word you want to work with
example: test => this would return the result like "all_like_test" and it will search through the program sources and if it finds anything that matches the word "test" then that action would be effect that/those target.

Attachments

  • hns p6.PNG
    hns p6.PNG
    2.5 KB · Views: 16
  • hns p3.PNG
    hns p3.PNG
    3.1 KB · Views: 15
What's new:
  • Add multiple sources
  • Chain events
  • Run on seconds
  • Run on minutes
  • Randomness
  • Auto start
img.example
w.PNG

gif.example
ezgif-3-62582bcb5a.gif


(Example video) Tutorial
  • Like
Reactions: NAZARUIZ
Top