utility:data sources get attribute
Version: 0.0.0
Description
A DataSources in pin 0 and a property name (string) in pin 1 are expected in input. An index refering to the property can also be provided.
Inputs
| Input | Name | Expected type(s) | Description |
|---|---|---|---|
| Pin 0 Required | data_sources | data_sources | |
| Pin 1 Required | property_name | string | Accepted inputs are: 'file_path' (returns string), 'result_file_name' (returns string), 'domain_file_path' (returns string), 'domain_result_file_name' (returns string), 'num_keys' (returns int), num_result_key (returns int), num_file_path (returns int), 'num_result_file_path' (returns int), 'key_by_index' (returns string), 'result_key_by_index' (returns string), 'path_by_index' (returns string), 'path_key_by_index' (returns string). |
| Pin 2 | property_index | int32 | Index for the property. Must be set for 'domain_file_path', 'domain_result_file_name' 'key_by_index', 'result_key_by_index', 'path_by_index' and 'path_key_by_index' properties. |
| Pin 3 | property_key | string | Key to look for. Must be set for 'file_path' and 'domain_file_path' properties. |
| Pin 4 | property_result_key | string | Result key to look for. Can be used for 'file_path', 'result_file_name', 'domain_file_path' and 'domain_result_file_name'. |
Outputs
| Output | Name | Expected type(s) | Description |
|---|---|---|---|
| Pin 0 | property | string, int32 | Property value. |
Configurations
| Name | Expected type(s) | Default value | Description |
|---|---|---|---|
| mutex | bool | false | If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads. |
Scripting
Category: utility
Plugin: core
Scripting name: ds_get_attribute
Full name: utility.ds_get_attribute
Internal name: datasources::get_attribute
License: None
Changelog
- Version 0.0.0: Initial release.