Media Assets Extensions
9 nodes
On this page 9
Get Assets
FunctionQuery assets using a normalized glob pattern.
Supported wildcards:
* = any chars except '/'
? = any single char except '/'
** = any chars including '/'
GetAssets -> Text Array
_library: IDivookaAssetLibrary
wildcard: Textstring[] GetAssets(
IDivookaAssetLibrary _library,
string wildcard)Parameters
| name | type | default | description |
|---|---|---|---|
| _library | IDivookaAssetLibrary | — | |
| wildcard | Text | — |
Returns
| result | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Media Assets Extensions
- Package
- Platform
Get Assets In Directory
FunctionGet all assets directly inside the given directory.
GetAssetsInDirectory -> Text Array
_library: IDivookaAssetLibrary
directoryPath: Text
recursive: Truthstring[] GetAssetsInDirectory(
IDivookaAssetLibrary _library,
string directoryPath,
bool recursive = false)Parameters
| name | type | default | description |
|---|---|---|---|
| _library | IDivookaAssetLibrary | — | |
| directoryPath | Text | — | |
| recursive | Truth | False |
Returns
| result | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Media Assets Extensions
- Package
- Platform
Get Assets With Extension
FunctionGet all assets having the given extension.
Accepts "png" or ".png".
Comparison is ordinal-ignore-case.
GetAssetsWithExtension -> Text Array
_library: IDivookaAssetLibrary
extension: Textstring[] GetAssetsWithExtension(
IDivookaAssetLibrary _library,
string extension)Parameters
| name | type | default | description |
|---|---|---|---|
| _library | IDivookaAssetLibrary | — | |
| extension | Text | — |
Returns
| result | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Media Assets Extensions
- Package
- Platform
Get Assets With Extensions
FunctionGet all assets having any of the given extensions.
Accepts values like "png", ".png", "jpg", ".jpg".
GetAssetsWithExtensions -> Text Array
_library: IDivookaAssetLibrary
extensions: Text Arraystring[] GetAssetsWithExtensions(
IDivookaAssetLibrary _library,
params string[] extensions)Parameters
| name | type | default | description |
|---|---|---|---|
| _library | IDivookaAssetLibrary | — | |
| extensions | Text Array | — |
Returns
| result | Text Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Media Assets Extensions
- Package
- Platform
Get Library Audio
FunctionGet audio from library by path.
GetLibraryAudio -> StandardAudioSegment
_library: IDivookaAssetLibrary
path: TextStandardAudioSegment GetLibraryAudio(
IDivookaAssetLibrary _library,
string path)Parameters
| name | type | default | description |
|---|---|---|---|
| _library | IDivookaAssetLibrary | — | |
| path | Text | — |
Returns
| result | StandardAudioSegment |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Media Assets Extensions
- Package
- Platform
Get Library 16-bit Grayscale Image
FunctionGet a 16-bit greyscale image from library by path - a heightmap, a mask, a sensor's reading - at every level the file holds, where Get Library Image reads 256.
GetLibraryGrayscale16Image -> Grayscale16BitImage
_library: IDivookaAssetLibrary
path: TextGrayscale16BitImage GetLibraryGrayscale16Image(
IDivookaAssetLibrary _library,
string path)Parameters
| name | type | default | description |
|---|---|---|---|
| _library | IDivookaAssetLibrary | — | |
| path | Text | — |
Returns
| result | Grayscale16BitImage |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Media Assets Extensions
- Package
- Platform
Get Library Image
FunctionGet image from library by path.
GetLibraryImage -> Pixel Image
_library: IDivookaAssetLibrary
path: TextPixelImage GetLibraryImage(
IDivookaAssetLibrary _library,
string path)Parameters
| name | type | default | description |
|---|---|---|---|
| _library | IDivookaAssetLibrary | — | |
| path | Text | — |
Returns
| result | Pixel Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Media Assets Extensions
- Package
- Platform
Get Library Table
FunctionGet table from library by path.
GetLibraryTable -> Table
_library: IDivookaAssetLibrary
path: TextTable GetLibraryTable(
IDivookaAssetLibrary _library,
string path)Parameters
| name | type | default | description |
|---|---|---|---|
| _library | IDivookaAssetLibrary | — | |
| path | Text | — |
Returns
| result | Table |
Remarks
The asset is CSV text, read as UTF-8 and parsed as CsvFormat.Parse parses it - the delimiter told from the text, each column read as the kind its cells are - into a table named after the file, which is exactly what a `.csv` in a document's library is. That is the same shape the two readers either side of it have - ask the library, decode the bytes - and it is why the throwing stub this replaced was so easy to miss: it was registered in the palette like the others and looked like them. Standalone defect 8.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Media Assets Extensions
- Package
- Platform
Save Asset
FunctionThis node carries no documentation.
SaveAsset
_library: EmbeddedAssetManager
image: Pixel Image
path: Text
overwrite: Truthvoid SaveAsset(
EmbeddedAssetManager _library,
PixelImage image,
string path,
bool overwrite)Parameters
| name | type | default | description |
|---|---|---|---|
| _library | EmbeddedAssetManager | — | |
| image | Pixel Image | — | |
| path | Text | — | |
| overwrite | Truth | — |
Remarks
Deliberately on the concrete InMemoryAssets.EmbeddedAssetManager: writing into the document's library
is not covered by the injected read-only contract, so a graph that wants it has to be handed the
manager explicitly.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Media Assets Extensions
- Package
- Platform