# Unable to Send Volume via OpenIGTLink in Python Script

**URL:** <https://discourse.slicer.org/t/unable-to-send-volume-via-openigtlink-in-python-script/39632>\
**Category:** Development\
**Created:** [October 10, 2024, 10:39am UTC](https://discourse.slicer.org/t/unable-to-send-volume-via-openigtlink-in-python-script/39632 "2024-10-10T10:39:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincenzo\_Yuto\_Civale](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vincenzo_yuto_civale/32/77763_2.png) [@Vincenzo\_Yuto\_Civale](https://discourse.slicer.org/u/Vincenzo_Yuto_Civale)\
**Post date:** [October 10, 2024, 10:39am UTC](https://discourse.slicer.org/t/unable-to-send-volume-via-openigtlink-in-python-script/39632/1 "2024-10-10T10:39:33Z")

</div>

I’m trying to send an outgoing volume with OpenIGTLink in a script Python.  
The volume node is successfully put in OutGoing of OpenIGTLinkIF Node, but the client doesn’t receive it.

```auto
success = connectionNode.RegisterOutgoingMRMLNode(volumeNode)
if success:
  connectionNode.PushNode(volumeNode)

```

From GUI when I set the PushOnConnect On, the volume is send.

Am I doing something wrong in script?

---

<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 10, 2024, 10:02pm UTC](https://discourse.slicer.org/t/unable-to-send-volume-via-openigtlink-in-python-script/39632/2 "2024-10-10T22:02:20Z")

</div>

An outgoing node is automatically sent to the connected clients/servers whenever the node is modified.

If the node is not modified then you need to push it:

- manually by pressing a button in the OpenIGTLink module GUI or calling the corresponding method in Python
- automatically when a new client/server connects by enabling “push on connect” (by checking the checkbox in the OpenIGTLink module GUI or calling the corresponding method in Python)
