Code Monkey home page Code Monkey logo

blender-spritesheets's People

Contributors

florianvazelle avatar geoffsutcliffe avatar minism avatar mkeating avatar theloneplant avatar tim-harding 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  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  avatar  avatar  avatar

blender-spritesheets's Issues

feature request: option to leave individual frames and / or skip compiling sheet

for my workflow, when I need to go back and add or tweak animations, usually I just want to target a single action as a spritesheet. I haven't been able to get that to work to where it only outputs a selected action as a sheet.
so, what I've been doing is after rendering the whole sheet, I use another tool to split the sheet into individual frames, then I go through and find just the frames I want, and use something like texturepacker to recompile those as a sheet for an individual action.

I noticed that during the operation, there's a temp folder with individual frames, all named after the action. being able to leave that behind after the operation, as well as skipping the sprite sheet compilation would help me out a ton

Spritesheet add-on seems to be deleting animation keyframes after rendering

It could be my own issue as I'm quite a beginner with blender but maybe not.

BEFORE RENDERING
https://puu.sh/JE1ha/73b34a2644.png

AFTER RENDERING
https://puu.sh/JE1hy/f6527f72d4.png

SETTINGS
https://puu.sh/JE1hI/25c498484d.png

as you can see, all the keyframes are gone on the armature and the pose of the armature seems to be stuck on the last rendered pose.
Maybe I have this set up all wrong but this seems like un-intended behaviour

All Tabs Input missing - Blender 2.93

Hi ,
First of all , thanks for this great addon 👍
I m trying to export object animation with Empty as Parent.
The thing is Create Sprite sheet tab is only showing heading like Selection , Rendering , Output, but no Input option.
Can you please check.
Steps to reproduce.

  • Add Few primitives
  • Add Empty
  • Make empty parent of all primitives
  • Animate empty Rotation only
  • Check Sprite Sheet tab.

Thanks 😊

Thanks for this addon

I just wanted to thank you for making this addon available. I got some good use out of it for a while and ultimately wound up creating my own addon based on this for some features I needed. I thought you might be interested in that, and wanted to thank you again - I knew very little Python and nothing about Blender's APIs, so having your repo available was a huge help. I probably wouldn't have gotten off the ground without it.

Save bin location when switching .blend files

Currently bin location is not remembered when changing blend files. To fix this, look into moving the bin selection into preferences or store it in a configuration file that the plugin reads

Batch actions when rendering a sprite sheet

This task it for adding a UI for batching multiple animations when rendering a sprite sheet. The user should be able to select one or more actions to add to a list and kick off the workflow using the same object for each action and render everything to the same sheet.

Unity importer splits spritesheet incorrectly

Hello,

when I use the plugin in Blender to get the sprite sheet and try to parse it into my Unity project, Unity try to slice the sheet to make all the sprites but the split order is incorrect. Some sprites are not selected.
Do you know why is this happening?

Thank you.

Capture

Add support for multiple camera angles and object orientations as part of the rendering workflow

This task is to allow users to specify a number of viewing angles along with distance and angle to allow the workflow to create/manipulate cameras on the fly. Allow users to duplicate cameras from an existing one or use settings specified in the plugin. Ensure that the bss is updated with camera position labels so animations can be imported.

This could also allow the user to specify different transforms on the object such as rotation to allow for both multiple object angles and camera angles

Add a UE4 importer

Similarly to the unity importer we should support UE4 as well. This task would be adding a separate importer for UE4.

Unity importer splits spritesheet incorrectly

There’s an issue when importing a sprite sheet and bss where the ordering isn’t correct. Splitting manually won’t work either since the script will pick up the changes and reinitiate the workflow. Look into if this can be moved to a UI instead

Separate file per action.

First of all, thank you so much for the plugin! You've already saved me a lot of time. :)
Could you make it so it saves multiple files and doesn't save the .bss ? So each action would be a separate sprite sheet?

Example:

You have 2 actions, Walk, Run.
This would result in: Walk.png, and Run.png

Add support for color palettes

This task is for adding support for mapping colors (specified by shadow/midtone/highlight or more for each material on an object). This would involve making a custom renderer that maps pixel colors and their material to a corresponding color in the palette based on brightness.

Spritesheet creator doesn't render the last animation frame

Hi, I was testing your script and figured out the following:

When rendering one or more animations (using a rigged character, for example), the resulting spritesheet doesn't show the last frame of each animation.

To reproduce the problem:

  • Install blender-spritesheets add-on
  • Create/Import rigged character, create an animation using a few frames (I used 6).
  • Press Render Sprite Sheet

Expectation:
All 6 frames are rendered correctly

What's actually happening:
Only the first 5 frames are rendered correctly. The last one is omitted.

Workaround:
Create an extra frame for each animation, making that the ignored frame.

Blender version:
Issue tested in 2.80 Beta & 2.82

division by zero error when actions in dope sheet are a single frame long

Error message:
Python: Traceback (most recent call last): File "C:\Users\moehn\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\blender-spritesheets\operators\renderSpriteSheet.py", line 50, in execute self.processAction(action, scene, props, File "C:\Users\moehn\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\blender-spritesheets\operators\renderSpriteSheet.py", line 98, in processAction bpy.ops.spritesheets.render_tile('EXEC_DEFAULT') File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py", line 107, in __call__ ret = _op_call(self.idname_py(), kw, C_exec, C_undo) RuntimeError: Error: Python: Traceback (most recent call last): File "C:\Users\moehn\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\blender-spritesheets\operators\renderTile.py", line 22, in execute progress = float(progressProps.tileIndex + 1) / progressProps.tileTotal * 100 ZeroDivisionError: float division by zero Location: C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\bpy\ops.py:107

which points to line 22 of renderTile.py

progress = float(progressProps.tileIndex + 1) / progressProps.tileTotal * 100

if actions were only a single frame long, or only had one keyframe, the operation would terminate when it reached that action. it would still output a temp images folder of all the frames it rendered up until that point.

Prevent freezing the UI when rendering a sprite sheet

Currently when rendering, the Blender UI freezes due to the renderer being a blocking API call and the workflow renders everything at once. The solution for this would either be to tie the renderer call to UI renders as a workaround or find a way to run the call in a background thread. Initially it looks like a background thread isn’t going to be stable since there may be conflicts with the Blender scene updating in the middle of a render, so we’ll likely need to use the former method.

In addition, we should leverage the progress metrics already in place to display the current progress of rendering to the user.

Creates one extra frame per action.

I've noticed it creates an extra frame per action. My "Idle" has 1 frame, which results in 2 in the sprite sheet? One that has 15 frames ends up in 16? I do have my start set to '1' (not 0), could that be an issue?

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.