Im on Max 2011 with sp1 and the latest hotfix installed, working with vray 1.5 sp5. When i try to re-set mu material editor (compact not slate) i get the folllowing error message
" Runtime error: cannot assign undefined to material editor slots"
and a Macro_media utilities window opens with the following script
macroScript clear_medit_slots
enabledIn:#("MAX", "VIZ")
category:"Medit Tools"
internalCategory:"Medit Tools"
ButtonText:"Reset Material Editor Slots"
tooltip:"Reset Material Editor Slots"
(
on execute do
(
defaultMtlLibFile = MeditUtilities.getDefaultLibraryFile()
if defaultMtlLibFile != undefined do
(
defaultMtlLib = loadTempMaterialLibrary defaultMtlLibFile
global _meditMaterialsBeforeReset = #()
for i in 1 to meditMaterials.count do
(
append _meditMaterialsBeforeReset meditMaterials[i]
if i <= defaultMtlLib.count then
meditMaterials[i] = defaultMtlLib[i]
else
meditMaterials[i] = defaultMtlLib[defaultMtlLib.count]
I'm not a scripter but it seems that there is no material defined to place into the slots on re-set. I've recently had a problem with my material editor not giving me acess to slate as i had loaded up my 2010 menus into 2011 but i've since re-installed max and vray and am still getting this, can anyone help?
" Runtime error: cannot assign undefined to material editor slots"
and a Macro_media utilities window opens with the following script
macroScript clear_medit_slots
enabledIn:#("MAX", "VIZ")
category:"Medit Tools"
internalCategory:"Medit Tools"
ButtonText:"Reset Material Editor Slots"
tooltip:"Reset Material Editor Slots"
(
on execute do
(
defaultMtlLibFile = MeditUtilities.getDefaultLibraryFile()
if defaultMtlLibFile != undefined do
(
defaultMtlLib = loadTempMaterialLibrary defaultMtlLibFile
global _meditMaterialsBeforeReset = #()
for i in 1 to meditMaterials.count do
(
append _meditMaterialsBeforeReset meditMaterials[i]
if i <= defaultMtlLib.count then
meditMaterials[i] = defaultMtlLib[i]
else
meditMaterials[i] = defaultMtlLib[defaultMtlLib.count]
I'm not a scripter but it seems that there is no material defined to place into the slots on re-set. I've recently had a problem with my material editor not giving me acess to slate as i had loaded up my 2010 menus into 2011 but i've since re-installed max and vray and am still getting this, can anyone help?
Comment