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

Installing our add-ons in Blender

We can write a very simple add-on using VS Code. This add-on doesn’t really do anything; it just shows up in the extensions list.

First, we must create a folder for the code of this chapter. We can use the file manager or the navigation sidebar that comes with most IDEs. In this example, we will use VS Code, which we met in the External editors section of Chapter 1:

  1. Open your PythonScriptingBlender project in VS Code.
  2. Create a new folder by clicking the New Folder icon.
Figure 3.1: Creating a folder in Visual Studio Code

Figure 3.1: Creating a folder in Visual Studio Code

  1. Name the new folder ch3.

Now, we can create a Python file for our add-on:

  1. Make sure the ch3 folder is selected in the VS Code explorer, and then create a new file by clicking the New File icon.
Figure 3.2: Creating a file in VS Code

Figure 3.2: Creating a file in VS Code

  1. Name the new file the_simplest_add_on.py.
  2. Open the file via a double click.
...
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