When developing Blender add-ons, I often find myself in need of the numpy
package due to its optimized algorithms for array manipulation. However, a significant hurdle arises from the requirement to install numpy
using pip
. This additional installation step can be daunting for the average user and may hinder the accessibility of my add-on.
Given this constraint, I'm hesitant to rely on external libraries like NumPy. Is it advisable to avoid using such libraries altogether in Blender add-on development, or are there alternative approaches to consider?
One potential solution I'm considering is extracting and including only the necessary parts of NumPy (np.array
, np.ndarray
, etc.) within my add-on. However, I'm unsure about the feasibility and potential challenges associated with this approach.
Can anyone provide insights into best practices for incorporating external libraries like NumPy in Blender add-ons while ensuring ease of use for end-users? Additionally, is there a standard technique or process that can be employed to safely include specific parts of NumPy within an add-on, without relying on the user to install it separately?
Any advice or guidance on this matter would be greatly appreciated
import numpy
. $\endgroup$