View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002479 | Slicer4 | Core: Scripting (Wrapping, Python) | public | 2012-09-06 08:31 | 2018-03-02 11:07 |
Reporter | sunilk | Assigned To | lassoan | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | Slicer 4.1.1 | ||||
Target Version | Fixed in Version | Slicer 4.6.0 | |||
Summary | 0002479: Get storable nodes w/o invoking "Save" dialog. | ||||
Description | Per the following dev thread: Hi Kumar, Your observation is correct, sometimes storable nodes (e.g. model nodes) don't have a storage node until the Save Data dialog is opened. You would need to:
I'll be happy to help you and review your code. Hth, On Thu, Aug 16, 2012 at 12:34 PM, Kumar, Sunil <kumars@mir.wustl.edu> wrote: I’m trying to inventory all newly created nodes using Python. Here’s a simple workflow: 1) Open a scene built from a .raw stack Is there a command in Python that can refresh the nodes without me having to open the “Save“ dialog? Thanks in advance, | ||||
Tags | help-wanted | ||||
Found a workaround after today's tcon. |
|
Would be great if you could post the workaround so that it is documented. Thanks |
|
See below. Thanks. nodeList = slicer.app.mrmlScene().GetNodes() Isolates all nodes that are "storable" but not necessarily stored into a file yet.This includes newly created nodes. When nodes are stored into a file they become "storage" nodes.# If there is no "storageNode" associated with the "storableNode," |
|
Hi Sunil, Did you have any chance to work on this ? Thanks, |
|
Hi Jc, Yes. The note right above your question solves the problem...at least for my purposes. Is that what you are referring to? Thanks, |
|
Hi, Was referring to the suggestion reported by Julien in the issue description: You would need to:
|
|
Ah, gotcha. No, I haven't. The Python workaround was sufficient for my purposes. Thanks, |
|
Thanks for clarifying :) |
|
Added methods to add missing storage node in rev25326. To add a default storage node to the scene for a single node: To create all missing storage nodes and save the entire scene: |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2012-09-06 08:31 |
|
New Issue | |
2012-09-06 08:31 |
|
Status | new => assigned |
2012-09-06 08:31 |
|
Assigned To | => jcfr |
2012-09-06 14:04 |
|
Note Added: 0006000 | |
2012-09-06 14:11 | jcfr | Note Added: 0006001 | |
2012-09-07 07:27 |
|
Note Added: 0006006 | |
2012-12-08 10:19 | jcfr | Note Added: 0007476 | |
2012-12-08 10:23 |
|
Note Added: 0007477 | |
2012-12-08 10:26 | jcfr | Note Added: 0007478 | |
2012-12-08 13:15 |
|
Note Added: 0007480 | |
2012-12-08 13:16 |
|
Note Edited: 0007477 | |
2012-12-09 07:04 | jcfr | Target Version | => Slicer 4.3.0 |
2012-12-09 07:04 | jcfr | Note Added: 0007483 | |
2013-03-06 18:02 | jcfr | Tag Attached: I-want-to-contribute | |
2013-09-02 20:13 | jcfr | Reporter | user349 => sunilk |
2013-09-02 20:14 | jcfr | Target Version | Slicer 4.3.0 => Slicer 4.4.0 |
2014-05-12 23:20 | jcfr | Tag Renamed | I-want-to-contribute => help-wanted |
2014-05-13 08:39 | jcfr | Status | assigned => acknowledged |
2014-05-13 08:39 | jcfr | Target Version | Slicer 4.4.0 => |
2016-08-31 11:44 | lassoan | Note Added: 0014078 | |
2016-08-31 11:44 | lassoan | Status | acknowledged => resolved |
2016-08-31 11:44 | lassoan | Fixed in Version | => Slicer 4.6.0 |
2016-08-31 11:44 | lassoan | Resolution | open => fixed |
2016-08-31 11:44 | lassoan | Assigned To | jcfr => lassoan |
2018-03-02 11:07 | jcfr | Status | resolved => closed |