In the GDL script I want to use an image to apply it to a surface.
DEFINE TEXTURE "PictTexture" "2.png", dimXPict, dimYPict, 1, 0
DEFINE MATERIAL "pictmat" 21, 1.000000, 1.000000, 1.000000, 1.0, 0.5, 0.5, 0.000000, 3.0, 0, 1, 1, IND(TEXTURE, "PictTexture")
SET MATERIAL "pictmat"
side-material ="pictmat" - the material results in a string
Next I want to put the material in the memory to apply it to a variable PRISM volume using PUT/USE/GET
For the PRISM Archicad demands a number instead of a string with PUT command in the memory.
PUT side_material
CPRISM_{4} top_material, bottom_material, side_material, mask,
n, h,
x1, y1, alpha1, s1, side_material,
...
xn, yn, alphan, sn, side_material
How can I replace the side_material...side_material variable from string ("pictmat") to a number?
What would be the solution ?