Reader small image

You're reading from  Python Scripting in Blender

Product typeBook
Published inJun 2023
PublisherPackt
ISBN-139781803234229
Edition1st Edition
Right arrow
Author (1)
Paolo Acampora
Paolo Acampora
author image
Paolo Acampora

Paolo Acampora is a 3D artist and programmer, with experience in Animation, Visual Effects, and Real Time computer graphics. He provides tools that streamline the production workflow and let artists focus on the creative aspects of their craft. He has worked with several studios for more than a decade. He contributes to the blender development and releases his tools for the community.
Read more about Paolo Acampora

Right arrow

Writing the Latte Express add-on

The Latte Express add-on creates a new lattice around the active object and sets up the modifier.

It’s useful for creating basic rigs for cartoon deformation, or stylized objects. The add-on consists of an operator class and a menu entry.

Setting the environment

We create a Python script for our add-on:

  1. Create a PythonScriptingBlender/ch11/addons folder. We can use the file manager or the file tab of our programmer editor, for example, VS Code.
  2. Create a new file in that folder and name it lattice_express.py. We can do that using the file manager or the New File button in an IDE.
  3. Open the file in your editor of choice.
  4. Set the Scripts path to PythonScriptingBlender/ch11 in the Blender File Paths preferences and restart Blender.

Now we can write the add-on and load it in Blender.

Writing the Latte Express information

Like other add-ons, Latte Express starts with a blank line, followed by the bl_info dictionary...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Python Scripting in Blender
Published in: Jun 2023Publisher: PacktISBN-13: 9781803234229

Author (1)

author image
Paolo Acampora

Paolo Acampora is a 3D artist and programmer, with experience in Animation, Visual Effects, and Real Time computer graphics. He provides tools that streamline the production workflow and let artists focus on the creative aspects of their craft. He has worked with several studios for more than a decade. He contributes to the blender development and releases his tools for the community.
Read more about Paolo Acampora