View Full Version : Image sequence as a background

03 March 2006, 04:40 PM
Hi all,
I am writing a script where I need to set an animated background image, using a sequence of images in the form image.000.jpg, image.001.jpg, image.002.jpg...

I have done the following:

b.numframes = 50
b.aspect =1.0
setAsBackground b
setBkgImageAnimate true
setBkgImageAspect #output
setBkgFrameRange [0,49,1]
setBkgStartTime 0
setBkgSyncFrame 0

but still it is not animated.
When I do it interactively using the viewport background dialog, I have to check the 'sequence' tickbox to make it work properly, I think this is the problem with the script.

What is the MAXscript equivalent of that 'sequence' tickbox?

Thanks a lot

03 March 2006, 06:30 AM
I havent tried this yet, but im guessing that you'll need to point to the IFL file instead of the JPG file. IFLs are the files that are automatically created when you open files as a "sequence" in max. These files are just simple text list files which you could also create using maxscript.

hope this helps:)

CGTalk Moderation
03 March 2006, 06:30 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.