How to Input a code block from Dynamo Player?

Hi everybody.

I created dynamo script, I want to input a code block from Dynamo Player. Please help me, how to input a code block from Dynamo Player.

Thank you so much.

Codeblocks cannot be used as inputs.
Use a number, string, number slider or other single entry basic data type node. These can usually make ranges and lists (such as what I think you’re after with the [1,2] block).
Alternatively you could look at the UI++ nodes in the Datashapes package.

2 Likes

Thank JacobSmall.
If I use the UI++ nodes in the Datashapes package. How to does its?
Please help me. Thank you so much.

something like that


2 Likes

you can use this concept as one of the options
input

or to use Data-Shape package as @yamanyildirim said

2 Likes

Thank @khuzaimah.ElecEng.
My array does not have 2 objects[1,2], but also many objects[1,2,3] or [3,9,10,15] etc … So I want to change my choice at Dynamo Player. No need to edit Dynamo scripts. Do you have solution for this way?

Thank @yamanyildirim.
My array does not have 2 objects[1,2], but also many objects[1,2,3] or [3,9,10,15] etc … So I want to change my choice at Dynamo Player. No need to edit Dynamo scripts. Do you have solution for this way?

it will work if you have a sequence , other that i think you need to use UI++
input2

or you can input the array as a string like this

2 Likes

1 Like

Thank you so much. Very great.

Thank you @khuzaimah.ElecEng. Good job.

Hi,
Thank you your solution for my problem.
Input value in Data-Shapes. How to save value of Data-Shapes for the next time. Do you have solution for this way?
Thank you so much.