Rename texture name for IFL file

Good afternoon.

You need to rename the textures used in the scene.
The forum has a page "Rename texture name" http://www.scriptspot.com/forums/3ds-max/scripts-wanted/rename-texture-name

There's a code
---------------------------------------------------------------------------------
theMaps = getClassInstances BitmapTexture
for i in 1 to theMaps.count do
(
fileName = theMaps[i].filename
newFilename = getFilenamePath fileName + "\\map_" + i as string + getFilenameType
fileName
if renameFile fileName newFilename then theMaps[i].filename = newFilename
)
----------------------------------------------------------------------------------
The code works fine if the scene uses a texture like ".jpg", ".psd", and so on. My scene uses textures like IFL.

I use two sets of textures in my scene. The first set is high-resolution for the final rendering, and the second is low-resolution for creating the preview file.

In my work, the main question is the time spent on creating the preview file. Therefore, use Assets Tracking, is not a solution.

Thus, there are two sets of textures and two sets of IFL files,for high and low resolution.

Simple IFL file renaming does not work.

It is clear that it is necessary to rename both a IFL file and the separate file used in this IFL file.

Is there a graceful way to handle this renaming?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
antomor's picture

Collect Asset open code

Hi.
My scrip working with ifl files. And have open code. Maybe this help with you script.
http://www.scriptspot.com/3ds-max/scripts/collect-asset

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.