MediaBrowserIndex

Read with AI
All docs in one file (llms-full.txt)
MediaBrowserIndex #Operation #Node
MediaBrowserIndex

For the MediaBrowser folder selected in the dropdown on the node, it outputs the File Path at position Index and that folder’s Item Count. Combined with Counter, you can build a flow that switches material on every beat.

  • All in the dropdown (the default) targets all MediaBrowser content rather than a specific folder
  • Index wraps by modulo (Index % Count; a negative Index wraps around to the end). Going past the item count only returns to the start; it is not clamped
  • Firing Trigger outputs again at the current Index, without changing Index
  • When the folder is empty, File Path is an empty string
  • The node shows the folder, Index, Count, and the name of the currently selected file

Switching folders resets Index to 0. A position you had been advancing with Counter or similar is not preserved.

Paths are available for Hap / Video / VLC / Image / Shader / Temp content. Other types give an empty string.

Input ports

Port IDType
Indexint
Triggertrigger

Output ports

Port IDType
File Pathstring
Item Countint

Scriptable members

PathType
indexInputint
currentIndexint
selectedFolderGuidstring
currentPathstring
itemCountint

Synapse Apps (scripting)

await synapse.modules.create({ type: "MediaBrowserIndex" })

Pages linking here

Also referenced from