Coder Social home page Coder Social logo

staughost / hextant_autosave_images Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hextantstudios/hextant_autosave_images

0.0 0.0 0.0 9 KB

A simple addon (plugin) for Blender to automatically save new or modified images (textures) whenever the main Blender file is saved.

Python 100.00%

hextant_autosave_images's Introduction

Blender Add-on: Autosave Images

A simple addon/plugin for Blender to automatically save new or modified images (textures) whenever the main Blender file is saved.

By default, Blender does not save newly created images -- including ones you may have spent quite a while working on using its texture painting tools. While it will prompt to save new or modified images when you exit, it does not save (even internally packed) images when saving the main .blend file. This behavior makes it easy to lose all one's texture painting work by a random crash or by ignoring the prompt when exiting by thinking that it has been previously saved.

I'm unclear why the Blender developers have not implemented this basic functionality even as an option. It's clear from the countless Blender tutorials that scream "Make sure you click Image / Save to save your texturing work!!!" that this is definitely a problem.

Perhaps it's related to this bug which results in Blender forgetting the settings that were used to originally save an external image file. This can result in image files saved in some formats such as OpenEXR changing in size from 800kB to 64MB because Blender resets its compression setting to None. (Note that images that are packed internally within the .blend file appear to compress well as do externally saved PNGs -- though not as well as manually setting the lossless compression level to 100%.)

While this is unfortunate, I would much rather not lose my work than waste a little disk space until this secondary issue is fixed! So after finding a great suggestion on Stack Exchange, I thought I'd update it to save both external and internal images -- hopefully avoiding any loss of work.

Installation

  • Download the latest release from here or clone it using git to your custom Blender ...\scripts\addons\ folder.
  • From Blender's Main Menu:
    • Edit / Preferences
    • Click the Install button and select the downloaded zip file.
    • Check the check-box next to the addon to activate it.

Use

  • Any time the currently edited file is saved, the images will also be saved.
  • New images that have not been manually saved to an external file will be packed into the .blend file. These can be saved later to an external file from the Image Editor window's menu: Image / Save As

Known Issues

  • The only known issue is the side effect from this bug which results in Blender forgetting the settings that were to originally save an external image file. Hopefully this will be fixed soon as it certainly impacts those using version control for their projects.

License

This work is licensed under GNU General Public License Version 3.

hextant_autosave_images's People

Contributors

hextant avatar

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.