View Issue Details

IDProjectCategoryView StatusLast Update
0004377Slicer4Core: MRMLpublic2017-06-10 17:32
Reportercriskross Assigned Tolassoan  
PrioritynormalSeverityblockReproducibilityalways
Status resolvedResolutionno change required 
Product VersionSlicer 4.7.0 
Target VersionFixed in Version 
Summary0004377: Setting mode on vtkMRMLInteractionNodeSingleton programmatically does not work when doing fresh start of Slicer
Description

I would like to change the interaction node programmatically but it doesn't work when I do a fresh start of Slicer.

Steps To Reproduce
  1. Restart Slicer
  2. Enter the following code into the python console:

interactionNode = slicer.mrmlScene.GetNodeByID("vtkMRMLInteractionNodeSingleton")
interactionNode.SetCurrentInteractionMode(interactionNode.Place)

  1. You will notice that the menu button for setting fiducials is not checked
  2. Now manually check AND uncheck this button by clicking
  3. try again with code from 2.

You will notice that it works in the end.

TagsNo tags attached.

Relationships

has duplicate 0004355 closedjcfr interactionNode sometimes can not activate MarkupsPlaceWidget 

Activities

lassoan

lassoan

2017-06-09 20:53

developer   ~0014698

To activate placement mode, you have to make sure that a suitable node is selected, too. See example in the script repository:
https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Switching_to_markup_fiducial_placement_mode

Issue History

Date Modified Username Field Change
2017-06-05 17:18 criskross New Issue
2017-06-05 17:18 criskross Status new => assigned
2017-06-05 17:18 criskross Assigned To => alexy
2017-06-09 20:53 lassoan Assigned To alexy => lassoan
2017-06-09 20:53 lassoan Status assigned => resolved
2017-06-09 20:53 lassoan Resolution open => no change required
2017-06-09 20:53 lassoan Note Added: 0014698
2017-06-10 17:32 lassoan Relationship added has duplicate 0004355