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

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.

Dyn file

Dynamo Graph

Ya i am getting the same error.

@solamour @jacob.small FYI,

1 Like

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

2 Likes

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 :bug: with the serialization of the node and unfortunately non-trivial to fix. It’s on our to-do list :pray:

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