Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
winnubstj committed Sep 7, 2019
2 parents 09936e9 + 69c7d7d commit 6f7e692
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MainFunctions/StageBlender.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ def StageSession(sessionFolder,display):
# Import SWC
bpy.context.view_layer.active_layer_collection = bpy.context.view_layer.layer_collection.children[neuronCol.name]
neurons = scene["neurons"] if isinstance(scene["neurons"],list) else [scene["neurons"]]
#neurons = neurons[1000:len(neurons)]
counter = 0
for neuron in neurons:
counter = counter+1
Expand All @@ -225,10 +224,10 @@ def StageSession(sessionFolder,display):
print("Slicing..")
for area in areas:
bpy.ops.object.select_all(action='DESELECT')
bpy.context.scene.objects.active = None
bpy.context.view_layer.objects.active = None
if "acronym" in area:
# new mesh obj.
axM = axon.to_mesh(bpy.context.scene, False, 'PREVIEW')
axM = axon.to_mesh()
axM = bpy.data.objects.new('{0}_axon_{1}'.format(neuron["id"],area["acronym"]), axM)
bpy.context.scene.objects.link(axM)
axM.matrix_world = axon.matrix_world
Expand Down
Binary file modified MainFunctions/__pycache__/ImportBlender.cpython-37.pyc
Binary file not shown.
Binary file modified MainFunctions/__pycache__/LegacyStage.cpython-37.pyc
Binary file not shown.
Binary file modified MainFunctions/__pycache__/StageBlender.cpython-37.pyc
Binary file not shown.

0 comments on commit 6f7e692

Please sign in to comment.