Skip to content

← utilities package

GetSourceFilename

Get the full path (filename) of the source of a packet.

This node extracts source_url property of the stream. If the source_url property has a file:// prefix (typical if originally stored via LSL), it will be stripped. The path is output as a string through the filename port. (For more flexibility or for extracting a filename or other information stored in other stream properties, use the GetStreamProperty node, followed by the StringFormat node if string manipulation is needed.) Version 1.0.0

Ports/Properties

data

Data to process.

verbose name
Data
default value
None
port type
DataPort
value type
Packet (can be None)
data direction
IN

filename

The filename extracted from the source_url property.

verbose name
Filename
default value
None
port type
DataPort
value type
str (can be None)
data direction
OUT

stream

Optionally, the name of stream from which to fetch the source filename. Leave empty to use the stream.

verbose name
Stream
default value
None
port type
StringPort
value type
str (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)