Anyone know how to call ImageWriter twice in one script?

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
rook2pawn
Joined: Tue Jan 29, 2008 9:06 am
Org Profile

Anyone know how to call ImageWriter twice in one script?

Post by rook2pawn » Fri May 01, 2009 2:52 am

I can't seem to get this to work..

image1 = ImageSource("foo.png").Trim(0,-1)
image2 = ImageSource("bar.png").Trim(0,-1)
ImageWriter(image1, "D:\cat", 0,1, "png",info=true)
ImageWriter(image2, "D:\dog", 0,1, "png",info=true)



This only seems to write out image2... Super kudos to anyone can help me!

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Re: Anyone know how to call ImageWriter twice in one script?

Post by Zarxrax » Fri May 01, 2009 9:36 am

Avisynth can only return 1 output clip.
What are you trying to do exactly?

User avatar
rook2pawn
Joined: Tue Jan 29, 2008 9:06 am
Org Profile

Re: Anyone know how to call ImageWriter twice in one script?

Post by rook2pawn » Fri May 01, 2009 10:21 pm

i want to be able to open two different images and apply some trans, then write those two outputs.. in one script, not two

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Re: Anyone know how to call ImageWriter twice in one script?

Post by Zarxrax » Sat May 02, 2009 9:54 am

You'll need to treat it as an image sequence, and name the files accordingly. It has some examples in the avisynth documentation.

Locked

Return to “AviSynth Help”