01-11-2021, 10:58 AM
hi there.
So i was trying to import the gfbmdl on 3dsmax 2021 and encounter the "Unknown property" error. After playing around with your code, i find out that error is on this part of the code (the print MatData_array):
So i tried to modify in order to work and i got something like this :
i just disable the the "mat" and the code worked, not as according obviously.
thank you for your great work
So i was trying to import the gfbmdl on 3dsmax 2021 and encounter the "Unknown property" error. After playing around with your code, i find out that error is on this part of the code (the print MatData_array):
Code:
multimat = MultiMaterial()
multimat.name = g
multimat.numsubs = MatNameCount
for m = 1 to MatNameCount do(
mat = multimat.materialList[m]
mat.name = MatData_array[m].MatName as string
mat.showinviewport = true
[b]mat.twosided = false[/b]
tm = Bitmaptexture filename:(p + MatData_array[m].MatCol0 + ".png")
tm.alphasource = 0
[b]mat.diffuseMap = tm[/b]
[b]mat.opacityMap = tm[/b]
mat.opacityMap.monoOutput = 1
So i tried to modify in order to work and i got something like this :
Code:
multimat = MultiMaterial()
multimat.name = g
multimat.numsubs = MatNameCount
for m = 1 to MatNameCount do(
mat = multimat.materialList[m]
mat.name = MatData_array[m].MatName as string
mat.showinviewport = true
twosided = false
tm = Bitmaptexture filename:(p + MatData_array[m].MatCol0 + ".png")
tm.alphasource = 0
diffuseMap = tm
opacityMap = tm
opacityMap.monoOutput = 1
thank you for your great work