MakePillow.py

One of the great things about Blender is that it is shipped with a python API (Application Programming Interface) which allows artists and developers to extend Blender in any way they see fit. This also has the advantage of automating otherwise dull and repetitive tasks which allow the artist to focus on their work and get back to making their art. A while ago I stumbled across a YouTube tutorial which showed me how to make pillows through cloth simulation and use of a force field, while it was perfect for what I needed to do it became rather repetitive having to do this for a full interior scene for scatter cushions.


The making of the addon:

makepillow-py-blend


I began experimenting with Blender’s Python API in May 2017 realising just how easy it was to automate certain parts of Blender after I got across some hurdles. Then I had a fully functioning addon for Blender 2.79b.



Much of the core functionality is there for the 2.79 to 2.80 release. In fact I only had to change 2 or 3 lines of code. The 2.80 addon can be seen here:


Download:

The addon is available to download here.

Once downloaded simply install from file in Blender Preferences by going to:

Edit > User preferences > Addons > Install from file.