Sprite Render Script

3
votes
Version: 
0.6
Date Updated: 
08/31/2009

This sprite render script will render animations and pack them into a sprite sheet. It exports the image file, (and optionally a heightmap) and the animation frame data as an XML file. I has a couple unique features, useful for innovative sprite-based games.

* See the readme for features. (included in the script, too)

There's a feature that allows you to create "Sprite Points" (point helpers with custom attributes) to your scene objects, etc... These points' positions are raycast into frame coordinates and stored with the animation data in the exported file. This technique can be used to make complex, dynamically-assembled sprites in a game.

It can save the settings of an entire sheet to automate the process of rendering a sheet without entering the settings again (oops, it might be broken.. I'll fix it soon). It can export a heightmap along with the image to use for normal-mapped sprites.

Additional Info: 

The zip has 2 files: the main script file and a "Custom.ms" file with a function that you can customize to your preferred export format, and add custom attributes to the Sprite Points. The export file must be kept with the main file for the script to run.

Also, it stores the tool defaults in a file called "SpriteRenderConfig" in the scripts directory. All the settings are stored here, and so is the offline readme.

Version Requirement: 
known to work with max 8. If it works for you on another version, let me know!

Comments

SpookyCat's picture

Very nice and handy script

Very nice and handy script which works very well. Do have a small bug, if you delete the pivot object and then render the sheet it does the rendering and then errors with pivot deleted message, perhaps it should just not start, also the button label should change to show the object has been deleted.

Slather's picture

Thank you SpookyCat :) I

Thank you SpookyCat :) I didn't test the encrypted version much before posting, and apparently a few things are broken. The bug you mentioned will be an easy fix (I just need to check to see if the object is deleted, and add a callback for the button label).

I'm going to rename the button 'pivot object' to 'origin object' because its really supposed to be the origin position of each frame. Also, an extra rollout is supposed to be added when you select a pivot, and allow you to change some export values.

I plan to write instructions, explain the render list and what it can store, and explain the available output values for export. Anyway, I should have an update soon.

fajar's picture

Good script !! thank!!

Good script !! thank!!

Slather's picture

Version 0.6 is out, with

Version 0.6 is out, with many bug fixes! I've written a readme that has features, instructions, and tips for use.

Michele71's picture

Good Script very, very useful

Good Script very, very useful :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.