Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
uhlik committed Nov 9, 2020
1 parent 0bb5747 commit e017a67
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 9 deletions.
28 changes: 19 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

Available here: [https://www.blendermarket.com/products/pcv](https://www.blendermarket.com/products/pcv)

* 1.5.0
* Import points from text file formats

* 1.4.0
* MatCap and MatCap Billboard shaders
* Fast bounding box Crop points
Expand Down Expand Up @@ -526,18 +529,25 @@ changelog:
* 0.3.0 export implemented in cython
* 0.2.0 ported to blender 2.80

**requirements:**
**installation on mac (win/linux should be similar) and blender 2.83.6 assuming you have blender in /Applications/Blender.app:**

get pip and install cython using pip

<pre>cd /Applications/Blender.app/Contents/Resources/2.83/python/bin/
./python3.7m -m ensurepip
./python3.7m -m pip install -U pip
./pip3 install cython</pre>

clone blender source

* python 3.7.0 (the same as shipped with blender 2.8)
* Cython (install with pip)
<pre>cd ~/Library/Application Support/Blender/2.83/scripts/addons/io_mesh_fast_obj
git clone git://git.blender.org/blender.git
cd blender
git checkout v2.83.6</pre>

**installation on mac (win/linux should be very similar):**
build cython extension

1. download repository and copy whole directory `io_mesh_fast_obj` to `/Users/*USERNAME*/Library/Application Support/Blender/2.80/scripts/addons/`
2. in terminal cd to `/Users/*USERNAME*/Library/Application Support/Blender/2.80/scripts/addons/io_mesh_fast_obj/`
1. `$ git clone http://git.blender.org/blender.git`
2. `$ python3 setup.py build_ext --inplace`
3. now delete `blender` directory, it is no longer needed until blender is updated, then you (might) need to repeat the process
<pre>/Applications/Blender.app/Contents/Resources/2.83/python/bin/python3.7m setup.py build_ext --inplace</pre>

***

Expand Down
19 changes: 19 additions & 0 deletions io_mesh_fast_obj/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@

# python3 setup.py build_ext --inplace

# /Applications/Blender/blender-2.83.4.app/Contents/Resources/2.83/python/bin/pip3 install cython
# https://blender.stackexchange.com/a/107381
# /Applications/Blender/blender-2.83.4.app/Contents/Resources/2.83/python/bin/python3.7m setup.py build_ext --inplace


'''
cd /Applications/Blender/blender-2.83.6.app/Contents/Resources/2.83/python/bin/
./python3.7m -m ensurepip
./python3.7m -m pip install -U pip
./pip3 install cython
cd ~/Library/Application Support/Blender/2.83/scripts/addons/io_mesh_fast_obj
git clone git://git.blender.org/blender.git
cd blender
git checkout v2.83.6
/Applications/Blender/blender-2.83.6.app/Contents/Resources/2.83/python/bin/python3.7m setup.py build_ext --inplace
'''

from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
Expand Down

0 comments on commit e017a67

Please sign in to comment.