# Generate DRRs from a 3DCT. Distance paramters in Python

**URL:** <https://discourse.slicer.org/t/generate-drrs-from-a-3dct-distance-paramters-in-python/44868>\
**Category:** Support\
**Tags:** slicerrt\
**Created:** [October 24, 2025, 12:54pm UTC](https://discourse.slicer.org/t/generate-drrs-from-a-3dct-distance-paramters-in-python/44868 "2025-10-24T12:54:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruju](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@ruju](https://discourse.slicer.org/u/ruju)\
**Post date:** [October 24, 2025, 12:54pm UTC](https://discourse.slicer.org/t/generate-drrs-from-a-3dct-distance-paramters-in-python/44868/1 "2025-10-24T12:54:33Z")

</div>

Hi,

I have another question about the computation of DRRs in 3D slicer. In the GUI of the DRR Image Computation module I can change the isocenter to imager distance. Is it also possible to modify this parameter in a Python script? I haven’t found any command that works in 3D Slicer 5.8.1 so far.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Mik](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mik](https://discourse.slicer.org/u/Mik)\
**Post date:** [October 24, 2025, 2:22pm UTC](https://discourse.slicer.org/t/generate-drrs-from-a-3dct-distance-paramters-in-python/44868/2 "2025-10-24T14:22:27Z")

</div>

That`s the DrrImageCompulationNode parameter:

Examples:

```auto
# DRR image in isocenter plan
# Set isocenter imager distance == 0 mm
rtImageParameters.SetIsocenterImagerDistance(0)

```

```auto
# Set isocenter imager distance == 350 mm
rtImageParameters.SetIsocenterImagerDistance(350)

```

You should see how images markups change their position as well.

---

<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:** [October 25, 2025, 2:00pm UTC](https://discourse.slicer.org/t/generate-drrs-from-a-3dct-distance-paramters-in-python/44868/3 "2025-10-25T14:00:34Z")

</div>

Note that if you work with C-arms (not with the EPID of a linear accelerator) then there is a new “Virtual Cath Lab” module in SlicerHeart extension that provides lots of features, including realistic 3D model of the C-arm (mono or biplane), fluoro image simulation, virtual contrast filling, device simulation, time sequences, etc.

> **[SlicerHeart Virtual Cath Lab: A New Tool for Cardiology Training | Jolley Lab...](https://www.linkedin.com/posts/jolleylab_congratulations-yuval-barak-corren-matt-activity-7376724043884023808-2Cxa?utm_source=social_share_send&utm_medium=android_app&rcm=ACoAAANbVMYBr7veNR93l1nczCWzGqteluxucc8&utm_campaign=copy_link)**
>
> Congratulations Yuval Barak-Corren, Matt Daemer, Andras Lasso, Kyle Sunderland and team on the their publication in the Journal for the Society for Cardiovascular Angiography & Interventions describing the SlicerHeart Virtual Cath...
