Skip to main content

Function: relocateTextureResources()

relocateTextureResources(pkg, libraryPath): void

Moves every image resource's archive path under libraryPath, rewriting document references to match. Used for loose .mtlx output when --texture-library is given; irrelevant to .mtlx.zip, which retains archive-relative resources. Non-image resources (other .mtlx libraries, misc files) are left where they are.

Parameters​

pkg​

MaterialXPackage

libraryPath​

string

Returns​

void