Skip to content

Commit 83e33ba

Browse files
committed
numpy version for add ons
1 parent 168cdc3 commit 83e33ba

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

docs/gettingstarted/blender.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,21 @@ Note that the path ``~/Blender/2.91`` might be different for your setup.
9292
</div>
9393
</div>
9494

95+
Add-ons
96+
=======
97+
98+
For some Blender add-ons, not only the version of Python has to match, but also the version of Numpy.
99+
For example, `Sverchok <http://nortikin.github.io/sverchok/>`_, a Grasshopper-type visual programming tool for Blender,
100+
will not work with the version of Numpy included in the latest COMPAS releases, even though Blender will.
101+
102+
In those cases, you can simply revert to an earlier version of Numpy that is still compatible with COMPAS
103+
in the environment you use with Blender. For Sverchok, this would be version ``1.17.5``,
104+
which is the one shipped with Blender originally. To revert simply do
105+
106+
.. code-block:: bash
107+
108+
conda activate blender
109+
conda install numpy=1.17.5
95110
96111
Verify setup
97112
============
@@ -105,7 +120,6 @@ In Blender, at the interactive Python prompt (>>>) import the following packages
105120
>>> import numpy
106121
>>> import scipy
107122
108-
109123
Install Python packages
110124
=======================
111125

@@ -125,7 +139,6 @@ Otherwise, the changes will not have any effect.
125139
If you want to use blender with a different environment,
126140
you simply have to activate that environment and follow the same procedure described above.
127141

128-
129142
Start Blender
130143
=============
131144

@@ -232,7 +245,6 @@ Especially for code that relies heavily on libraries such as Numpy and Scipy thi
232245
artist = MeshArtist(mesh)
233246
artist.draw_mesh()
234247
235-
236248
Data Blocks
237249
-----------
238250

@@ -249,19 +261,16 @@ you will accumulate the data blocks from previous runs and after a while Blender
249261
``compas_blender.clear()`` attempts to clean up not only the scene objects but also the data blocks.
250262
If somehow you still experience a slowdown, restarting Blender will help (all unused data blocks are then automatically removed).
251263

252-
253264
Layers
254265
------
255266

256267
There are no real layers in Blender; at least not like the layers in, for example, Rhino.
257268
Therefore, the Blender artists have no optional ``layer`` parameter and no ``clear_layer`` method.
258269
Instead, objects are grouped in collections, which can be turned on and off in the Blender UI similar to layers in Rhino.
259270

260-
261271
Collections
262272
-----------
263273

264-
265274
Limitations
266275
===========
267276

0 commit comments

Comments
 (0)