ScriptSpot

Forum topic · General Scripting

save folder

By JokerMartini · 2011-04-30

Description

I have a targeted folder for saving.

for example the user chooses C:/destop/renders/image_.jpeg

which that is then stored in a variable such as SaveLocation

SaveLocation = C:/destop/renders/image_.jpeg

Now how can I make it so when the images are rendered it inserts the frame number incrementally so the result is

image_00.jpeg (C:/destop/renders/image_00.jpeg)
image_01.jpeg (C:/destop/renders/image_01.jpeg)
image_02.jpeg (C:/destop/renders/image_02.jpeg)
image_03.jpeg (C:/destop/renders/image_03.jpeg)

Comments (2)

br0t · 2011-05-01

Cant you just add the number to the string?

yeah

JokerMartini · 2011-05-01

that is exactly what i ended up doing. check it out.


pathInfo = filterString my_path "."

pathPrefix = pathpathInfo info[1]
fileExtension = pathpathInfo info[2]
finalFileName = pathPrefix + (frame_number as string) + "." + fileExtension