Skip selection input in dynamo player based on a condition

Hi ALL ! I am writing a script which asks the user whether to choose elements or take all elements in the model space automatically. The problem is if nothing is chosen, the dynamo player refuses to proceeds till something is selected. How to resolve this problem ???

1 Like

@Ahmed_Ramy , hi

I would do a work-around. For example you filter your elements by category - getParameterByName -Filter finaly your elements… and the user can wheel that via the player

I’d say use Data-Shapes to define your user inputs instead. This would allow you to have default values or “unused” inputs when necessary. Otherwise you have to change the way you’re making selections, like @Draxl_Andreas said, if you want to avoid empty inputs.