Spritesheet Generator

Share your custom panels, brushes, papers... (you need to be registered to read posts in this section)
Post Reply
User avatar
Thierry
Site Admin
Posts: 2780
Joined: 07 Jan 2013, 08:28

Spritesheet Generator

Post by Thierry »

Hello everyone,

Here is a script that I created that can generate a spritesheet of your animations.
spritesheet-generator.tvpx
(11 KiB) Downloaded 376 times

Here's a short example:

Click on the button in the panel:
spritesheet_forum_1.PNG
The script will run and generate this spritesheet:
spritesheet_forum_2.PNG
spritesheet_forum_2.PNG (39.96 KiB) Viewed 4459 times
A png file containing the spritesheet will be saved in the folder in which your project is stored: my project is named "bluebird4", so the png file will be named "bluebird4_spritesheet"
Aaaand... that's it :)

As you've noticed, there are 5 images per line. If you have less than 20 frames in your animation, there will be 4 images per line.
If you'd prefer the script to generate only one line, then tell me and I will post another version of the script :)
User avatar
NathanOtano
Posts: 1209
Joined: 01 Apr 2014, 07:07
Location: Biarritz, France
Contact:

Re: Spritesheet Generator

Post by NathanOtano »

I have to download rpgmaker again now haha, thanks!
Working on Windows 10
Creator of Disnosc, providing storyboard, animation and design for 2D realistic pictural animation: https://www.disnosc.fr/ - nathanotano@disnosc.fr
Highly interested in animation workflows, I'm open to scripting new TVP functions for individuals and studios.
User avatar
Animationriver
Posts: 258
Joined: 02 Jul 2017, 09:04
Location: Moscow
Contact:

Re: Spritesheet Generator

Post by Animationriver »

You genius!
THANKS!!!
www.youtube.com/c/animationriver
MAC OS Sierra 10.12.6 64 bits , MacBook Pro (Retina, 15-inch, Mid 2014)
2.8 GHz Intel Core i7, 16 GB Memory , TVPaint PRO 11.5.2 64bit
NVIDIA GeForce GT 750M 2048 Мb
Wacom Cintiq 27 QHD Touch - Wacom Intuos Pro 5 - driver version 6.3.37-2
User avatar
ubik
Posts: 335
Joined: 25 Feb 2006, 15:00
Location: Bruxelles - Belgique - Terre
Contact:

Re: Spritesheet Generator

Post by ubik »

Thanks for your work with my students to Unity!
"Les amis, tout doit disparaître! Nous soldons la totalité de nos Ubiks électriques, silencieux, à des prix défiants toute concurrence."
tribute27
Posts: 65
Joined: 28 Aug 2015, 18:57

Re: Spritesheet Generator

Post by tribute27 »

Thank you!!!!
Windows 10 64-bit | AMD Ryzen 9 5950x | TVPaint Animation 11 Pro WIBU (11.7.1-64 bits) | Wacom Cintiq Pro 27
User avatar
Animationriver
Posts: 258
Joined: 02 Jul 2017, 09:04
Location: Moscow
Contact:

Re: Spritesheet Generator

Post by Animationriver »

version -2
Aha))
Attachments
TG6.jpeg
www.youtube.com/c/animationriver
MAC OS Sierra 10.12.6 64 bits , MacBook Pro (Retina, 15-inch, Mid 2014)
2.8 GHz Intel Core i7, 16 GB Memory , TVPaint PRO 11.5.2 64bit
NVIDIA GeForce GT 750M 2048 Мb
Wacom Cintiq 27 QHD Touch - Wacom Intuos Pro 5 - driver version 6.3.37-2
User avatar
mox
Posts: 1024
Joined: 13 Feb 2006, 19:24
Contact:

Re: Spritesheet Generator

Post by mox »

Cool!
I wonder if a script would work the other way around, from a spritesheet to a (animated) project ? :?:
Jerome Lorin
Moxica (playground)
(Win11/TVP 11.7.3-64 bits pro)
User avatar
Thierry
Site Admin
Posts: 2780
Joined: 07 Jan 2013, 08:28

Re: Spritesheet Generator

Post by Thierry »

It would be a lot more complex (and require a bit of user interaction), but I think it should be doable.

(yay, now I have a side-project :D)
User avatar
slowtiger
Posts: 2949
Joined: 08 May 2008, 21:10
Location: berlin, germany
Contact:

Re: Spritesheet Generator

Post by slowtiger »

I wonder if something could be done with the help of the grid. Import image, adjust grid so it separates all items, then cut along grid lines?
TVP 10.0.18 and 11.0 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
TVP 11.0 and 11.7 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
TVP 11.7 Mac Mini M2pro 32GB OS 13.5
User avatar
mox
Posts: 1024
Joined: 13 Feb 2006, 19:24
Contact:

Re: Spritesheet Generator

Post by mox »

Nothing relevant, but after running the script, I got a new and perfect (generated) project featuring the spritesheet, while the automatic saved picture is empty but at the right size.
Jerome Lorin
Moxica (playground)
(Win11/TVP 11.7.3-64 bits pro)
Post Reply