Apr-06-2018, 11:26 AM
Hi All
I wonder if somebody can help. I'm running a script to help me order files for a 3d pdf application...basically i have a software which outputs .stl files which the scripts puts into order so the 3d pdf can play as a small frame by frame progression.
My output files look like this:
VS_Subsetup1_Maxillar.stl
VS_Subsetup2_Maxillar.stl
VS_Subsetup3_Maxillar.stl
VS_Subsetup4_Maxillar.stl
VS_Subsetup5_Maxillar.stl
The script i'm running at the moment looks like this:
#re_frame = r'- 0*(\d+) -'
re_frame = r'_*(\d+)_'
But by using this script my team have to add an underscore before the number in order for the program to work.
Can anybody tell me how to solve this so that it works without making any changes to the file name?
I wonder if somebody can help. I'm running a script to help me order files for a 3d pdf application...basically i have a software which outputs .stl files which the scripts puts into order so the 3d pdf can play as a small frame by frame progression.
My output files look like this:
VS_Subsetup1_Maxillar.stl
VS_Subsetup2_Maxillar.stl
VS_Subsetup3_Maxillar.stl
VS_Subsetup4_Maxillar.stl
VS_Subsetup5_Maxillar.stl
The script i'm running at the moment looks like this:
#re_frame = r'- 0*(\d+) -'
re_frame = r'_*(\d+)_'
But by using this script my team have to add an underscore before the number in order for the program to work.
Can anybody tell me how to solve this so that it works without making any changes to the file name?