freezingmoon / spritify Goto Github PK
View Code? Open in Web Editor NEWAdd-on that converts rendered frames into a sprite sheet once render is complete
Add-on that converts rendered frames into a sprite sheet once render is complete
The addon can lead Blender to hang if a directory for rendering are already exist some files (images, videos, etc).
Some details can be found here:
http://blenderartists.org/forum/showthread.php?253320-Addon-Spritify&p=3005866&viewfull=1#post3005866
The binary path to the imagemagick binaries should be configurable. On macOS using brew to install imagemagick puts them into /usr/local/bin, which isn't a path in Blender's PATH environment variable.
Making the path configurable from the script would help here.
Traceback (most recent call last):
File "/home/owner/.config/blender/3.3/scripts/addons/spritify.py", line 253, in poll
if context.scene is not None and len(os.listdir(bpy.path.abspath(context.scene.render.filepath))) > 0: #XXX a bit hacky; an empty dir doesn't necessarily mean that the render has been done
FileNotFoundError: [Errno 2] No such file or directory: '/home/owner/Nextcloud/www/zahyest.com/projects/tmp/'
I do in fact have montage (via ImageMagick) installed:
Version: ImageMagick 6.9.0-10 Q16 x86_64 2015-03-09 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png xml zlib
It would be very useful to streamline the art-to-game process even further by exporting animation data along with sprites, so that developers could import information like start and end frames of the sprites, where animations start and stop, and sprite dimensions.
Example:
0, 49, walk
49, 86, shootGun
86, 91, pain1
91, 96, pain2
96, 120, idle
120, 129, DIE
When I was exporting lots of sprites with spritify, I wrote a seperate script to print this information, I hope it helps if you end up adding this feature.
http://pastebin.com/yuF8SkZz
Hey man, I know this wasn't made for GP, but I thought I would at least bring it up. Any way to have an option to search for GP animations, since GPs are now their own objects? This could make for some great 2D animation implementations. ;)
If a render region is set up and is set to "crop", the spritesheets are still generated using the setup resolution.
I use multiviews to directly render my sprite animation from eight angles. This produces files with a suffix. It would be nice if Spritify could use that and render a different spritesheet from each camera.
I get this:
Traceback (most recent call last):
File "C:\Users\tod\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\spritify.py ", line 173, in execute
spritify(context.scene)
File "C:\Users\tod\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\spritify.py ", line 108, in spritify
os.remove(bpy.path.abspath(scene.spritesheet.filep ath))
PermissionError: [WinError 5] Access is denied: 'F:\\BACKUP\\WEB\\Dropbox\\BLENDS\\tilegen\\sheet\ \'
location: <unknown location>:-1
or this
Traceback (most recent call last):
File "C:\Users\tod\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\spritify.py ", line 173, in execute
spritify(context.scene)
File "C:\Users\tod\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\spritify.py ", line 108, in spritify
os.remove(bpy.path.abspath(scene.spritesheet.filep ath))
PermissionError: [WinError 5] Access is denied: 'F:\\BACKUP\\WEB\\Dropbox\\BLENDS\\tilegen\\sheet\ \'
location: <unknown location>:-1
Traceback (most recent call last):
File "C:\Users\tod\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\spritify.py ", line 173, in execute
spritify(context.scene)
File "C:\Users\tod\AppData\Roaming\Blender Foundation\Blender\2.77\scripts\addons\spritify.py ", line 127, in spritify
bpy.path.abspath(scene.spritesheet.filepath)])
File "C:\Program Files\Blender Foundation\Blender\2.77\python\lib\subprocess.py", line 560, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Program Files\Blender Foundation\Blender\2.77\python\lib\subprocess.py", line 950, in __init__
restore_signals, start_new_session)
File "C:\Program Files\Blender Foundation\Blender\2.77\python\lib\subprocess.py", line 1220, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
location: <unknown location>:-1
Currently, Spritfy doesn't adhere to the render resolution when creating sprite sheets.
Any chance of this getting updated to blender 2.8?
I've started to make good use for this for my latest 3d deviations (more in the works), so big thanks again for making this ^^ http://dreadknight666.deviantart.com/gallery/697059/3D
It's very handy, though I found a small issue: if I render a sprite sheet, do some revisions and change the animation's length from 80 frames down to 60 or whatever, the extra frames will still remain in the tmp folder and they'll get used in the gif even if they're out of scope, creating unwanted results.
So the create gif function should only use the frames needed, as currently defined in the blend file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.