replacetex
Replaces texture paths for a MLOD P3D model.
Usage:
replacetex FILENAME FROM TO
FILENAME is the file you want to have changed. FROM is the string that
shall be replaced, TO is the string that will be written instead of the replaced
string.
Example:
xyz_m16.p3d, change topmost path from xyz_m16\ to abc_m16\
replacetex xyz_m16.p3d xyz_m16\ abc_m16\
Example 2:
xyz_m16.p3d, change single texture from xyz_m16\m16.pac to
xyz_m16\m16a.pac
replacetex xyz_m16.p3d xyz_m16\m16.pac xyz_m16\m16a.pac
(Of course you can just write replacetex xyz_m16.p3d m16.pac m16a.pac, if
m16.pac doesn't occur in any path!).
:
This tool will change all texture paths to lower case. Selection names
and Named Properties are not affected.
This tool uses a simple string replace function, so all occurences of
FROM in a path will be replaced.
Example:
FROM = xyz, TO = abc
addxyzadd => addabcadd.
Author:
Lukas Pinkowski, vektorboson@gmx.de
Version:
1.0
BUGS:
Output p3ds are smaller than input p3ds (what is lost?)
Date:
November 21, 2005
History:
1.0
Initial release
Page generated by Ddoc.