Padding 0s for file names
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Padding 0s for file names
Usage:
open a log view/output console
load into the scene
script will count through a range of numbers and add the number with 0 padding for the file names
it will convert something like C:\trueSpace761\tS\Image Folder\Image.png into C:\trueSpace761\tS\Image Folder\Image0001.png when number is 1
or C:\trueSpace761\tS\Image Folder\Image.png into C:\trueSpace761\tS\Image Folder\Image0015.png when number is 15
open a log view/output console
load into the scene
script will count through a range of numbers and add the number with 0 padding for the file names
it will convert something like C:\trueSpace761\tS\Image Folder\Image.png into C:\trueSpace761\tS\Image Folder\Image0001.png when number is 1
or C:\trueSpace761\tS\Image Folder\Image.png into C:\trueSpace761\tS\Image Folder\Image0015.png when number is 15
You do not have the required permissions to view the files attached to this post.
Re: Padding 0s for file names
Thank you!
Not sure how to add this to my Vray Render to File
See the notes in the Frame script
Removed due to update
Not sure how to add this to my Vray Render to File
See the notes in the Frame script
Removed due to update
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Padding 0s for file names
This adds the number to your file name.
This change has not been tested.
This change has not been tested.
You do not have the required permissions to view the files attached to this post.
Re: Padding 0s for file names
Yay, it works!
Thank you!!!
It is not typical, in that the first frame rendered is named untitled0001
Normally it would be untitled0000 since the sequence's Start Frame is 0 and render 31 frames
Currently, it renders 30 frames
Thank you!!!
It is not typical, in that the first frame rendered is named untitled0001
Normally it would be untitled0000 since the sequence's Start Frame is 0 and render 31 frames
Currently, it renders 30 frames
You do not have the required permissions to view the files attached to this post.
Re: Padding 0s for file names
I was able to add png, jpg, bmp, hdr, and tga file format choices
File name choice as well .
Render Animation icon
LMB - Use to Set the Render to File's render folder and Output Frames
RMB - Opens Folder
File name - Image name
File format - Image format
Frames - Number of Frames to Render
Period - Speed of which Frames are Rendered
Frames - Current Frame being Rendered
Render Frames - Starts the process
Note: Frame 0 will be appended with _0001, Frame 1 with 0002, etc...
This process supports Rendering while scripts,
Activities, and Timers are running
Required: Set the Render to File's render Folder and Output Frames first!
This sets the path to render to on the Vray panel's Output File attribute
Warning: If you do not set it, it will still render to an undefined area!
Set the number of Frames to render, Image name and format from the Vray panel .
Thanks again, Clinton!
File name choice as well .
Render Animation icon
LMB - Use to Set the Render to File's render folder and Output Frames
RMB - Opens Folder
File name - Image name
File format - Image format
Frames - Number of Frames to Render
Period - Speed of which Frames are Rendered
Frames - Current Frame being Rendered
Render Frames - Starts the process
Note: Frame 0 will be appended with _0001, Frame 1 with 0002, etc...
This process supports Rendering while scripts,
Activities, and Timers are running
Required: Set the Render to File's render Folder and Output Frames first!
This sets the path to render to on the Vray panel's Output File attribute
Warning: If you do not set it, it will still render to an undefined area!
Set the number of Frames to render, Image name and format from the Vray panel .
Thanks again, Clinton!
You do not have the required permissions to view the files attached to this post.
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Padding 0s for file names
You could subtract 1 from the number to start at 0.
Re: Padding 0s for file names
Was not sure (I tried) how to do that
I like this without all the zeroes
Code: Select all
// strnum = '0' + strnum
strnum = '0' + strnum -1;
You do not have the required permissions to view the files attached to this post.
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Padding 0s for file names
No zeros is ok as long as whatever program you use it with doesn't put 10 before 2 through 9.trueBlue wrote: ↑15 May 2022, 03:59 Was not sure (I tried) how to do thatI like this without all the zeroesCode: Select all
// strnum = '0' + strnum strnum = '0' + strnum -1;
padding.png
Re: Padding 0s for file names
How would you, subtract 1 from the number to start at 0?
Removed due to update
Removed due to update
- clintonman
- Captain
- Posts: 5430
- Joined: 21 May 2009, 21:08
- Type the number ten into the box: 0
- Location: California
- Contact:
Re: Padding 0s for file names
This does it.
You do not have the required permissions to view the files attached to this post.