# Why does my script run in editor, but not in player?

**URL:** <https://forum.dynamobim.com/t/why-does-my-script-run-in-editor-but-not-in-player/104558>\
**Category:** Dynamo Player\
**Created:** [September 22, 2024, 1:11pm UTC](https://forum.dynamobim.com/t/why-does-my-script-run-in-editor-but-not-in-player/104558 "2024-09-22T13:11:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thebrianlad](https://avatars.discourse-cdn.com/v4/letter/t/d07c76/32.png) [@thebrianlad](https://forum.dynamobim.com/u/thebrianlad)\
**Post date:** [September 22, 2024, 1:11pm UTC](https://forum.dynamobim.com/t/why-does-my-script-run-in-editor-but-not-in-player/104558/1 "2024-09-22T13:11:24Z")

</div>

I’m just trying to get up and running with Dynamo and putting together a few extremely simple scripts to help me save time in my Revit work.

One is to measure between two points on a face. Four nodes - Pick Point on Face x 2, Geometry.distanceto and a watch node.

This runs in the editor and it gives me a result. When I try to do the same in the player, it runs but with errors and gives me a null result. I have configured the point selection nodes as inputs and the renamed watch node as output.

Could anyone please tell me why this is?

Relevant screenshots. I also included a .dyn file and dynamo graph png, although indirectly, as I’m a new user.

Thank you.

 ![DP Error](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/d/0d8924433b5a80af45a0981487ee4997c5319c9b.png)

[Dyn file](https://mega.nz/file/rthw0AyB#lwZV7aJIBwbGxz6pJ1Y0EAFKpUio59VSUCDVplpAKLY)

[Dynamo Graph](https://mega.nz/file/fxJyAY7Q#iZXlA0TVRWagRa11wf-0F4IYu72Fflcr8zngTIih54o)

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [September 23, 2024, 12:52pm UTC](https://forum.dynamobim.com/t/why-does-my-script-run-in-editor-but-not-in-player/104558/2 "2024-09-23T12:52:34Z")

</div>

Ya i am getting the same error.

@solamour @jacob.small FYI,

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/8/f8700f1088b994bc5f21f360bafa927d36887efa.png)

---

<div class="post-metadata">

**Author:** ![solamour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/solamour/32/153516_2.png) [@solamour](https://forum.dynamobim.com/u/solamour)\
**Post date:** [September 23, 2024, 2:53pm UTC](https://forum.dynamobim.com/t/why-does-my-script-run-in-editor-but-not-in-player/104558/3 "2024-09-23T14:53:31Z")

</div>

Thanks for flagging this to us @_Vijay - We’ll take a look and post back into this thread 🙏

---

<div class="post-metadata">

**Author:** ![solamour](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/solamour/32/153516_2.png) [@solamour](https://forum.dynamobim.com/u/solamour)\
**Post date:** [September 24, 2024, 9:33pm UTC](https://forum.dynamobim.com/t/why-does-my-script-run-in-editor-but-not-in-player/104558/4 "2024-09-24T21:33:18Z")

</div>

Hello all, if this is the **Select Point on Face** node, then selecting a point in Player works, but running a graph where this node is set as an _input_ does not and is a known bug 🐛 with the serialization of the node and unfortunately non-trivial to fix. It’s on our to-do list 🙏

If this is paramount to get working right now, can you utilize an alternative method for selection?
