RegisterExtensionSearchPath#
- omni.mdl.neuraylib.scripts.RegisterExtensionSearchPath(*args, **kwargs)#
Register a folder of your extension data in an default MDL search Path.
The module can then be found in the MDL package ``::omniverse_exts::<extensionName>`` for imports from other MDL files. When referencing in a USD Shader Node it looks like:
>>> uniform token info:implementationSource = "sourceAsset" >>> uniform asset info:mdl:sourceAsset = @omniverse_exts/<extensionName>/MyMaterials.mdl@
- Parameters:
extensionName – The name of your extension, e.g., ``omni.foo.bar``.
contentPath – The absolute path of the content you want to register.
- Returns:
The absolute path of the registered path which is either a symlink, a copy, or empty in case of failure.