Setting wall layer material using VA API

I would like to get some advice on the va.SetStyleComponentMaterialIndex() function. I am currently creating a new material id with an existing material tagged to it. I then assign it to the wall layer using the va.SetStyleComponentMaterialIndex() function. The script runs but when I check the wall layer, it is blank in the material entry. When I check the wall layer style using va.GetStyleComponentMaterialIndex(), it states invalid material ID. Could you let me know how to fix this issue? @enric

Hi @enric @fsalla could I get some help with this? I have tried various methods to set the material of a style with the VA API through the RhinoPythonScript editor, however it always seem to give me a blank in the material entry

1 Like

Hi @Julius3 we have fixed this issue in the upcoming 3.3 RC2 version. You can download an internal version of it:

http://visualarq.s3.amazonaws.com/download/visualarq-3.3.0.19501-rhino8-setup-snapshot.msi

1 Like

Hi @fsalla , that is great news! I will test it out, thank you.

Thanks @fsalla , I have tested it and it is working now

1 Like