3D Slicer Community
How to avoid duplicate names in node.SetName()?
Development
python
jumbojing
(Jumbo Jing)
December 11, 2021, 2:53am
2
解决了:
node.SetName(slicer.mrmlScene.GetUniqueNameByString("N"))
image
763×245 29.8 KB
show post in topic
Related topics
Topic
Replies
Views
Activity
How to delete nodes from scene before creating new nodes with the same name?
Development
6
1183
February 25, 2021
AddNewNodeByClass: basename does not increment
Feature requests
3
205
May 27, 2025
Superfluous suffix for reloads causes issues with save
Support
8
299
September 10, 2020
transformNode.SetName('some_string') gives TypeError: 'str' object is not callable
Support
3
540
October 17, 2018
nrrd files are duplicated every time the program is opened
Support
3
507
July 22, 2020