Reply To: Defining materials in a macro

Home Forums Problems and solutions in GDL Object design Defining materials in a macro 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.