My company has a custom .fx 3d Max material and I'm trying to hack together a script to automatically assign texture to it. I have it working however the box with the texture name is "disabled" and I'm trying to figure out how to enable it. I don't really even know what to search for. This is the code from the material…
Try this Nick. meditMaterials[curMet].g_DiffuseTex = openBitmap "Insert Path to test" That should load a texture to that sampler. Guessing this is a scripted material plugin? Hard to debug from here but not sure if you know but you can do for example b = medit.GetCurMtl() show b
@haiddasalami I tried enabling it but I'm not sure if I was doing it right or if it just doesn't work. I tried meditMaterials[curMet].b_diffuse.enabled = true and meditMaterials[curMet].g_DiffuseTex.enabled = true but neither of those worked. The listener said, "Unknown property: "enabled" @monster Awesome! That is what i…