Heikki Malkki

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Defining materials in a macro #18251
    Heikki Malkki
    Participant

    It looks like you can define exactly one material in a macro, so you could do

    cyanmacro:
    define material "cyan" 2, 0, 1, 1

    yellowmacro:
    define material "yellow" 2, 1, 1, 0

    object:

    call "cyanmacro"
    call "yellowmacro"
    material ind(material, "cyan")
    block 1,1,1
    material ind(material, "yellow")
    addy 1
    block 1,1,1

    It would be very useful to be able to create a bunch of inline materials in a macro. I’ve used the MASTER_GDL approach, but it pollutes the material list.

Viewing 1 post (of 1 total)