Anyone know how to call ImageWriter twice in one script?

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Anyone know how to call ImageWriter twice in one script?

Postby 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
rook2pawn
 
Joined: 29 Jan 2008

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

Postby Zarxrax » Fri May 01, 2009 9:36 am

Avisynth can only return 1 output clip.
What are you trying to do exactly?
User avatar
Zarxrax
 
Joined: 01 Apr 2001
Location: Concord, NC

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

Postby 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
rook2pawn
 
Joined: 29 Jan 2008

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

Postby 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.
User avatar
Zarxrax
 
Joined: 01 Apr 2001
Location: Concord, NC


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest