# Scaling a rendering scene

**URL:** https://discourse.vtk.org/t/scaling-a-rendering-scene/173
**Category:** Support
**Created:** [January 30, 2019, 5:42pm UTC](https://discourse.vtk.org/t/scaling-a-rendering-scene/173 "2019-01-30T17:42:34Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![allison.vacanti](https://discourse.vtk.org/user_avatar/discourse.vtk.org/allison.vacanti/32/679_2.png) [@allison.vacanti](https://discourse.vtk.org/u/allison.vacanti)
#### Post date: [February 12, 2019, 7:23pm UTC](https://discourse.vtk.org/t/scaling-a-rendering-scene/173/4 "2019-02-12T19:23:57Z")

</div>

True, the OpenGL camera model isn’t terribly intuitive 🙂 You’ll want to transform the model matrix of the camera. My python is a bit rusty, but something like

```python
renderer = ...
cam = renderer.GetActiveCamera()

transform = vtk.vtkTransform()
transform.Scale(s_x, s_y, s_z)

cam.SetModelTransformMatrix(transform.GetMatrix())

```

should do it (note that it’s the `ModelTransform`, not the `ModelViewTransform`).

---

_[View the full topic](https://discourse.vtk.org/t/scaling-a-rendering-scene/173)._
