Author Topic: [MAXSCRIPT] Batch renaming bitmaps in slots?  (Read 3287 times)

2016-11-23, 15:42:01

Jpjapers

  • Active Users
  • **
  • Posts: 1662
    • View Profile
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

2016-11-23, 16:14:10
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8877
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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) and then relink bitmaps with Relink Bitmaps with ignore extension option checked.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2016-11-23, 16:47:59
Reply #2

Frood

  • Active Users
  • **
  • Posts: 1931
    • View Profile
    • Rakete GmbH
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


Never underestimate the power of a well placed level one spell.

2016-11-23, 17:04:04
Reply #3

Jpjapers

  • Active Users
  • **
  • Posts: 1662
    • View Profile
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

2016-11-23, 19:18:42
Reply #4

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8877
  • Let's move this topic, shall we?
    • View Profile
    • My Models
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 :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures