Chaos Corona Forum

General Category => General CG Discussion => Topic started by: Jpjapers on 2016-11-23, 15:42:01

Title: [MAXSCRIPT] Batch renaming bitmaps in slots?
Post by: Jpjapers on 2016-11-23, 15:42:01
I have a folder of jpegs that arent technically jpegs as they end in .1 or .2
I have a max file that references these.
I need to rename them in the folder to .jpg and have max make the same name change in the bitmap slots.
Has anyone got any thoughts or snippets that could help me?
Thanks
Jack
Title: Re: [MAXSCRIPT] Batch renaming bitmaps in slots?
Post by: romullus on 2016-11-23, 16:14:10
Not sure if i understood you correctly. Are you saying that you have bunch of files that are named like that "file-name.1" instead of "file-name.jpg"? If yes, then you can change extensions with some batch rename utility (i recomend this (http://www.bulkrenameutility.co.uk/Main_Intro.php)) and then relink bitmaps with Relink Bitmaps (http://www.colinsenner.com/scripts/relink-bitmaps) with ignore extension option checked.
Title: Re: [MAXSCRIPT] Batch renaming bitmaps in slots?
Post by: Frood on 2016-11-23, 16:47:59
then you can change extensions with some batch rename utility

For the filesystem, a command prompt would be enough though:

1. backup your texture directory
2. open a command prompt
3. change to the directory with the files havin .1 and .2 as extention
4. Type

Code: [Select]
ren * *.jpg
Done.

But a batch renamer utility handling more sophisticated tasks is handy to have anyway.


Good Luck


Title: Re: [MAXSCRIPT] Batch renaming bitmaps in slots?
Post by: Jpjapers on 2016-11-23, 17:04:04
Thats correct Romullus. I did not at all realise there was an ignore extension button in relink bitmaps. Jesus thats useful!
Thanks for that frood :D
Title: Re: [MAXSCRIPT] Batch renaming bitmaps in slots?
Post by: romullus on 2016-11-23, 19:18:42
Isn't that funny? I wasn't aware about this feature too and i was pointed to it in another forum, when i asked similar question to yours, since then i already saved the day for a few people by telling them about ignore extension. RB has only handful of options that are placed in plain sight, yet so many people get surprized by it's existence :]