Insert Custom Component and update custom variables

HI,
I am trying to insert a custom componet with custom parameters

H_Sx, H_Dx H_PianoInf
I can insert the componet but I can’t figure out how to pass values ​​to the variables.

Hi Stefano,

You would use the Attribute input and provide a multiline data list of values (so not a normal GH list, but a text with newlines). The format should be [Name of attribute] [value].

E.g like this:

So you use the name of the backing field (the one you see in your pic), not the display name in the dialog. To find out what names to use from arbitrary components, use the Deconstruct Component or Get All UDAs:

Cheers,

Sebastian

Hi Sebastian

Thanks a lot

Now I can edit custom.parameters

Stefano

Hi Sebastian, I have to insert the same component in more position, I created the attribute list, but how I pass 3 attributes value to all the line?

01_ARX_TraversiPile_Carr_DX.gh (38.8 KB)

You’d need to craft the input so that each list item has multiple lines. The lines within one list item then all represent attributes for a single component. One way to do it is this:

Or equivalently with newline as the separator (harder to see, as the panel looks empty):

Note the grafting and removed flattening at the Merge component.

I don’t have the input data that your definition requires, so the output only shows attributes for one component at list index 0. But if you try this with a full set of data the next set of attributes should go at index 1 and so on.

You could look at using the Construct UDA component instead of Concatenate, but that might not make things cleaner in this case.

i found a way..but only the first parameter H_Sx are updated

01_ARX_TraversiPile_Carr_DX.gh (39.1 KB)

Thanks..

With your suggestion I resolved it..The problem was in the list