Possibility to circumvent empty inputs in Dynamo Player

Hi all,

I made a script which uses inputs from the Dynamo Player by the end user. One of my inputs is an optional file path which the user doesn’t have to select if he/she wants to use the standard family. However that leaves the problem that I’m unable to run the script if the end user hasn’t selected a file.

The reason why I haven’t selected this file in here before the user opens it is because this file is on a cloud location thus for each user the userprofile name is different.

I fixed it by already having the wanted file path selected and if the user decides to use that one it gets swapped, in the background by a python script that is adaptable to the user profile, by using a string.contains node on the file path to see if it has changed or not

2 Likes