This is the input-file:
DIM tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[3]
tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[1] = 0.9803921580315
tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[2] = 0.9098039269447
tmp_LWA_COGSMASKEDIMAGE_BASECOLOR[3] = 0.7803921699524
define texture "Texture174" "CD", 0.3, 0.3, 932, 0
define material "PKSLeatherCD" 20,
0.980392, 0.909804, 0.780392,
0.92, 0.66, 0.14, 0, 4.6, 0,
1, 1, 1,
0, 0, 0,
0, ind(fill, "Background"), -4,
ind(texture, "Texture174") ADDITIONAL_DATA LWA_COLOR = "LWA_COGSMASKEDIMAGE",
LWA_COGSMASKEDIMAGE_BASECOLOR = tmp_LWA_COGSMASKEDIMAGE_BASECOLOR,
LWA_COGSMASKEDIMAGE_FILE = "CD", LWA_COGSMASKEDIMAGE_SCALE = 0.3000000119209,
LWA_COGSMASKEDIMAGE_ASPRATIO = 1, LWA_COGSMASKEDIMAGE_MASK_FILE = "CD",
LWA_COGSMASKEDIMAGE_MASKSCALE = 0.3000000119209, LWA_COGSMASKEDIMAGE_MASPRATIO = 1,
LWA_REFLECTANCE = "LWA_RFMATTE", LWA_RFMATTE_AMBIENT = 0.9200000166893,
LWA_RFMATTE_DIFFUSE = 0.660000026226, LWA_TRANSPARENCY = "LWA_TRNONE",
LWA_TEXTURESPACE = "LWA_TSGSREPLICATE", LWA_TSGSREPLICATE_SREFLECT = 1,
LWA_TSGSREPLICATE_TREFLECT = 1, LWA_TSGSREPLICATE_SSIZE = 0.3000000119209,
LWA_TSGSREPLICATE_TSIZE = 0.3000000119209, LWA_TSGSREPLICATE_ANGLE = 0,
LWA_PIPELINE = "LWA_PLNONE", LWA_DISPLACEMENT = "LWA_DPWBUMPMAP",
LWA_DPWBUMPMAP_FILE = "CD", LWA_DPWBUMPMAP_WIDTH = 0.5299999713898,
LWA_DPWBUMPMAP_HEIGHT = 0.5299999713898, LWA_DPWBUMPMAP_AMPLITUDE = 0.01999999955297,
LWA_DPWBUMPMAP_SOFTNESS = 1, LWA_DPWBUMPMAP_SCALE = 1,
LWA_DPWBUMPMAP_ASPRATIO = 1
This is the code:
materialDefinition = open ("TEXT", "Material.gdl", "mode = RO,LIBRARY")
materialNames = open ("TEXT", "MaterialNames.gdl", "mode = RO,LIBRARY")
Master_GDL = open ("TEXT", "Master_GDL_my materials.gdl","SEPARATOR = '\n', mode = WA,LIBRARY")
i = 1
n = INPUT (materialDefinition , i, 1, field1, field2, field3, field4, field5, field6, field7)
WHILE n <> -1 DO
definition[1] = field1
definition[2] = field2
definition[3] = field3
definition[4] = field4
definition[5] = field5
definition[6] = field6
definition[7] = field7
OUTPUT Master_GDL, i, 1, field1, field2, field3, field4, field5, field6, field7
field1 = ""
field2 = ""
field3 = ""
field4 = ""
field5 = ""
field6 = ""
field7 = ""
i = i + 1
n = INPUT (materialDefinition , i, 1, field1, field2, field3, field4, field5, field6, field7)
ENDWHILE
CLOSE materialDefinition
CLOSE Master_GDL
The result is attached.
How do I put in CR LF sequences after each line?