JHN
07-06-2011, 10:52 AM
I'm not finding a way to find the class that belongs to a classId.
Say I have #(0x70b05735, 0x4a163654) how do I "convert" it to the creatable Arch___Design__mi class.
I know it can be done because in the macro : macro_MeditUtilities.mcr on line 36 (max2010) is the following code
defaultsFile = MeditUtilities.getDefaultsFile()
defaultMtl = MeditUtilities.getDefaultMaterial defaultsFile
this returns the materials, but in the iniFile only the classId is noted, so it converts the classId to a className and creates materials from there. I want a more general purpose solution than that. And I can't figure out a way to tie the classId's to the classNames without a brute force baseClasses traversal.
Thanks,
-Johan
Say I have #(0x70b05735, 0x4a163654) how do I "convert" it to the creatable Arch___Design__mi class.
I know it can be done because in the macro : macro_MeditUtilities.mcr on line 36 (max2010) is the following code
defaultsFile = MeditUtilities.getDefaultsFile()
defaultMtl = MeditUtilities.getDefaultMaterial defaultsFile
this returns the materials, but in the iniFile only the classId is noted, so it converts the classId to a className and creates materials from there. I want a more general purpose solution than that. And I can't figure out a way to tie the classId's to the classNames without a brute force baseClasses traversal.
Thanks,
-Johan
