Creating oFusion_TextureUnit with a custom MaxScript

viper

25-05-2007 16:40:31

Hello ya'll,
I need to create a textureunit with a maxscript. The macro recorder of Max captured this code:


meditMaterials[1].mtl_mat1.mtl_mat1. = oFusion_TextureUnit ()


but when I try to use it, i obtain this error message:


-- Syntax error: at =, expected name
-- In line: meditMaterials[1].mtl_mat1.mtl_mat1. = o


I also tried with this:


meditMaterials[1].mtl_mat1.mtl_mat1.mtl_mat1 = oFusion_TextureUnit ()


but it doesn't work.

Any suggestion?

Thanks

Lioric

29-05-2007 19:47:51

It seems to be some issue when creating and setting TextureUnits via maxscript, as the second method you tested is the correct

I will review this issue immediately