This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Blender executed via: | |
# PYTHONPATH=/home/sina/miniconda3/envs/blender_env/bin/python blender --python-use-system-env | |
# Notes: | |
# Setting up blender to use a conda virtualenv: | |
# https://stackoverflow.com/questions/70639689/how-to-use-the-anaconda-environment-on-blender | |
# Blender Python API: | |
# https://docs.blender.org/api/current/info_quickstart.html | |
# Blender Python tips and tricks: | |
# https://docs.blender.org/api/current/info_tips_and_tricks.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Blender executed via: | |
# PYTHONPATH=/home/sina/miniconda3/envs/blender_env/bin/python blender --python-use-system-env | |
# Notes: | |
# Setting up blender to use a conda virtualenv: | |
# https://stackoverflow.com/questions/70639689/how-to-use-the-anaconda-environment-on-blender | |
# Blender Python API: | |
# https://docs.blender.org/api/current/info_quickstart.html | |
# Blender Python tips and tricks: | |
# https://docs.blender.org/api/current/info_tips_and_tricks.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
import math | |
import numpy as np | |
import nibabel as nib | |
import matplotlib.pyplot as plt | |
from Connectome_Spatial_Smoothing import CSS as css | |
from cerebro import cerebro_brain_utils as cbu | |
from cerebro import cerebro_brain_viewer as cbv | |