# How to select the camera with the camera module

**URL:** https://discourse.slicer.org/t/how-to-select-the-camera-with-the-camera-module/5388
**Category:** Development
**Created:** [January 16, 2019, 4:29pm UTC](https://discourse.slicer.org/t/how-to-select-the-camera-with-the-camera-module/5388 "2019-01-16T16:29:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)
#### Post date: [January 16, 2019, 4:29pm UTC](https://discourse.slicer.org/t/how-to-select-the-camera-with-the-camera-module/5388/1 "2019-01-16T16:29:38Z")

</div>

I went display the camera1 in the view1 by script. I searched in the forum but found nothing.  
ID: vtkMRMLViewNode1  
Camera ID: vtkMRMLCameraNode2

---

<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 16, 2019, 9:29pm UTC](https://discourse.slicer.org/t/how-to-select-the-camera-with-the-camera-module/5388/2 "2019-01-16T21:29:13Z")

</div>

It would be something like this. If you go into the Dual 3D layout, rotate the views a bit, then go into the Developers-\>Cameras module you can play with it:

```auto
v = getNode('View1')
c = getNode('*Camera*')
c.SetActiveTag(v.GetID())

```
