Hello Robert,
it can not work this way you have done.
1. Choosing an attribute in the parameter list is choosing the index of the attribute in the internal list of this attribute. As there are 255 indexed colors, there is a list of fills and a list of materials and lines. They have nothing common between each other.
If the author uses a PEN parameter he will use it as setting the pen with
PEN number. I you change to metrial nothing changes the PEN-statement in the script.
2. The material will be defined anywhere in the 3D-script with a
DEFINE MATERIAL name, type, ... Search this and have a look on them referring to the gdl manual. This command can have up to 19 controls for the material (without the possibility to change lightwork material too.)
After defining the materials there have to be MATERIAL or SET MATERIAL commands. Have a look for them. HERE you could change the commands to
MATERIAL yourmaterialname.
I don't know, how the objects are written (skript/binary) so search the [DEFINE] MATERIAL commands and post them here. Maybe we can help you.