Jump to content

building from patterns change Pattern with attribute


Dag

Recommended Posts

Hi,

how can I change the value of string parameter in the building from patterns node with an attribute?

I have an attribute wrangle that set the value of different patterns in the relation of a building I feed in but how can I set the pattern string to the according place?

For example I want school, public, church as buildings and they have already a name and detail attribute building on them so I have a switch it is controlled by attribute wrangle to switch for the right building type so far so good.

But the different buildings can have different patterns how they are build and I want to set this pattern in the building from patterns node.

Alternatively I could set this string to the attr. wrangle channel and set it as relative reference in this pattern node - but how???

Thanks!!!

01.png

Link to comment
Share on other sites

If I understood you need to read detail attribute and use it in "Pattern" field of Labs, also split "pattern" into two values "BaseWall" and  "Floor01":
detail("../NULL", "pattern_group", 0)
detail("../NULL", "pattern_pattern", 0)

Try to split string with split function or so by symbol "<".

Link to comment
Share on other sites

Hi,

the problem is this field does not recognize the expression when I put e.g. @pattern or `detail("../NULL", "pattern", 0)` I would like to set the parameter in the wrangle like this setattrib(0, "detail", "pattern_node", s@pattern, @ptnum);but it does work.

Edited by Dag
Link to comment
Share on other sites

9 hours ago, Dag said:

Hi,

the problem is this field does not recognize the expression when I put e.g. @pattern or `detail("../NULL", "pattern", 0)` I would like to set the parameter in the wrangle like this setattrib(0, "detail", "pattern_node", s@pattern, @ptnum);but it does work.

Create a new wrangle with test detail attribute s@test = "name"; and connect before building_from_patterns node;

Check if the field can read this.

Link to comment
Share on other sites

no it does not see this attribute, when I dive inside the first null on the pattern slot see this attribute but not the node itself.

 

 

02.png

Edited by Dag
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...