add_default_resource_paths
Adds the default resource paths that would be used if the given file was imported. This is the same set of paths that are added if "add_scene_shader_paths" is set to true when importing a scene or scene elements.
Web Services Notes:
- filename is split into path/basename.extension and paths added as follows:
Mdl shader paths
- path
- path/materials
- path/mdl
- path/shaders
- path/basename
- path/basename/materials
- path/basename/mdl
- path/basename/shaders
Resource paths
- path
- path/ies
- path/lightprofiles
- path/textures
- path/basename
- path/basename/ies
- path/basename/lightprofiles
- path/basename/textures
EG: the filename 'scenes/interior/interior03.mi' would have a path 'scenes/interior', basename 'interior03' and extension 'mi'. The paths would resolve within the RealityServer content root.
References:
arguments
-
"filename" : String
The name of the file to add default paths for. This file must be within the content root directory. A relative path will automatically be resolved within the content root. An absolute path must terminate within the content root or else adding will fail. If the path begins with "${shader}" no paths are added as the file is already in a resource path. A file URI (file://) may be used instead of a filename in which case the path will always be interpreted as relative to content root.