Texture file path: Search and reconnect texture files


This command will search and fix texture file paths of an active scene.

The same as reference file path, you may need to fix texture file paths for the files you receive from your colleagues or even clients.
I hope this little scripts will also save your time. ;)

Command:
import i3d,i3d_utility as iU;iU.changeTextureFilePath().doChange(-1,"sourceimages");


Prerequisites:
Download i3d pyc files.
https://ironthreed.blogspot.com/2019/02/i3d-2019-version-i3d-python-script-files.html
A license file.
Download and move it to "/User/maya/scripts/i3d/" folder.
i3d_lic.pyc

Example:
1. Active scene file path is..

2. Execute the command(python)
import i3d,i3d_utility as iU;iU.changeTextureFilePath().doChange(-1,"sourceimages");
# INPUT ARGUMENTS: int, string
#      int: directory level from current active scene.
#            e.g. -1 will be C:\Users\i3d\Documents\maya\default\
#      string: folder name(where reference files are stored)
#            e.g. -1 and "sourceimages" will be C:\Users\i3d\Documents\maya\default\sourceimages\

Comments

Popular posts from this blog

HIK: Getting current character and current source.