Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX Plug-ins Import-Export Discussions / Maya FBX Exporter doesn't export absolute file path of textures
  RSS 2.0 ATOM  

Maya FBX Exporter doesn't export absolute file path of textures
Rate this thread
 
53821
 
Permlink of this thread  
avatar
  • DP007
  • Posted: 30 March 2011 04:18 AM
  • Total Posts: 17
  • Joined: 16 July 2010 07:06 AM

Hey,

it’s me again. I’m wondering how to get access to the absolute path of textures when the path is set relatively in maya. For example, I’ve got a project setup where all my textures are located in the “textures” folder of the maya project. In Maya I set the texture references relatively to that project directory (e.g. “\textures\file.tga"). When I export the scene via fbx, these references are stored as relative path and not absolute. But how do I get access to the absolute path when the project path isn’t stored in fbx???

Thanks again.



Replies: 1
/userdata/avatar/334zh4d49.jpg

Hi DP007.

The FBX file stores both the relative and absolute path to textures.During the import process.  If the FBX importer doesn’t find the texture in the absolute path it will try relative path. Once again, if it fails to find the image in the relative path, but you embedded the texture on export, only then will it unpack the embedded image within an FBM folder which accompanies the FBX file.

Here is some example of these paths within from an FBX files saved in ASCII

FileName: “C:/Users/abitbod/Documents/QA/Test Content/Textures/Black_White.jpg” < Absolute path
RelativeFilename: “..\..\..\..\Test Content\Textures\Black_White.jpg” < Relative path

Please let me know if this answers your question. If you still fail to find the information you are looking for in the ASCII file, please send me a copy of an FBX file which demonstrates this and I will be happy to investigate further.

Thanks,

David Abitbol
Autodesk FBX

Author: DavidAbitbol

Replied: 31 March 2011 05:28 AM