Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

PLY-Rename

A simple Python tool to batch rename .ply files in a folder, changing their prefix and reindexing them sequentially. Useful for datasets with files like soldier_redandblack_0001.ply to rename as square_1.ply, square_2.ply, etc.

Features

  • Renames all .ply files in a folder to a new prefix and sequential index
  • Shows a preview of the first rename and asks for confirmation
  • Uses tqdm for progress display
  • Command-line interface with argparse
  • Docker support

Usage

With Python

  1. Install requirements:
    pip install tqdm
  2. Run the script:
    python rename_ply.py /path/to/folder --prefix square

With Docker

  1. Build the image:
    docker build -t ply-rename .
  2. Run the container (replace /your/ply/folder with your folder path):
    docker run -it --rm -v /your/ply/folder:/data ply-rename /data --prefix square

Example

Given files:

  • soldier_redandblack_0001.ply
  • soldier_redandblack_0002.ply

After running:

python rename_ply.py /path/to/folder --prefix square

They become:

  • square_1.ply
  • square_2.ply

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages