ScriptSpot

Forum topic · General Scripting

Real path of files (Missing, Found in ...)

By Tertium · 2008-05-03

Description

Using AssetTracker i can see the real path of files (bitmaps, vray proxies, photometric webs, etc.).

For example, vrayproxy is pointing to file "c:\1\mymesh.vrmesh", but 3dmax have found file in user paths or in max-file folder. AssetTracker says: "c:\1\mymesh.vrmesh", missing, found in "c:\myproject" (where "prj.max" file is).

But via MaxScript i cannot get this real path ("c:\myproject"):
print $myproxy.filename -> "c:\1\mymesh.vrmesh"

In case of bitmaps function "usedMaps()" for bitmapTexture node is helpful. But is there more general way to get real path of linked file (bitmap, vraymesh, ies, xref etc.)?

Thanks in advance.

Comments (2)

Tertium · 2008-05-03

just found:

n = mapPaths.getFullFilePath o.filename

zahid hasan · 2013-08-02

thanks for the usefull info.