Hi, I’m writing a tool to check if all our texture paths are ok, but I can’t find an exact solution. Is there any way to check if the texture paths are “local”, and therefore be read in a different PC as long as the project is properly set up ?
I’m using :
cmds.getAttr(’%s.fileTextureName’ % texture)
to get the Texture path but it always give me the Full Path of the texture. So if it’s in the designer’s PC, even if the project isn’t properly setup, it will give you a valid path.
I’m working around it by getting the workspace (project path) and check if it is included in the Texture Full Path. It kinda works, but it’s not really precise if the designer has project folders inside other projects.
How do you check your File Paths ?