Wintermute Engine Forum

Wintermute Engine => Scripts, plugins, utilities, goodies => Topic started by: Lebostein on July 14, 2009, 01:04:31 PM

Title: Anime Studio -> WME Sprite
Post by: Lebostein on July 14, 2009, 01:04:31 PM
Hi,

in dependence on the free download of Anime Studio (http://forum.dead-code.org/index.php?topic=3705.0 (http://forum.dead-code.org/index.php?topic=3705.0)), here is a tip to export animations to wme sprites (almost) directly.

1. With this free Anime Studio 5 version, you can't export single png files (in Pro version only). But you can export a png based QuickTime movie:
http://www.lostmarble.com/forum/viewtopic.php?t=13927 (http://www.lostmarble.com/forum/viewtopic.php?t=13927)
Here you can download an example movie: http://www.lebostein.de/tutorial/anime/Henry_Jump.mov (http://www.lebostein.de/tutorial/anime/Henry_Jump.mov)

2. Download my little python script, to convert a png based QuickTime movie to wme sprite:
http://www.lebostein.de/tutorial/anime/mov_2_wmesprite.py (http://www.lebostein.de/tutorial/anime/mov_2_wmesprite.py)

3. Edit the script header:

Code: [Select]
# =======================================================================

wme_directory = 'S:/WME_Games/Loeffel/data/'
wme_subfolder = 'actors'

moviepath = 'C:/TEMP/Henry_Jump.mov'

frame_hotspot = [70, 240]
frame_delay = 24
frame_alpha = 255

# =======================================================================

wme_directory = directory of your game data folder, important: end with '/'
wme_subfolder = an existent (!) subfolder for the new sprite (actors, interface, items...)
moviepath = path of your png based QuickTime movie, important: an underscore to separating name (Henry) and action (Jump) is required!

Save the script!

4. Start the script:
with double click on the script or in console: >>> python mov_2_wmesprite.py

5. Check your game directory:

before:
(http://www.lebostein.de/temp/wme_spg_1.png)

after:
(http://www.lebostein.de/temp/wme_spg_2.png)

(http://www.lebostein.de/temp/wme_spg_3.png)

Now, double click on the sprite to load it into the sprite editor. Have fun!
Title: Re: Anime Studio -> WME Sprite
Post by: HelLRaiseR on July 14, 2009, 05:00:05 PM
Interesting tool. Thanks   :)