Batch create materials - PBR basic library

Hi community,

I’m looking for some help in creating Batch materials in Rhino. I lack knowledge of basic Rhino cmd and coding to create a python script/directing claude4.5…

Here is the challenge :

Create 100 PBR textures in this way:

  1. Create 100 PBR

    1. Assign basic color to texture following the color-hsv.txt file provided below. (contain 100 hsv color : 10 color family named A,B,C,…J and each family have its value declination; A1,A2,A3,…,A10). Name this materials accordingly.
  2. Enable for each of these 100 materials, the “detail settings” : “base color / metallic / roughness” AND add a texture to the base color : “blend texture”

  3. Edit “blend texture” : color 1 : same color as the original base color assigned. And color 2 : black (** not sure if swap is needed… somthimes it seems yes…)

  4. Edit “blend texture settings” :

    1. factor 1.00
    2. Add a texture accordingly to the name (tricky part)
      1. Each A1,B1,C1,…,J1 will have the texture 1
      2. Each A2,B2,C2,…,J2 will have the texture 2, and so on
      3. Textures are located in the folder Textures_numbers provided below and named 1,2,3,…,10

Files :

color-hsv.txt (2.6 KB)

Textures_numbers.zip (982.1 KB)

Python trials with claude4.5…:

Script_100PBRmats_CC_v6.3.txt (6.6 KB)

Thanks for any info I can get.

Charles C.

Hi Charles,

I think this is pretty close. Note that renamed your Texture image files to 01,02,03… for sortability

This is via the Rhino 9 WIP 9.0.25335.00305 (changes to cycles going in soon)

Rhino9-Create-PBR.gh (23.3 KB)

1 Like

ah! Correct, I was so into creating this script myself with AI that I forget with GH it could be possible. I will give it a try, thanks @Japhy.

Edit

Indeed its in R9… so while waiting anyworkaround?

CC

1 Like

You can check my literate tutorial on how to create a PBR material using Python over at https://jesterking.github.io/rhipy/create_pbr_material_with_textures.html