User input as a variable

Hi everyone,

is there any way to create a variable which can be entered by a user?

I want the user to enter numeric value in dynamo player and than use this value in many different nodes (as variable). I know the option with code block where I set specific value, but this does´t work for me, because the user isn´t able to change it.

It´s not necessary for my code to work but it would make it much more clear.

Thank you for any suggestion!

Hi @adela.krizkova ,

I don’t think this is possible, but as an alternative could you just hide the wires by right clicking on them.
You can also add pins to wires after clicking left mouse button, the plus and then the pin.

Not directly… or easily.

You can write the variable to memory/ clipboard/ a temp file, and pull it back out later.

However because the order of execution would need to be defined via wires you would want to have a wire anyway so that the temp file is written before it is read…. And as such the hidden wire (or not hidden, many graphs where users have asked for this are a mess of wires anyway).

A better solution if you really want the hidden wire would be to have the user fill out the return = line of the definition on their own.

Spring nodes has this:

But, honestly I would just hide the wires on that output or not worry about it as much.