?
Solved

Batch processing image sequences

Posted on 2005-04-26
11
Medium Priority
?
488 Views
Last Modified: 2008-01-09
I have hundreds of folders each containing a unique image sequence of PNGs and want to batch process these through Flash 7.2.  

How can this be done in Flash?  Could the batch process refer to an XML document detailing: directory paths, 'save as' names and paths, etc.?

Here are the steps:

1. Change document size to the size of the PNG

2. Create a new layer

3. Select frame1 on the new layer

4. Import PNGs to timeline
(Ctrl+R, browse to folder, answer yes to "This file appears to be a part of a sequence of images.  Do you want to import all of the images in the sequence?")

5. Insert blank frame at frame1 and last frame (F5)

6. Save document and give unique name

7. Publish SWF at 80% JPEG quality for Flash Player 6

8. Close
0
Comment
Question by:speyfisher
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 18

Expert Comment

by:Billystyx
ID: 13871225
you mean like commands?
from the help file...

Select a step or set of steps in the History panel.
Select Save As Command from the History panel options menu.
Enter a name for the command and click OK.
The command appears in the Commands menu.

Note: The command is saved as a JavaScript file (with the extension.jsfl) in your Flash MX 2004\<language>\First Run\Commands folder.

Billystyx
0
 
LVL 4

Author Comment

by:speyfisher
ID: 13871470
A JSFL script sounds nice but saving History as a Command does not allow me to 'record' most of the steps required to import an image sequence in the manner I have been doing.

These steps can not be replayed, saved, or copied and will be skipped

1. Resize stage (Modify Flash Document)
3. Select frame 1 (Select Frames)
4. Import (Import)
5a. Select frame1 (Select Frames)
5b. Select last frame (Select Frames)
6. Save As
7. Publish
8. Close



0
 
LVL 18

Expert Comment

by:Billystyx
ID: 13871497
true ... not sure if there is a way of editing the jsfl script ...
aside from that I don't have any answers. There is no handy record macro button like in, say, excel, or photoshop that I know of...
sorry bout that - someone should be along shortly.
Billystyx
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 27

Expert Comment

by:negatyve
ID: 13872072
Simply you cannot (by this time) without your interaction: http://www.bit-101.com/blog/archives/000075.html
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 13873103
Howdy...  :)

There are ready made tools that might do the job you are looking for...

http://www.png2swf.com/
http://www.quiss.org/swftools/

Hope that helps...  :)

CyanBlue
0
 
LVL 4

Author Comment

by:speyfisher
ID: 14074251
I can process these image sequences in batches using some jsfl scripting, an external file referencing info about the batch input/output,  and an FLA serving as a template.

Since many of the PNG image sequences are similar in aspect ratio and number of files (e.g. 20 images @ 640x480) I can process those similar image sequences in batches:

Create an FLA in folder containing the PNGs (e.g. C:\folder1\original.fla). Publish C:\folder1\original.swf and save.

JSFL script can:
 - copy C:\folder1\original.fla to C:\folder2\original2.fla
 - open C:\folder2\original2.fla
 - update library of C:\folder2\original2.fla
 - publish C:\folder2\original2.swf
 - save and close C:\folder2\original2.fla
 - copy/move C:\folder2\original2.fla, C:\folder2\original2.swf to another location.

The JSFL should refer to an external file (e.g. xml, txt, etc) that lists the input/output info such as location of the 'original' fla, location of image sequences, output location, etc.

--speyfisher

0
 
LVL 18

Expert Comment

by:Billystyx
ID: 14074957
Thanks for the info and good luck:)

billystyx
0
 
LVL 18

Expert Comment

by:Billystyx
ID: 14083600
no objections:)
0
 
LVL 37

Expert Comment

by:CyanBlue
ID: 14085925
me neither...  :)
0
 

Accepted Solution

by:
OzzMod earned 0 total points
ID: 14104031
Closed, 500 points refunded.
OzzMod
Community Support Moderator (Graveyard shift)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question