# 3D Slicer View Window Python Names

**URL:** <https://discourse.slicer.org/t/3d-slicer-view-window-python-names/1935>\
**Category:** Support\
**Created:** [January 25, 2018, 9:10pm UTC](https://discourse.slicer.org/t/3d-slicer-view-window-python-names/1935 "2018-01-25T21:10:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Soufane](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Ahmed\_Soufane](https://discourse.slicer.org/u/Ahmed_Soufane)\
**Post date:** [January 25, 2018, 9:10pm UTC](https://discourse.slicer.org/t/3d-slicer-view-window-python-names/1935/1 "2018-01-25T21:10:12Z")

</div>

What would the python node names be for the red, yellow, and green views?  
I am getting a error in which the:

```
markupsNode =slicer.mrmlScene.GetFirstNodeByName("CTChest") 

```

command does not grab the individual views causing this error:

Traceback (most recent call last):  
File “”, line 1, in   
AttributeError: ‘vtkCommonCorePython.vtkMRMLScalarVolumeNode’ object has no attribute  
’GetNthFiducialPosition’

So it would seem like the node name would be the issue, is that the case?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 25, 2018, 11:17pm UTC](https://discourse.slicer.org/t/3d-slicer-view-window-python-names/1935/2 "2018-01-25T23:17:13Z")

</div>

In the code and error you pasted you are getting the vtkMRMLScalarVolumeNode, but if you want to get the vtkMRMLMarkupsFiducialNode (default name “F”) and get the point you get call:

```auto
markupsNode = slicer.mrmlScene.GetFirstNodeByName("F")
p = [0,]*3
markupsNode.GetNthFiducialPosition(0, p)

```

Not sure what you mean by trying to get with the view names - did need fiducial positions or something about the views?

---

<div class="post-metadata">

**Author:** ![Ahmed\_Soufane](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Ahmed\_Soufane](https://discourse.slicer.org/u/Ahmed_Soufane)\
**Post date:** [January 26, 2018, 12:41am UTC](https://discourse.slicer.org/t/3d-slicer-view-window-python-names/1935/3 "2018-01-26T00:41:56Z")

</div>

Hi,  
What I am trying to do is to control the brightness, zooming in/out, and rotation via the python interactor or window in the 3d slicer. I have been trying so hard to figure out the code that would enable me to manipulate these three characteristics, but I have been not able to understand the logic of 3dslicer code. Would you please provide me with the proper code that would allow me to edit/manipulate the brightness, zooming in/out, and rotation via the python interactor ?

Thank you

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 26, 2018, 1:31pm UTC](https://discourse.slicer.org/t/3d-slicer-view-window-python-names/1935/4 "2018-01-26T13:31:34Z")

</div>

Hi Ahmed -

Probably you need to start by getting comfortable with doing python programming in Slicer. This tutorial goes through the whole process and even if it has some steps that aren’t exactly what you need it will give you the background you need to understand the documentation and examples:

[https://www.slicer.org/wiki/Documentation/4.8/Training#Developing\_and\_contributing\_extensions\_for\_3D\_Slicer](https://www.slicer.org/wiki/Documentation/4.8/Training#Developing_and_contributing_extensions_for_3D_Slicer)

As I mentioned in response to your previous question, you can control the views by accessing the various associated nodes. Did you try the SetFieldOfView example I sent?

> [@Rotation&zooming](https://discourse.slicer.org/t/rotation-zooming/1912):
>
> Hello, How can I modify or call the rotation of an image on the python interactor on 3dslicer ? Is it possible to modify or edit zooming in and out of the image on python console ?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 25, 2019, 12:46pm UTC](https://discourse.slicer.org/t/3d-slicer-view-window-python-names/1935/5 "2019-07-25T12:46:27Z")

</div>

A post was split to a new topic: [Select cells of a 3D model](https://discourse.slicer.org/t/select-cells-of-a-3d-model/7753)
