The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Topics related to the Grasshopper-ARCHICAD Connection and the various tasks that can be achieved with it.

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy

By yafimski
#279756
Hi

I'm attaching my attempt for walls using your script as a guide.

I think there are a few issues that I didn't understand:

1 - it seems the random numbers are in the domain 0.0 to 3.0 and this limits the color indexes not to include index 3 itself. So probably it should be 0.0 to 4.0 right?

2 - I'm not sure archicad elements created this way (especially walls since they have quite a lot of bugs) can show color directly in the AC window.

3 - Not sure that 'color swatch' can translate to 'building material' which gives the wall its color. I connected it for now to 'property settings' but in AC itself I wasn't sure which 'type' of parameter needs to be created in the Property Manager (i.e. integer, number, boolean etc.)

4 - perhaps creating this kind of color randomization needs a wall as input and not a 2D curve. Since the GH-AC connection has a lot of bugs and missing functionality, it's hard to know if it doesn't work because of the plugin or because of some error in the script.

Hopefully you'll be able to check these things out over the weekend.

Thanks :)

color_randomizer_1.png
By yafimski
#279824
Some follow up work I've tried.

In the image below you can see the data types from the various components. It seems like the Path Mapper component outputs correct RGB values. From the Property Settings however, the element classification is a Beam, when the element I want to create is a wall.

color_data.png



Initially the settings in the Property Manager in AC were according to the below image:
property_manager_1.png


I thought that might be an issue, so I changed it to the following setting below, but unfortunately this didn't bring up the property in the Property Settings selection options in GH. It just wasn't appearing there :
property_manager_2.png



Would you have any idea how to move this forward?
Thanks.
By kzaremba
#279867
Thanks for this topic. I have missed the possibility to expose GDL parameters to GH. Nice..

If you want to change element classification I suppose you should right click and select proper type.
Attachments
grassClassification.jpg
By yafimski
#279899
@kzaremba,

Yes this is exactly how it's done, and it's no problem to add properties to that component, but the issue is how to get building material or surface material properties into the wall settings in a valid way that will randomize the wall colors.

leceta said he might have an answer.

Do you know of any way to achieve a correct result? (see the attached images in my previous post).

Thanks