Grasshopper

algorithmic modeling for Rhino

Hi,

Have been working with the plugin for some time, but i have lately been wondering if it in any way is possible to create custom materials from inside Grasshopper in any way?

Hope someone can help me with an answer :)

Regards,

Esben

Views: 1965

Replies to This Discussion

Hello Esben,

The Diva grasshopper material component is accessing the text file at C:\DIVA\Daylight\material.rad and copying the current materials to a project folder for each simulation:

C:\DIVA\Daylight\Grasshopper\Projects\'your_project_name'simulation_type\'your_project_name_material.rad

Right now their is no pre-made component that writes new materials but you could use any of the custom scripting components (vb,c#,python) to open the base material file and append a new material or edit an existing material.

If you wanted to iterate over a limited set of custom materials you could add them directly to the base material file using a text editor and create a grasshopper definition that accesses each of these materials by index - like here - scroll to the middle of the page that uses a gate component to select materials.

Hope one of those options helps.

Jeff

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service