[Closed] maxscript wows in defferent language versions of max
I was quite surprised to learn that when max is started in French for example, you are allowed to use the translated max class names (see attached image). Normally I wouldn’t mind this behavior, but I am working on a plugin (.gup) that exposes itself to maxscript with a name, that happens to be a french word, which is used for a geometry object Can I somehow workaround this one, without changing the script visible name of the plugin?
I had almost the same problem with 3dsmax localized in German and the Edit Poly modifier.
In my scripts I always use:
EditPolyMod.setSelection obj.Edit_Poly #Edge #{}
but this not works in 3dsmax localized in german. If I remember correctly the Max returns the name(class) of the Edit Poly modifier different than described in the maxscritp reference file.
So i use this in non-english 3dsMax version
obj.modifiers[1].setSelection obj.Edit_Poly #Edge #{}