Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.
Friday
I would be very pleased if someone could help me out. I'm trying to take out the texture of a building material and use it for one surface for a CSLAB_. In 2D I managed to take the fill and apply to it, but for 3D I cannot do this. I found out that the _texture I got is a string, but it doesn't applies to it. I tried to get it's index with IND(TEXTURE, _texture), but the error msg appears that AC cannot find the texture, which is odd, cause the REQUEST founds it. Here is the code:
2D
_fill = ""
_surface_index = ""
n = REQUEST{2} ("Building_Material_info", my_custom_material, "gs_bmat_surface", _surface_index)
n = REQUEST{2} ("Material_info", _surface_index, "gs_mat_fill_ind", _fill)
fill _fill
3D
_texture = ""
_surface_index = ""
n = REQUEST{2} ("Building_Material_info", my_custom_material, "gs_bmat_surface", _surface_index)
n = REQUEST{2} ("Material_info", _surface_index, "gs_mat_texture", _texture)
! IND(TEXTURE, texture) ! Not working, AC cannot find this
CSLAB _texture, 0, 0, points, -0.2, get(nsp)
Friday
Never mind, _surface_index is what I need to use.