Operating system: Windows 10
Slicer version: 5.6.2
Hi,
I am trying to run the code of the script repository: Script repository — 3D Slicer documentation
However, I get: NameError: name ‘segmentationGeometryLogic’ is not defined.
And if I add, segmentationGeometryLogic = slicer.vtkSlicerSegmentationGeometryLogic()
AttributeError: ‘vtkSlicerSegmentationsModuleLogicPython.vtkSlicerS’ object has no attribute ‘SetReferenceImageGeometryInSegmentationNode’
Any help would be greatly appreciated!
Thanks,
Maria
Barrie
(Barrie Slaymaker)
2
I just tripped over this too. The example is clearly missing some code.
Did you find a solution that works? If so, can you share it? I’m looking to try this…
Thanks!!!
Barrie
(Barrie Slaymaker)
3
Found this, which might be helpful. Haven’t tried it yet, YMMV:
pieper
(Steve Pieper (Isomics, Inc.))
4
It would be great if someone could submit a PR to fix the script.
Barrie
(Barrie Slaymaker)
5
Wish I were less of a “script kiddie in 3D Slicer land”, that’d be fun.
jcfr
(Jean Christophe Fillion Robin (Kitware))
7
@cpinter 
The pull request has been reviewed & integrated 
1 Like