Giter Site home page Giter Site logo

spritify's People

Contributors

agoose77 avatar dergemkr avatar dploeger avatar dreadknight avatar fweeb avatar jay-j avatar poikilos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spritify's Issues

Make bin path to Imagemagick configurable

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.

The tmp directory can't be found on Linux

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/'

FIleNotFound: 'montage' -- OS X 10.10.1

image

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

possible feature: export NLA/frame animation info as text

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:
thuggun
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

Grease Pencil Animations?

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. ;)

Support Multiviews

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.

error messages - win 7 64, latest blender

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

extra frames in gif

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.