taichi-dev / taichi_elements

High-performance multi-material continuum physics engine in Taichi
MIT License
483 stars 69 forks source link

Blender 3.0 Installation #82

Closed K0K0ze closed 2 years ago

K0K0ze commented 2 years ago

Hello, I'm sorry if this isn't supposed to be published here but I can't seem to get Taichi Elements for Blender 3.0 to work since it doesn't seem to be packaged as a standard add-on for Blender.

I think I managed the step of installing Taichi for Blender but I don't fully understand how to install the Taichi Elements for Blender.

What am I doing wrong? did I write the path in a wrong way? 2021-10-27 18_09_24-C__Users_kokoz_Desktop_taichi_elements-master_utils_install_blender_addon py - S

K0K0ze commented 2 years ago

I resolved this issue.

Here is a long and dumbed down tutorial for the whole installation process:

0. Install Python

You need this for the last step. I just installed the one from the Microsoft Store App. I used the 3.9 version.

1. Find the location of Blenders python.exe

Start Blender, go to the scripting workspace, and type this into the Python Console: import sys print(sys.exec_prefix) 2021-10-28 18_16_27-Blender This will output the path to your Blender Python folder.

In my case it is:

C:\BlenderExperimental\3.0\python

Go a bit deeper into the bin folder where you will find a python.exe:

C:\BlenderExperimental\3.0\python\bin

2. Install get-pip.py

Download the get-pip.py file from the web. I used this site Place the python file in the bin folder that we found in the first step.

Open the cmd in that location. Then type python.exe get-pip.py and press enter to execute it.

https://user-images.githubusercontent.com/44323919/139304222-3d9a5e02-97a1-446d-8802-2c34ecb875d4.mp4


3. Install Taichi module

After completing the second step a new folder called scripts has been created. Go to that folder. In my case it was at:

C:\BlenderExperimental\3.0\python\Scripts

Open the cmd in that location. Then type pip3.9.exe install --upgrade taichi or if you need a specific version of taichi for the addon to work type pip install taichi==0.8.1 and press enter to execute it. In my case I had pip3.9 but you might have a different version.

https://user-images.githubusercontent.com/44323919/139305605-0cbc9c11-2c11-4ea2-8d3b-dca4e977a407.mp4


4. Set the enviorment variable

Open an app called View advanced system settings After it opens click on Enviorment Variables... Create a new user variable by pressing New... Set the Variable name to BLENDER_USER_ADDON_PATH and Variable value to the Blender addons folder. Press OK and restart your computer.

https://user-images.githubusercontent.com/44323919/139307814-36878f09-d2ad-4075-b737-7c1075394e35.mp4


5. Install taichi_elements

Download the taichi_elements-master and unzip it to your desktop. Go inside it, into the utils folder. Open the cmd in that location. Then type python install_blender_addon.py and press enter to execute it. It will ask you a question and just answer by typing y and pressing enter to execute it (not shown in the video below)

https://user-images.githubusercontent.com/44323919/139309857-7d2a91ed-a195-47ee-9a57-681a44130918.mp4

archibate commented 2 years ago

I really hope taichi_elements can provide the standard blender addon installation via .zip file, like my https://github.com/taichi-dev/taichi_blend currently does, it really make user easier to access our work.. @yuanming-hu if you wonder how to setup such .zip packaging&releasing automation script, i'm be glad to help with my experience in taichi_blend :)

无法顺畅的大口呼吸,是活着的最好证明

---Original--- From: "koko @.> Date: Fri, Oct 29, 2021 02:02 AM To: @.>; Cc: @.***>; Subject: Re: [taichi-dev/taichi_elements] Blender 3.0 Installation (Issue #82)

So I after asking around forums I resolved this.

Here is a longer and more dumbed down tutorial on how to install it:

  1. Install Python. I just installed the one from the Microsoft Store App. I used the 3.9 version.

  2. Find the location of Blenders python.exe

Start Blender, go to the scripting workspace, and type this into the Python Console: import sys print(sys.exec_prefix)

This will output the path to your Blender Python folder.

In my case it is:

C:\BlenderExperimental\3.0\python

Go a bit deeper into the bin folder where you will find a python.exe:

C:\BlenderExperimental\3.0\python\bin

  1. Install get-pip.py

Download the get-pip.py file from the web. I used this site Place the python file in the bin folder that we found in the first step.

Open the cmd in that location. Then type python.exe get-pip.py and press enter to execute it.

https://user-images.githubusercontent.com/44323919/139304222-3d9a5e02-97a1-446d-8802-2c34ecb875d4.mp4

  1. Install Taichi module

After completing the second step a new folder called scripts has been created. Go to that folder. In my case it was at:

C:\BlenderExperimental\3.0\python\Scripts

Open the cmd in that location. Then type pip3.9.exe install --upgrade taichi and press enter to execute it. In my case I had pip3.9 but you might have a different version.

https://user-images.githubusercontent.com/44323919/139305605-0cbc9c11-2c11-4ea2-8d3b-dca4e977a407.mp4

  1. Set the enviorment variable

Open an app called View advanced system settings After it opens click on Enviorment Variables... Create a new user variable by pressing New... Set the Variable name to BLENDER_USER_ADDON_PATH and Variable value to the Blender addons folder. Press OK and restart your computer.

https://user-images.githubusercontent.com/44323919/139307814-36878f09-d2ad-4075-b737-7c1075394e35.mp4

  1. Install taichi_elements

Download the taichi_elements-master and unzip it to your desktop. Go inside it, into the utils folder. Open the cmd in that location. Then type python install_blender_addon.py and press enter to execute it. It will ask you a question and just answer by typing y and pressing enter to execute it (not shown in the video below)

https://user-images.githubusercontent.com/44323919/139309857-7d2a91ed-a195-47ee-9a57-681a44130918.mp4

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.