Tekitoumen opened this issue on Aug 08, 2022 · 4 posts
Tekitoumen posted Mon, 08 August 2022 at 12:44 AM
Hello,
I want to ask about the file name output by export.
File > Export > Wavefront OBJ ...
For example, if I set the file name to "test" and export several obj files, the obj files are created numbered as follows.
test_0.obj、test_1.obj、test_2.obj・・・・・
I want numbering as shown below.
test_0000.obj、test_0001.obj、test_0002.obj・・・・・
Is it possible to achieve this?
If it is possible, please tell me how.
Thank you.
Y-Phil posted Mon, 08 August 2022 at 4:19 AM
Here is a V2 and V3 compatible Python instruction to achieve this
"{}_{:04d}".format('test', 35)
So that a Python script could look something like this:
dialog = poser.Dialog()
txt_dlg = poser.DialogTextEntry(dialog, question)
if txt_dlg.Show():
base_file_name = txt_dlg.Text()
for i in range(number_of_iterations):
full_file_name = "{}_{:04d}".format(base_fiule_name, i)
𝒫𝒽𝓎𝓁
(っ◔◡◔)っ
👿 Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
👿 Mac Mini M2, Sequoia 15.2, 16GB, 500GB SSD
👿 Nas 10TB
👿 Poser 13 and soon 14 ❤️
Tekitoumen posted Tue, 09 August 2022 at 1:19 AM
Thank you!
I was able to solve it thanks to you.
Y-Phil posted Tue, 09 August 2022 at 5:05 AM
You're welcome :smile:Thank you!
I was able to solve it thanks to you.
𝒫𝒽𝓎𝓁
(っ◔◡◔)っ
👿 Win11 on i9-13900K@5GHz, 64GB, RoG Strix B760F Gamng, Asus Tuf Gaming RTX 4070 OC Edition, 1 TB SSD, 6+4+8TB HD
👿 Mac Mini M2, Sequoia 15.2, 16GB, 500GB SSD
👿 Nas 10TB
👿 Poser 13 and soon 14 ❤️