setting up Ofusion material/technique/pass via maxscript

ilyh76

20-11-2007 01:44:57

Hi, all,

Is there any documentation on this? we're trying to write some batch processing scripts which is supposed to allow us to setup materials quickly. We were using the maxscript listener to figure out the property and function names. However this approach only works to certain degree. It doesn't produce correct names for most of the stuffs that're inside ofusion pass editor.

Thanks,

Lioric

20-11-2007 14:55:22

Using the "showProperties" method in maxscript shows the correct names, you just need to use quotes when using names with spaces

See this thread for more details:

http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=4160&highlight=maxscript

ilyh76

20-11-2007 23:52:13

Thank you!!

ilyh76

28-11-2007 08:53:38

Here comes another problem, when i tried

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


Max complained about oFusion TextureUnit instance not being of type "material".

also when using showProperties with a texture unit instance, it gaves multiple properties with the same name(e.g. blendType, blendSrc), how do i reference them in scripts?

thanks in advance!