arguments
- "filename" : String
The new filename (including the .mdle extension) relative to content_root to which the export will occur.
- "mdle_data" : Map
A map containing MDLE data in a similar format described in the documentation for mi::neuraylib::IMdle_api::export_mdle(). The format of the defaults property follows that of the arguments parameter for the create_material_instance_from_definition and create_function_call_from_definition commands. Note that the annotations property currently only supports the ::anno::description(string), ::anno::key_words(string[N]), ::anno::display_name(string), ::anno::author(string) and ::anno::copyright_notice(string) annotations. Only prototype_name and thumbnail are required properties.
Example:{ "prototype_name": "mdl::nvidia::core_definitions::flex_material", "defaults": { "reflectivity": 0.1, "is_metal": { "value": true }, "base_color": { "call": { "name": "example_func_call", "field": "tint" } } }, "annotations": { "::anno::description(string)": { "description": "MDLE version of flex_material" }, "::anno::key_words(string[N])": { "words": [ "example", "mdle" ] }, "::anno::display_name(string)": { "name": "Example MDLE" }, "::anno::author(string)": { "name": "migenius" }, "::anno::copyright_notice(string)": { "copyright": "migenius 2020" } }, "thumbnail_path": "thumbnails/flex_material.png", "user_files": [ { "source_path": "user_data/flex_material.data", "target_path": "flex_material.data" } ] }