Hi friends,
I have a question.
I need import a image sequence to Realflow.
Anyone know how can I to do?
Thanks a lot
Cheers, Jordi
Import Image question
Re: Import Image question
Here you go:
This is a batch script you can modify to your own needs. As always with Python scripts: please mind the indents. Here, the image name must have this format: filename###.extension
Cheers,
Thomas
Code: Select all
pathToSeq = "Enter your path here"
fileName = "Enter the common part of the file name here"
extension = ".jpg"
numberOfFiles = 20
for i in range(0, numberOfFiles):
if (i < 10): fileIndex = "00"+str(i)
elif (i > 10 and i < 100): fileIndex = "0"+str(i)
elif (i > 100): fileIndex = str(i)
completeName = pathToSeq+fileName+fileIndex+extension
image = Image.new()
image.open(completeName)
scene.message("Loading file "+completeName+" @ "+str(image.getSize()))
image.close()
Cheers,
Thomas
Thomas Schlick | Next Limit Technologies
-
- Posts: 8
- Joined: Thu Jan 31, 2013 3:58 pm
Re: Import Image question
Thanks Thomas,
I try now.
Cheers,
Jordi
I try now.
Cheers,
Jordi
Re: Import Image question
Stupid question:
Why are you importing a sequence of JPGs. Are you using them as an aminated map filter?
Thanks,
Why are you importing a sequence of JPGs. Are you using them as an aminated map filter?
Thanks,